Skip to content

Colours

Every colour token, with its light value, its dark value and what it is for.

The default palette is pure grey neutrals on white, one indigo for what can be acted on or is selected, and a quiet fill where a shadow would otherwise go. Dark keeps the same rules on a near black.

Each swatch is drawn with the value written beside it, so both columns are true whichever theme this page is in. Where a value names another token, the line beneath says what it comes to. Press a name to copy it.

What a product may change

A product brings its brand by setting three families of colour, and its font families. Everything else is structure, and stays the same in every product.

The primary family
  • --primary
  • --primary-foreground
  • --primary-hover
  • --primary-subtle
  • --primary-subtle-border
  • --link
Tints
  • --tint-mint
  • --tint-mint-foreground
  • --tint-peach
  • --tint-peach-foreground
  • --tint-sky
  • --tint-sky-foreground
  • --tint-blue
  • --tint-blue-foreground
  • --tint-pink
  • --tint-pink-foreground
  • --tint-lavender
  • --tint-lavender-foreground
Chart series
  • --chart-1
  • --chart-2
  • --chart-3
  • --chart-4
  • --chart-5
  • --chart-cat-1
  • --chart-cat-2
  • --chart-cat-3
  • --chart-cat-4
  • --chart-cat-5
Follows the primary
  • --control-checked
  • --ring
  • --tone-indigo
  • --sidebar-primary
  • --sidebar-ring

These read --primary, so they move when it does. So do the shadows --shadow-card-lift, --shadow-focus and --shadow-fab. A product leaves them alone.

Fixed

The other 60 colour tokens: the neutrals, the status hues, the tones and the sidebar. They are the structure every product shares.

Surfaces

The page, what rests on it and what floats over it. Depth comes from these tones first, and from a shadow only where a layer floats.

Fixed. A product does not change these.

TokenLightDark
The page.
#ffffff
#111111
A card resting on the page.
#ffffff
#111111
A layer that floats: a menu, a popover, a select list.
#ffffff
#1a1a1a
The fill: a hovered row, a pressed control, a quiet button.
#f7f7f7
#1f1f1f
A resting fill: a track, a block of code, a skeleton.
#f7f7f7
#1a1a1a
The fill, under shadcn's name. bg-accent paints --secondary.
#f7f7f7
#1f1f1f
A surface lifted off a fill: the selected tab, a card on a board.
#ffffff
#1a1a1a
That surface under the pointer.
#f7f7f7
#262626
A list row under the pointer.
#fafafa
#171717
A checked list row.
#f7f7f7
#1f1f1f
The track of a progress or probability meter.
#ebebeb
#262626
An unlit segment of a meter.
#e0e0e0
#333333
The veil over the page behind a dialog or a sheet.
rgb(0 0 0 / 0.2)
rgb(0 0 0 / 0.48)

Text

Three weights of ink, and the names shadcn components use for text on each surface.

Fixed. A product does not change these.

TokenLightDark
Primary text and icons.
#191919
#ededed
Secondary text: descriptions, labels, icons at rest.
#5e5e5e
#a3a3a3
Tertiary text: placeholders and meta lines.
#707070
#8a8a8a
Text on a card.
#191919
#ededed
Text on a floating layer.
#191919
#ededed
Text on the fill.
#191919
#ededed
Text on the fill, under shadcn's name.
#191919
#ededed

Borders and rings

Hairlines divide, rings mark a control's edge, and one ring shows where the keyboard is.

Fixed. A product does not change these.

TokenLightDark
Hairlines: dividers and the edge of a card.
#ebebeb
#262626
The ring of a field, an outline button or a chip.
#e6e6e6
#2e2e2e
The edge of an unchecked checkbox.
#8a8a8a
#737373
The keyboard focus ring.
var(--primary)#462cf2
var(--link)#9a8cff
A faint inner edge on an image or an avatar.
oklch(0 0 0 / 0.08)
oklch(1 0 0 / 0.1)

Primary

The one accent. It marks what can be acted on or is selected, and nothing else.

