Foundations

Color

48 colour tokens, with values for the brand this site wears. Components only use these semantic roles, never the raw palettes underneath, which is what lets a brand or dark mode change every component at once. The swatches are painted from the live CSS variables, light on the left and dark on the right.

Tokens

Neutral scale

The gray ramp the other colour roles resolve to. It flips in dark mode, so 50 is always the page and 900 always the strongest contrast.

TokenPreviewLightDarkUsed by
--color-neutral-50#F8FBFA#FFF9F4#FAF9FF#111916#1E150E#17122C—
--color-neutral-100#F1F7F4#FEF3EB#F5F4FC#1F2925#2F241A#26223D—
--color-neutral-200#DFE7E4#F0E2D8#E5E4EE#37433E#4B3D31#3F3C56—
--color-neutral-300#CDD7D3#E0D1C6#D4D2E0#485650#5F4F42#524F67—
--color-neutral-400#9AA6A1#AFA094#A2A1B2#687771#817062#737087—
--color-neutral-500#687771#817062#737087#9AA6A1#AFA094#A2A1B2—
--color-neutral-600#485650#5F4F42#524F67#CDD7D3#E0D1C6#D4D2E0—
--color-neutral-700#37433E#4B3D31#3F3C56#DFE7E4#F0E2D8#E5E4EE—
--color-neutral-800#1F2925#2F241A#26223D#F1F7F4#FEF3EB#F5F4FC—
--color-neutral-900#111916#1E150E#17122C#F8FBFA#FFF9F4#FAF9FF—

Surface

Background layers, from the page itself to raised containers, plus an inverse surface for dark-on-light moments.

TokenPreviewLightDarkUsed by
--color-surface-primary#F8FBFA#FFF9F4#FAF9FF#111916#1E150E#17122CCard, CommandPalette, Dialog, Drawer and 27 more
--color-surface-secondary#F1F7F4#FEF3EB#F5F4FC#1F2925#2F241A#26223DCard, Menu, NavigationMenu, Accordion and 38 more
--color-surface-tertiary#DFE7E4#F0E2D8#E5E4EE#37433E#4B3D31#3F3C56Dialog, Drawer, Table, Button and 4 more
--color-surface-inverse#111916#1E150E#17122C#F8FBFA#FFF9F4#FAF9FFTooltip

Text

Primary for body copy and headings, secondary for supporting text, inverse for text on an inverse surface.

TokenPreviewLightDarkUsed by
--color-text-primary#0A110F#1E130E#241F3A#F8FBFA#FFF9F4#FAF9FFCommandPalette, Dialog, Drawer, Lightbox and 55 more
--color-text-secondary#485650#5F4F42#524F67#CDD7D3#E0D1C6#D4D2E0Card, CommandPalette, ContextMenu, Dialog and 56 more
--color-text-inverse#F8FBFA#FFF9F4#FAF9FF#111916#1E150E#17122CTooltip

Accent

Primary actions and selected states. In base it’s near-black; a brand changes these to put its own colour on actions and links.

TokenPreviewLightDarkUsed by
--color-accent-default#117555#CB3000#BCB4F4#5BC99E#F98942#B6AEEEMobileNav, Pagination, Stepper, Button and 11 more
--color-accent-hover#00694A#AF2E00#B4ADEB#69D6AA#FF9B5A#BCB4EFButton
--color-accent-pressed#005C41#9C2800#ADA5E1#80E2B9#FFAF7A#C2BBF1Button
--color-accent-foreground#FDFEFE#FFFFFF#241F3A#0A110F#1E130E#241F3AMobileNav, Pagination, Stepper, Button and 9 more
--color-accent-text#117555#CB3000#5E4DA1#5BC99E#F98942#B6AEEECard, Carousel, ResizablePanels, Stepper and 18 more
--color-accent-text-hover#00694A#AF2E00#4E3C8E#69D6AA#FF9B5A#BCB4EFCollapsible, Link

Border

Dividers and outlines, the focus ring, and the curtain colour used by route transitions.

