Colour
shadcn's colour names, four status colours, four inks, and tints of the text colour for everything structural.
Theme colours
The shadcn variables the components read.
- background
Raised surfaces, controls and the page behind them.
var(--background)
- foreground
Text, icons, and the base every tint is mixed from.
var(--foreground)
- muted-foreground
Secondary text: hints, metadata, descriptions.
var(--muted-foreground)
- popover
Menus, selects and tooltips.
var(--popover)
- destructive
Actions that delete, and fields with an error.
var(--destructive)
Status
From the toast. The AI components use the same hues.
- success
Done, saved, passed.
Light oklch(0.5 0.13 152)
Dark oklch(0.704 0.15 152)- warning
Waiting on someone, needs a look.
Light oklch(0.5 0.14 70)
Dark oklch(0.704 0.15 75)- error
Failed, rejected.
Light oklch(0.5 0.21 27.3)
Dark oklch(0.704 0.191 22.2)- info
Running, in progress, for your information.
Light oklch(0.5 0.17 255)
Dark oklch(0.704 0.15 255)
Inks
Text colours.
- ink
Headings, labels, values.
text-foregroundvar(--foreground)
- ink-row
Menu and list rows, so a highlighted row can step up to full ink.
text-foreground/85color-mix(in oklab, var(--foreground) 85%, transparent)
- ink-muted
Supporting text and placeholders.
text-muted-foregroundvar(--muted-foreground)
Tints
Fills made by mixing the foreground into whatever is behind.
- tint-tray
The tray a card's surface sits in. A card that is a link takes 6% on hover and 8.5% pressed.
bg-foreground/[0.035]Light color-mix(in oklab, var(--foreground) 3.5%, transparent)
Dark color-mix(in oklab, var(--foreground) 4.5%, transparent)- tint-well
A sunken area inside a surface, and disabled fields.
bg-foreground/[0.04]color-mix(in oklab, var(--foreground) 4%, transparent)
- tint-subtle
Inline code, and hover on rows in dense lists: the data grid, tool calls.
bg-foreground/[0.05]color-mix(in oklab, var(--foreground) 5%, transparent)
- tint-hover
Hover, and the highlighted row in a menu.
bg-foreground/[0.06]color-mix(in oklab, var(--foreground) 6%, transparent)
- tint-press
A pressed item in a menu, select or toolbar.
bg-foreground/[0.08]color-mix(in oklab, var(--foreground) 8%, transparent)
- tint-active
A pressed ghost button; a trigger whose popup is open.
bg-foreground/[0.1]color-mix(in oklab, var(--foreground) 10%, transparent)