Skip to content
Docs menuCustomize the design tokens

Customize the design tokens

Light, dark and system themes come built in. Rebrand by editing one file: app/globals.css.

Last updated November 1, 2026

Tokens

The palette is a set of CSS variables in app/globals.css, the shadcn token names, with a :root block for light and a .dark block for dark. Components use them through utilities such as bg-primary and text-muted-foreground, never fixed colours.

app/globals.css
:root {
--background: oklch(1 0 0);
--foreground: oklch(0.145 0 0);
--primary: oklch(0.205 0 0);
--primary-foreground: oklch(0.985 0 0);
--radius: 0.625rem;
}
.dark {
--background: oklch(0.145 0 0);
--foreground: oklch(0.985 0 0);
--primary: oklch(0.922 0 0);
--primary-foreground: oklch(0.205 0 0);
}

Theme switching

The root layout wraps the app in next-themes with the class attribute and the system theme as default, so the choice is stored and there is no flash on load. The font is loaded with next/font in app/layout.tsx.