TokenPreviewLightDarkUsed by
--color-border-default#DFE7E4#1E130E#F5F4FC#37433E#FFF9F4#3F3C56Card, CommandPalette, Dialog, Drawer and 39 more
--color-border-strong#687771#1E130E#737087#687771#FFF9F4#737087Card, Carousel, Chart, ChatComposer and 18 more
--color-border-focus#0A110F#1E130E#241F3A#F8FBFA#FFF9F4#FAF9FFAlert, Card, Dialog, Drawer and 43 more
--color-curtain#CDD7D3#E0D1C6#D4D2E0#485650#5F4F42#524F67—

Feedback

Error, success, warning and info. Each state has a background, a foreground and a border, used together by Alert, Toast and form errors.

TokenPreviewLightDarkUsed by
--color-feedback-error#c0392b#c0392b#c0392b#f87171#f87171#f87171Menu, ChatMessage, FormLayout, MobileNav and 13 more
--color-feedback-error-background#FEF2F2#FEF2F2#FEF2F2#1F2925#2F241A#26223DAlert, Menu, FormLayout, MobileNav and 1 more
--color-feedback-error-foreground#a93226#a93226#a93226#f87171#f87171#f87171Alert, Toast, FormLayout, Badge
--color-feedback-error-border#c0392b#c0392b#c0392b#f87171#f87171#f87171Alert, Toast, MobileNav, Badge
--color-feedback-success-background#F0FDF4#F0FDF4#F0FDF4#1F2925#2F241A#26223DAlert, Badge
--color-feedback-success-foreground#15803D#15803D#15803D#f0fdf4#f0fdf4#f0fdf4Alert, Toast, Badge
--color-feedback-success-border#16A34A#16A34A#16A34A#4ade80#4ade80#4ade80Alert, Toast, ToolCall, Badge and 1 more
--color-feedback-warning-background#FFFBEB#FFFBEB#FFFBEB#1F2925#2F241A#26223DAlert, Badge
--color-feedback-warning-foreground#B45309#B45309#B45309#fffbeb#fffbeb#fffbebAlert, Toast, Badge
--color-feedback-warning-border#D97706#D97706#D97706#fcd34d#fcd34d#fcd34dAlert, Toast, ToolCall, Badge and 1 more
--color-feedback-info-background#EFF6FF#EFF6FF#EFF6FF#1F2925#2F241A#26223DAlert, Badge
--color-feedback-info-foreground#1D4ED8#1D4ED8#1D4ED8#eff6ff#eff6ff#eff6ffAlert, Toast, Badge
--color-feedback-info-border#2563EB#2563EB#2563EB#60a5fa#60a5fa#60a5faAlert, Toast, Badge, StatusDot

Skeleton

The two colours a loading skeleton pulses between.

TokenPreviewLightDarkUsed by
--color-skeleton-base#DFE7E4#F0E2D8#E5E4EE#37433E#4B3D31#3F3C56Skeleton
--color-skeleton-highlight#F1F7F4#FEF3EB#F5F4FC#1F2925#2F241A#26223DSkeleton

Other

Tokens in this category that the groups above don’t cover yet.

TokenPreviewLightDarkUsed by
--color-chart-1#2A78D6#2A78D6#2A78D6#3987E5#3987E5#3987E5Chart
--color-chart-2#CF5A22#CF5A22#CF5A22#D95926#D95926#D95926Chart
--color-chart-3#14876A#14876A#14876A#199E70#199E70#199E70Chart
--color-chart-4#A57300#A57300#A57300#C98500#C98500#C98500Chart
--color-chart-5#C44A7E#C44A7E#C44A7E#D55181#D55181#D55181Chart
--color-chart-6#2F7D1F#2F7D1F#2F7D1F#008300#008300#008300Chart

Usage

Reach for the role, not the shade. A surface token on a background, a text token on text.

css
.notice {
  background: var(--color-surface-secondary);
  color: var(--color-text-primary);
  border: var(--border-width-default) solid var(--color-border-default);
}

.notice__meta {
  color: var(--color-text-secondary);
}

/* Dark mode needs no extra CSS: the same tokens
   resolve to dark values under [data-mode="dark"]. */

Do and don’t

Do

  • Use --color-text-secondary for supporting text, so it stays readable in both modes.
  • Pair each feedback background with its own foreground and border.
  • Pair colour with text or an icon when it carries meaning, like an error.

Don’t

  • Write a hex value. The linter rejects it in component CSS, and it won’t follow dark mode.
  • Use a neutral step for a role that has its own token, like --color-neutral-200 for a border.
  • Use the accent for decoration. It marks the main action.