A product may set --primary, --primary-foreground, --primary-hover, --primary-subtle, --primary-subtle-border and --link. The rest are fixed or follow by themselves.

TokenLightDark
What can be acted on or is selected.
#462cf2
#5b45f5
Labels and icons on the primary.
#ffffff
#ffffff
The primary under the pointer.
#3b22db
#6b57f7
The primary's own tint: a selected tile, a filter chip, a tab-bar slot.
#f1effd
rgb(from var(--primary) r g b / 0.2)rgb(from #5b45f5 r g b / 0.2)
The edge of that tint.
#e0dcf7
rgb(from var(--primary) r g b / 0.38)rgb(from #5b45f5 r g b / 0.38)
Links in text. Dark has a lavender of its own.
var(--primary)#462cf2
#9a8cff
The fill of a checked checkbox.
var(--primary)#462cf2
var(--primary)#5b45f5
The tick on that fill.
var(--primary-foreground)#ffffff
var(--primary-foreground)#ffffff

Status

A status hue is never the only signal: a badge pairs its ground with an ink label and a dot, and an error has words.

Fixed. A product does not change these.

TokenLightDark
An error or a destructive action, as text, an icon or a ring.
#d0243a
#f14954
A red that carries a white label.
#d0243a
#d0243a
That red under the pointer.
#b81f33
#e0303f
The ground of a negative badge.
#fdecee
rgb(241 73 84 / 0.15)
The label on that ground.
#7d1220
#ffb3b8
Success and money in, as text.
#00883a
#3fcf86
The ground of a positive badge.
#e3f7ec
rgb(63 207 134 / 0.14)
The label on that ground.
#0c4927
#8fe3b5
Information, as text or an icon.
#2d5bff
#5b82ff
The ground of an info badge.
#ebf1ff
rgb(91 130 255 / 0.16)
The label on that ground.
#13246e
#b8c9ff
A warning, as text, an icon or the dot of a warning badge.
#c84700
#ff8a3d
The ground of a warning badge.
#fff4ea
rgb(255 138 61 / 0.14)
The label on that ground.
#78380a
#ffc39a

Work status

The glyphs of a task's or a project's state, and of its priority.

Fixed. A product does not change these.

TokenLightDark
The backlog glyph, and the dot of a neutral badge.
#8e8e8e
#8a8a8a
The to-do glyph.
#5e5e5e
#a3a3a3
The in-progress glyph, and the dot of an info badge.
#2d5bff
#5b82ff
The done glyph, and the dot of a positive badge.
#00a454
#2fc97a
The cancelled glyph.
#8e8e8e
#8a8a8a
The paused glyph of a project.
#c18200
#e9a826
The urgent priority mark.
#d0243a
#f14954
The bars of every other priority.
#5e5e5e
#a3a3a3

Tints

Pastel grounds for markers: initials, project letters, calendar blocks and record chips. Each tint has its own text colour and never carries white.

A product may set every token here.

TokenLightDark
A mint ground.
#e3f1e4
#16301b
Text and icons on mint.
#2e5a34
#9fdcaa
A peach ground.
#fae9df
#3a2417
Text and icons on peach.
#6b3a1e
#f2bf9c
A sky ground.
#dff1f1
#102f30
Text and icons on sky.
#1a5556
#92d6d6
A blue ground.
#e2eefa
#152a3e
Text and icons on blue.
#254a66
#a3c8ea
A pink ground.
#fbe7e9
#3a1d22
Text and icons on pink.
#6e3a42
#f0b1ba
A lavender ground.
#eeebfe
#24204a
Text and icons on lavender.
#3f28c9
#c2b8ff

Tones

Solid markers that carry a white label.

Fixed. A product does not change these.

TokenLightDark
An update in an activity feed.
var(--primary)#462cf2
var(--primary)#5b45f5
A label on indigo.
#ffffff
#ffffff
A violet marker that carries a white label.
#7b3aec
#8b5cf6
A label on violet.
#ffffff
#ffffff
An emerald marker that carries a white label.
#00884a
#0e8f52
A label on emerald.
#ffffff
#ffffff
A change of status in a feed, and the attention dot.
#b45f00
#b45f00
A label on amber.
#ffffff
#ffffff

Charts

Two series. The ordered one runs the primary's hue from light to deep, for values that have a rank. The categorical one is five separate hues, for things that have none, such as sources, channels or owners.

A product may set every token here.

TokenLightDark
Ordered series, the lightest step.
oklch(0.8 0.1 275.5)
oklch(0.8 0.1 275.5)
Ordered series, second step.
oklch(0.65 0.2 275.5)
oklch(0.65 0.2 275.5)
Ordered series, third step.
oklch(0.56 0.25 275.5)
oklch(0.56 0.25 275.5)
Ordered series, fourth step.
oklch(0.486 0.269 275.5)
oklch(0.486 0.269 275.5)
Ordered series, the deepest step.
oklch(0.4 0.22 275.5)
oklch(0.4 0.22 275.5)
Categories, first hue.
oklch(0.52 0.25 275.5)
oklch(0.68 0.17 275.5)
Categories, second hue.
oklch(0.58 0.12 185)
oklch(0.74 0.12 185)
Categories, third hue.
oklch(0.64 0.16 60)
oklch(0.78 0.15 65)
Categories, fourth hue.
oklch(0.58 0.21 350)
oklch(0.72 0.17 350)
Categories, fifth hue.
oklch(0.56 0.14 240)
oklch(0.72 0.12 240)

The sidebar reads its own tokens, so it can differ from the page. By default it does not.

Fixed. A product does not change these.

TokenLightDark
The sidebar and the rail. By default, the page's own colour.
#ffffff
#111111
Text in the sidebar.
#191919
#ededed
A selected or primary element in the sidebar.
var(--primary)#462cf2
var(--primary)#5b45f5
A label on it.
#ffffff
#ffffff
A hovered or current row.
#f7f7f7
#1f1f1f
Text on that row.
#191919
#ededed
The sidebar's hairlines.
#ebebeb
#262626
The focus ring inside the sidebar.
var(--primary)#462cf2
var(--primary)#5b45f5

Contrast

The pairs the palette is built to keep. Text needs 4.5:1 against its ground and the edge of a control needs 3:1 (WCAG 2.2, level AA). Each ratio is worked out from the two values, with a see-through ground laid over the page first.

PairLightDark
--foregroundon--background
17.5:1
16.1:1
--muted-foregroundon--background
6.4:1
7.4:1
--muted-foregroundon--secondary
6:1
6.5:1
--subtle-foregroundon--background
4.9:1
5.4:1
--subtle-foregroundon--secondary
4.6:1
4.7:1
--linkon--background
7.2:1
6.8:1
--primary-foregroundon--primary
7.2:1
5.8:1
--destructiveon--background
5.2:1
5.2:1
--positiveon--background
4.5:1
9.4:1
--positive-inkon--positive-subtle
9.4:1
9.7:1
--info-inkon--info-subtle
12.3:1
9.5:1
--warning-inkon--warning-subtle
8.1:1
9.8:1
--destructive-inkon--destructive-subtle
9.3:1
9.5:1
--tint-mint-foregroundon--tint-mint
6.8:1
9:1
--tint-peach-foregroundon--tint-peach
7.9:1
8.7:1
--tint-sky-foregroundon--tint-sky
7.2:1
8.7:1
--tint-blue-foregroundon--tint-blue
7.9:1
8.3:1
--tint-pink-foregroundon--tint-pink
7.5:1
8.4:1
--tint-lavender-foregroundon--tint-lavender
7.6:1
8.3:1
--control-borderon--background
3.4:1
3.9:1

Classes

A token is also a Tailwind colour of the same name: --primary is bg-primary, text-primary and border-primary. These are the exceptions.

No class
  • --accent
  • --image-outline
  • --scrim
  • --info

Read these with var().

Classes of their own
  • accentvar(--secondary)
  • focus-ringcolor-mix(in oklab, var(--foreground) 40%, transparent)
  • canvas-textCanvasText
  • highlightHighlight