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

Aa

Page--background

Default page background

Aa

Page outer--background-outer

Body background behind the page surface, visible only when page content is narrower than the viewport

Aa

Card--card

Elevated cards and panels

Aa

Popover--popover

Menus, dialogs and popovers. A tooltip is inverted instead

Aa

Primary--primary

Near-black in light, near-white in dark. No kit component paints with it: the primary button is accent

Aa

Secondary--secondary

The highlighted row in dropdown, select, command and combobox menus

Aa

Muted--muted

Disabled and read-only fields, Card variant muted, and the header and footer bands of a table

Text

Aa

Primary--foreground

Titles, headings and labels

Aa

Muted--muted-foreground

Descriptions and body: the line under a title, explainers, help text

Aa

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.

TokenUsed forValue
--borderThe resting edge of a field, row or divider30%
--border-strongA field on hover, and dividers that need more contrast40%
--border-focusFocus edge of Input, Textarea and RichTextEditor50%
--border-focus-strongFocus edge of Select, Combobox and SearchTrigger80% light, 90% dark
--ring-focusThe focus ring on every other control: 3:1 on page and card. Neutral, not accent100%
--input-bgFill of Input, Textarea and the Select and Combobox triggers50 light, 900 dark

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.

:root {
  /* Retone the whole accent scale by changing its hue.
     All 11 steps (--color-accent-50 through --color-accent-950)
     and the --accent anchor shift together. */
  --color-accent-h: 150;

  /* Or override just the semantic anchor without touching the scale. */
  --accent: oklch(0.65 0.22 150);

  /* --accent-foreground and --brand-foreground read the fill's
     lightness and pick a black or white label, so a retune needs
     no foreground override. */

  /* Brand, Brand 2 and the neutrals retone the same way,
     each on its own hue. */
  --color-brand-h: 20;
  --color-brand-2-h: 200;
  --color-neutral-h: 250;
}

.dark {
  --accent: oklch(0.72 0.19 150);
}

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.