Colors
An OKLCH color system with perceptually uniform lightness. Every token names a role, never a hue, so retoning one changes every part that uses it.
Palette
Eleven steps per role. The scales stay the same in light and dark; the role tokens pick a step from them.
Every role
Each role's token, the step of its scale the token reads, and what it is for.
--backgroundNeutral, step 100, 950 in dark
The page, surfaces and text. Close to plain grey, with a faint warmth that fades in the dark steps
50
100
200
300
400
500
600
700
800
900
950
--accentAccent, step 500
Acts: buttons, links, selection, progress. Focus rings stay neutral
50
100
200
300
400
500
600
700
800
900
950
--brandBrand, step 500
Expresses: gradients, upgrade and premium moments, celebrations. Never on a control
50
100
200
300
400
500
600
700
800
900
950
--brand-2Brand 2, step 500
A second expressive color, beside brand in gradients and illustration
50
100
200
300
400
500
600
700
800
900
950
--destructiveDestructive, step 500
Danger and delete actions
50
100
200
300
400
500
600
700
800
900
950
--warningWarning, step 500, 400 in dark
Caution states
50
100
200
300
400
500
600
700
800
900
950
--successSuccess, step 500
Confirmation and completion
50
100
200
300
400
500
600
700
800
900
950
--infoInfo, step 500
Neutral news: a deadline, a note, Beta. A neutral ramp under its own name
50
100
200
300
400
500
600
700
800
900
950
Surfaces and text
These swap between light and dark. Preview either mode below; the site theme stays as it is.
Pairs
Each surface with the text color that sits on it, and the three text levels on the page.
Surfaces
Page--background
Default page background
Page outer--background-outer
Body background behind the page surface, visible only when page content is narrower than the viewport
Card--card
Elevated cards and panels
Popover--popover
Menus, dialogs and popovers. A tooltip is inverted instead
Primary--primary
Near-black in light, near-white in dark. No kit component paints with it: the primary button is accent
Secondary--secondary
The highlighted row in dropdown, select, command and combobox menus
Muted--muted
Disabled and read-only fields, Card variant muted, and the header and footer bands of a table
Text
Primary--foreground
Titles, headings and labels
Muted--muted-foreground
Descriptions and body: the line under a title, explainers, help text
Subtle--subtle-foreground
Meta: dates, counts, captions, bylines, and field placeholders
Borders and focus
Four border steps, the focus ring and the field fill, all read from neutral: the borders and ring are neutral-500 at the strength shown, and the fill is a neutral step. A text field's caret already marks focus, so its focus border stays light. A trigger has no caret, so its border goes stronger.
Theming
Retone a whole scale by its hue, or pin one role token. Text on an accent or brand fill picks black or white by itself.
Need a color outside the roles, like a decorative teal? Use any Tailwind hue directly (bg-teal-300). Tailwind v4 ships all 22 default scales.