Docs/Customization·3 min read
Theming & Design Tokens
Customize Tailwind v4 dark/light variants, typography, and emerald accent tokens cleanly across all pages.
Class-Based Dark & Light Modes
Kestrel uses next-themes with attribute='class' paired with Tailwind CSS v4's @custom-variant dark directive in src/app/globals.css. Dark obsidian mode (#09090B) is the default, while visitors can toggle crisp studio light mode (#FAFAFA) anytime.
src/app/globals.css
@import "tailwindcss";
@custom-variant dark (&:where(.dark, .dark *));
@theme inline {
--font-sans: var(--font-sans), ui-sans-serif, system-ui, sans-serif;
--font-mono: var(--font-mono), ui-monospace, SFMono-Regular, monospace;
}Surface & Accent Palette
To shift Kestrel from signature Emerald (#10B981) to Cobalt, Cyan, or Warm Amber, swap emerald-* utilities across the components or map a semantic accent color in globals.css.
| Token Role | Dark Mode | Light Mode |
|---|---|---|
| Canvas Background | #09090B (zinc-950) | #FAFAFA (zinc-50) |
| Elevated Card Surface | #111114 | #FFFFFF |
| Hairline Border | rgba(255,255,255,0.08) | #E4E4E7 (zinc-200) |
| Primary Accent | #10B981 / #34D399 | #059669 |
| Telemetry Highlight | #F59E0B (amber-500) | #D97706 |