Foundations
Color
Pure greys, one burnt-orange accent, and a build that refuses to ship an unreadable pair.
The palette follows two rules from the visual direction: Grey, plus one accent and Readable in both themes. Every color below is an OKLCh token with a light and a dark value. The hex next to it is the sRGB equivalent after gamut mapping, for reference only. Use the utilities (bg-*, text-*, border-*) and never the hex.
Recipes such as primary-tint are mixed in CSS from other tokens, so a light island inside a dark page recomputes them with that island’s values. Tokens that share a value today (light primary-text and primary, say) stay separate, because they are free to drift apart tomorrow.
Tokens
background
--sb-color-background · bg-background, text-background, border-background
Derives from Dark by defaultlight #fff oklch(1 0 0)dark #000 oklch(0.05 0 0)foreground
--sb-color-foreground · bg-foreground, text-foreground, border-foreground
Derives from Dark by defaultlight #0a0a0a oklch(0.145 0 0)dark #fafafa oklch(0.985 0 0)- light #fff oklch(1 0 0)dark #090909 oklch(0.14 0 0)
card-foreground
--sb-color-card-foreground · bg-card-foreground, text-card-foreground, border-card-foreground
alias of foreground
Derives from Dark by defaultlight #0a0a0a oklch(0.145 0 0)dark #fafafa oklch(0.985 0 0)- light #fff oklch(1 0 0)dark #070707 oklch(0.13 0 0)
popover-foreground
--sb-color-popover-foreground · bg-popover-foreground, text-popover-foreground, border-popover-foreground
alias of foreground
Derives from Dark by defaultlight #0a0a0a oklch(0.145 0 0)dark #fafafa oklch(0.985 0 0)primary
--sb-color-primary · bg-primary, text-primary, border-primary
Derives from Grey, plus one accentlight #ca3500 oklch(0.553 0.195 38.402)dark #9f2d00 oklch(0.47 0.157 37.304)primary-foreground
--sb-color-primary-foreground · bg-primary-foreground, text-primary-foreground, border-primary-foreground
Derives from Grey, plus one accentlight #fff7ed oklch(0.98 0.016 73.684)dark #fff7ed oklch(0.98 0.016 73.684)primary-text
--sb-color-primary-text · bg-primary-text, text-primary-text, border-primary-text
light: alias of primary; dark: own value
D-18: the accent as text. Dark lifts to L 0.62 so it clears 4.5:1 on background, card, muted and primary-tint; light equals primary. Never use primary as a text colour
Derives from Readable in both themeslight #ca3500 oklch(0.553 0.195 38.402)dark #d35d3a oklch(0.62 0.157 37.304)secondary
--sb-color-secondary · bg-secondary, text-secondary, border-secondary
Derives from Dark by defaultlight #f4f4f5 oklch(0.967 0.001 286.375)dark #161616 oklch(0.199 0 0)secondary-foreground
--sb-color-secondary-foreground · bg-secondary-foreground, text-secondary-foreground, border-secondary-foreground
Derives from Dark by defaultlight #18181b oklch(0.21 0.006 285.885)dark #fafafa oklch(0.985 0 0)- light #f5f5f5 oklch(0.97 0 0)dark #151515 oklch(0.194 0 0)
muted-foreground
--sb-color-muted-foreground · bg-muted-foreground, text-muted-foreground, border-muted-foreground
Derives from Dark by defaultlight #606060 oklch(0.49 0 0)dark #aeaeae oklch(0.75 0 0)destructive
--sb-color-destructive · bg-destructive, text-destructive, border-destructive
Derives from Status speaks in toneslight #e7000b oklch(0.577 0.245 27.325)dark #ff6467 oklch(0.704 0.191 22.216)destructive-text
--sb-color-destructive-text · bg-destructive-text, text-destructive-text, border-destructive-text
light: own value; dark: alias of destructive
D-18: destructive as text. Light darkens to L 0.547 so it clears 4.5:1 on destructive-tint; dark equals destructive
Derives from Readable in both themeslight #db0000 oklch(0.547 0.245 27.325)dark #ff6467 oklch(0.704 0.191 22.216)- light #d9d9d9 oklch(0.885 0 0)dark #ffffff29 oklch(1 0 0 / 0.16)
border-control
--sb-color-border-control · bg-border-control, text-border-control, border-border-control
Control edges at 3:1 (D-18); decorative hairlines use border
Derives from Readable in both themeslight #929292 oklch(0.66 0 0)dark #5d5d5d oklch(0.48 0 0)ring
--sb-color-ring · bg-ring, text-ring, border-ring
light: alias of primary; dark: own value
Hand-tuned: dark primary fails WCAG 1.4.11 3:1 against background and card
Derives from Grey, plus one accentlight #ca3500 oklch(0.553 0.195 38.402)dark #be4a26 oklch(0.56 0.157 37.304)- light #f6f6f6 oklch(0.972 0 0)dark #030303 oklch(0.1 0 0)
sidebar-foreground
--sb-color-sidebar-foreground · bg-sidebar-foreground, text-sidebar-foreground, border-sidebar-foreground
alias of foreground
Derives from Dark by defaultlight #0a0a0a oklch(0.145 0 0)dark #fafafa oklch(0.985 0 0)sidebar-primary
--sb-color-sidebar-primary · bg-sidebar-primary, text-sidebar-primary, border-sidebar-primary
primary, 11%, over transparent
Derives from Grey, plus one accentlight #ca35001c oklch(0.553 0.195 38.402 / 0.11)dark #9f2d001c oklch(0.47 0.157 37.304 / 0.11)sidebar-accent
--sb-color-sidebar-accent · bg-sidebar-accent, text-sidebar-accent, border-sidebar-accent
sidebar-foreground, 6%, over transparent
Derives from Dark by defaultlight #0a0a0a0f oklch(0.145 0 0 / 0.06)dark #fafafa0f oklch(0.985 0 0 / 0.06)sidebar-accent-foreground
--sb-color-sidebar-accent-foreground · bg-sidebar-accent-foreground, text-sidebar-accent-foreground, border-sidebar-accent-foreground
Derives from Dark by defaultlight #171717 oklch(0.205 0 0)dark #fafafa oklch(0.985 0 0)sidebar-border
--sb-color-sidebar-border · bg-sidebar-border, text-sidebar-border, border-sidebar-border
Derives from Flatlight #d6d6d6 oklch(0.875 0 0)dark #ffffff29 oklch(1 0 0 / 0.16)state-hover
--sb-color-state-hover · bg-state-hover, text-state-hover, border-state-hover
alias of sidebar-accent
Derives from Dark by defaultlight #0a0a0a0f oklch(0.145 0 0 / 0.06)dark #fafafa0f oklch(0.985 0 0 / 0.06)state-active
--sb-color-state-active · bg-state-active, text-state-active, border-state-active
alias of sidebar-primary
Derives from Grey, plus one accentlight #ca35001c oklch(0.553 0.195 38.402 / 0.11)dark #9f2d001c oklch(0.47 0.157 37.304 / 0.11)card-veil
--sb-color-card-veil · bg-card-veil, text-card-veil, border-card-veil
card, 94%, over transparent
Derives from Dark by defaultlight #fffffff0 oklch(1 0 0 / 0.94)dark #090909f0 oklch(0.14 0 0 / 0.94)chrome-veil
--sb-color-chrome-veil · bg-chrome-veil, text-chrome-veil, border-chrome-veil
background, 90%, over transparent
Derives from Dark by defaultlight #ffffffe6 oklch(1 0 0 / 0.9)dark #000000e6 oklch(0.05 0 0 / 0.9)veil
--sb-color-veil · bg-veil, text-veil, border-veil
muted, 55%, over transparent
Derives from Dark by defaultlight #f5f5f58c oklch(0.97 0 0 / 0.55)dark #1515158c oklch(0.194 0 0 / 0.55)border-faint
--sb-color-border-faint · bg-border-faint, text-border-faint, border-border-faint
border, 55%, over transparent
Derives from Flatlight #d9d9d98c oklch(0.885 0 0 / 0.55)dark #ffffff16 oklch(1 0 0 / 0.088)primary-tint
--sb-color-primary-tint · bg-primary-tint, text-primary-tint, border-primary-tint
primary, 9%, over transparent
Derives from Grey, plus one accentlight #ca350017 oklch(0.553 0.195 38.402 / 0.09)dark #9f2d0017 oklch(0.47 0.157 37.304 / 0.09)primary-border
--sb-color-primary-border · bg-primary-border, text-primary-border, border-primary-border
primary, 65%, into border
Derives from Grey, plus one accentlight #d67759 oklch(0.6692 0.1268 38.402)dark #a94120b4 oklch(0.512 0.1445 37.304 / 0.706)primary-flash
--sb-color-primary-flash · bg-primary-flash, text-primary-flash, border-primary-flash
primary, 28%, over transparent
Derives from Grey, plus one accentlight #ca350047 oklch(0.553 0.195 38.402 / 0.28)dark #9f2d0047 oklch(0.47 0.157 37.304 / 0.28)sel
--sb-color-sel · bg-sel, text-sel, border-sel
primary, 12%, over transparent
Derives from Grey, plus one accentlight #ca35001f oklch(0.553 0.195 38.402 / 0.12)dark #9f2d001f oklch(0.47 0.157 37.304 / 0.12)destructive-tint
--sb-color-destructive-tint · bg-destructive-tint, text-destructive-tint, border-destructive-tint
destructive, 8%, over transparent
Derives from Status speaks in toneslight #e7000b14 oklch(0.577 0.245 27.325 / 0.08)dark #ff646714 oklch(0.704 0.191 22.216 / 0.08)destructive-border
--sb-color-destructive-border · bg-destructive-border, text-destructive-border, border-destructive-border
destructive, 55%, into border
Derives from Status speaks in toneslight #eb8074 oklch(0.7156 0.1348 27.325)dark #ff79789f oklch(0.7383 0.1689 22.216 / 0.622)in-flight-fill
--sb-color-in-flight-fill · bg-in-flight-fill, text-in-flight-fill, border-in-flight-fill
primary, 38%, into muted-foreground
Derives from Status speaks in toneslight #8c5847 oklch(0.5139 0.0741 38.402)dark #ae8173 oklch(0.6436 0.0597 37.304)in-flight-border
--sb-color-in-flight-border · bg-in-flight-border, text-in-flight-border, border-in-flight-border
in-flight-fill, 50%, into border
Derives from Status speaks in toneslight #b4978e oklch(0.6995 0.037 38.402)dark #b9928694 oklch(0.6928 0.0514 37.304 / 0.58)missing-fill
--sb-color-missing-fill · bg-missing-fill, text-missing-fill, border-missing-fill
destructive, 35%, into muted-foreground
Derives from Status speaks in toneslight #94554e oklch(0.5204 0.0857 27.325)dark #d09996 oklch(0.7339 0.0668 22.216)missing-border
--sb-color-missing-border · bg-missing-border, text-missing-border, border-missing-border
missing-fill, 50%, into border
Derives from Status speaks in toneslight #b99691 oklch(0.7027 0.0429 27.325)dark #d7a7a494 oklch(0.7706 0.0576 22.216 / 0.58)table-zebra
--sb-color-table-zebra · bg-table-zebra, text-table-zebra, border-table-zebra
light: muted, 62%, over transparent; dark: secondary, 50%, over transparent
Derives from Dark by defaultlight #f5f5f59e oklch(0.97 0 0 / 0.62)dark #16161680 oklch(0.199 0 0 / 0.5)scrollbar-thumb
--sb-color-scrollbar-thumb · bg-scrollbar-thumb, text-scrollbar-thumb, border-scrollbar-thumb
muted-foreground, 30%, over transparent
Derives from Dark by defaultlight #6060604d oklch(0.49 0 0 / 0.3)dark #aeaeae4d oklch(0.75 0 0 / 0.3)scrollbar-thumb-strong
--sb-color-scrollbar-thumb-strong · bg-scrollbar-thumb-strong, text-scrollbar-thumb-strong, border-scrollbar-thumb-strong
muted-foreground, 55%, over transparent
Derives from Dark by defaultlight #6060608c oklch(0.49 0 0 / 0.55)dark #aeaeae8c oklch(0.75 0 0 / 0.55)overlay-scrim
--sb-color-overlay-scrim · bg-overlay-scrim, text-overlay-scrim, border-overlay-scrim
light: foreground, 38%, over transparent; dark: background, 72%, over transparent
Derives from Dark by defaultlight #0a0a0a61 oklch(0.145 0 0 / 0.38)dark #000000b8 oklch(0.05 0 0 / 0.72)tone-complete
--sb-color-tone-complete · bg-tone-complete, text-tone-complete, border-tone-complete
alias of primary
Derives from Status speaks in toneslight #ca3500 oklch(0.553 0.195 38.402)dark #9f2d00 oklch(0.47 0.157 37.304)tone-complete-mark
--sb-color-tone-complete-mark · bg-tone-complete-mark, text-tone-complete-mark, border-tone-complete-mark
light: alias of primary; dark: own value
D-19: the in-sync status mark. Dark uses the ring lightness (L 0.56) so it clears 3:1 on background and card; light equals primary
Derives from Readable in both themeslight #ca3500 oklch(0.553 0.195 38.402)dark #be4a26 oklch(0.56 0.157 37.304)tone-inflight
--sb-color-tone-inflight · bg-tone-inflight, text-tone-inflight, border-tone-inflight
alias of in-flight-fill
Derives from Status speaks in toneslight #8c5847 oklch(0.5139 0.0741 38.402)dark #ae8173 oklch(0.6436 0.0597 37.304)
Contrast
The token build computes these ratios (WCAG 2.1, sRGB gamut-mapped, translucent backgrounds composited over the page background) and fails when a gated pair drops below its minimum. Informational pairs are reported so you can see why the gated tokens exist: the dark accent fill is too dim to read as text, and decorative hairlines are not control edges.
| Pair | Light | Dark | Minimum | Check |
|---|---|---|---|---|
| foreground on background Body text on the page canvas | Aa 19.79 pass | Aa 20.06 pass | 4.5 text | gated |
| foreground on card Body text on cards, demo previews and toasts | Aa 19.79 pass | Aa 19.07 pass | 4.5 text | gated |
| card-foreground on card Card content text | Aa 19.79 pass | Aa 19.07 pass | 4.5 text | gated |
| popover-foreground on popover Menu, select and tooltip text | Aa 19.79 pass | Aa 19.27 pass | 4.5 text | gated |
| muted-foreground on background Secondary text, descriptions and eyebrows on the canvas | Aa 6.26 pass | Aa 9.41 pass | 4.5 text | gated |
| muted-foreground on card Secondary text inside cards | Aa 6.26 pass | Aa 8.95 pass | 4.5 text | gated |
| muted-foreground on muted Placeholder and supporting text on muted fills | Aa 5.74 pass | Aa 8.23 pass | 4.5 text | gated |
| muted-foreground on popover Select group headings and chevrons on the floating list | Aa 6.26 pass | Aa 9.04 pass | 4.5 text | gated |
| primary-foreground on primary Primary button label on the accent fill | Aa 4.93 pass | Aa 6.93 pass | 4.5 text | gated |
| secondary-foreground on secondary Secondary button label | Aa 16.11 pass | Aa 17.37 pass | 4.5 text | gated |
| primary-text on background Accent eyebrows and accent links on the canvas (D-18) | Aa 5.23 pass | Aa 5.38 pass | 4.5 text | gated |
| primary-text on card Accent text inside cards (D-18) | Aa 5.23 pass | Aa 5.11 pass | 4.5 text | gated |
| primary-text on muted Accent text on muted fills (D-18) | Aa 4.79 pass | Aa 4.70 pass | 4.5 text | gated |
| primary-text on primary-tint Selected item label: toggles, segmented items, current page (D-18) | Aa 4.56 pass | Aa 5.19 pass | 4.5 text | gated |
| primary-text on popover Selected Select option and its check on the floating list | Aa 5.23 pass | Aa 5.16 pass | 4.5 text | gated |
| destructive-text on background Error messages under fields (D-18) | Aa 5.23 pass | Aa 7.24 pass | 4.5 text | gated |
| destructive-text on card Field error text and mark on a card surface | Aa 5.23 pass | Aa 6.88 pass | 4.5 text | gated |
| destructive-text on destructive-tint Destructive badge and error toast text (D-18) | Aa 4.54 pass | Aa 6.78 pass | 4.5 text | gated |
| ring on background Focus outline on the canvas (D-18) | 5.23 pass | 4.19 pass | 3.0 non-text | gated |
| ring on card Focus outline inside cards (D-18) | 5.23 pass | 3.98 pass | 3.0 non-text | gated |
| ring on popover Focus outline on dialog and alert dialog controls | 5.23 pass | 4.03 pass | 3.0 non-text | gated |
| border-control on background Input, select and outline-button edges on the canvas (D-18) | 3.11 pass | 3.20 pass | 3.0 non-text | gated |
| border-control on card Control edges inside cards (D-18) | 3.11 pass | 3.04 pass | 3.0 non-text | gated |
| border-control on popover Control edges inside menus and popovers (D-18) | 3.11 pass | 3.08 pass | 3.0 non-text | gated |
| tone-complete-mark on background The in-sync status mark on the canvas (D-19) | 5.23 pass | 4.19 pass | 3.0 non-text | gated |
| tone-complete-mark on card The in-sync status mark inside cards (D-19) | 5.23 pass | 3.98 pass | 3.0 non-text | gated |
| primary on background Why primary-text exists: the dark accent fill is too dim to read as text | Aa 5.23 pass | Aa 2.85 fail | 4.5 text | informational |
| border on background Decorative hairlines between surfaces; not a control boundary | 1.41 fail | 1.44 fail | 3.0 non-text | informational |
| in-flight-fill on background In-flight status mark; it always travels with a text label | 5.83 pass | 6.17 pass | 3.0 non-text | informational |
| missing-fill on background Missing status mark; it always travels with a text label | 5.73 pass | 8.64 pass | 3.0 non-text | informational |
| in-flight-fill on card Loading toast mark; the toast's words carry the meaning | 5.83 pass | 5.87 pass | 3.0 non-text | informational |
| destructive-border on card Error toast edge; a redundant cue next to the mark and the words | 2.67 fail | 3.56 pass | 3.0 non-text | informational |
| background on foreground Tooltip text on the inverted chip | Aa 19.79 pass | Aa 20.06 pass | 4.5 text | gated |
| destructive-text on popover Destructive menu item label on the floating list | Aa 5.23 pass | Aa 6.96 pass | 4.5 text | gated |
| popover-foreground on state-hover Highlighted menu item label | Aa 17.42 pass | Aa 18.31 pass | 4.5 text | gated |
| destructive-text on state-hover Highlighted destructive menu item label | Aa 4.60 pass | Aa 6.61 pass | 4.5 text | gated |
| foreground on veil Neutral, in-flight and missing badge text on the veil fill | Aa 18.88 pass | Aa 18.79 pass | 4.5 text | gated |
| foreground on muted Avatar initials and the stack's +N count on the muted circle | Aa 18.15 pass | Aa 17.55 pass | 4.5 text | gated |
| foreground on chrome-veil Player chrome timecodes and the buffering word on the chrome veil | Aa 19.79 pass | Aa 20.06 pass | 4.5 text | gated |
| muted-foreground on chrome-veil The viewer's "is driving" readout on the chrome veil | Aa 6.26 pass | Aa 9.41 pass | 4.5 text | gated |
| border-control on chrome-veil Slider thumb edge on the player chrome (D-18) | 3.11 pass | 3.20 pass | 3.0 non-text | gated |