Colors
Every color is a CSS custom property named --cherry-<token>, so the swatch labeled bg-canvas is var(--cherry-bg-canvas). Use the semantic colors in your CSS: they switch between light and dark mode on their own, and brands re-point them. The palette below is what they resolve to.
.panel {
background: var(--cherry-bg-subtle);
color: var(--cherry-fg-default);
border: 1px solid var(--cherry-border-default);
}Never branch on the mode to pick a color, and never write .dark overrides for a cherry color. Use the semantic token; it already switches. See Dark mode.
Semantic colors
These are the colors to use in your CSS. Each one resolves from a light slot and a dark slot (--cherry-l-* and --cherry-d-*, see Brands). Each group shows the light value, then the dark value.
Readable text uses --cherry-fg-default or --cherry-fg-muted. --cherry-fg-subtle is below 4.5:1 contrast and is only for disabled text, borders and decorative marks.
Background
Light
bg-canvasbg-subtlebg-mutedbg-elevatedbg-segmentbg-segment-selectedbg-inversebg-overlayDark
bg-canvasbg-subtlebg-mutedbg-elevatedbg-segmentbg-segment-selectedbg-inversebg-overlay--cherry-bg-segment: Track of segmented controls (pill Tabs, ThemeToggle).--cherry-bg-segment-selected: Selected item surface inside a segment track; raised (lighter) in both modes.
Foreground
Light
fg-defaultfg-mutedfg-subtlefg-inversefg-on-accentDark
fg-defaultfg-mutedfg-subtlefg-inversefg-on-accent--cherry-fg-default: Body text and headings.--cherry-fg-muted: Secondary text, placeholders, hints, captions. At least 4.5:1 on canvas, subtle and muted backgrounds.--cherry-fg-subtle: Disabled text, borders and decorative marks only: below 4.5:1, never for readable text.
Border
Light
border-defaultborder-strongborder-subtleborder-focusDark
border-defaultborder-strongborder-subtleborder-focus--cherry-border-focus: Focus border, paired with --cherry-ring.
Actions
Light
primary-defaultprimary-hoverprimary-fgsecondary-defaultsecondary-hoversecondary-fgghost-hoverDark
primary-defaultprimary-hoverprimary-fgsecondary-defaultsecondary-hoversecondary-fgghost-hoverAccent
Light
accent-defaultaccent-hoveraccent-subtleaccent-fgaccent-ringai-fromai-toDark
accent-defaultaccent-hoveraccent-subtleaccent-fgaccent-ringai-fromai-to--cherry-accent-default: Brand accent fill (white text on it is at least 4.5:1).--cherry-accent-fg: Accent-colored text on canvas.
Status
Light
success-fgsuccess-bgsuccess-bordersuccess-solidwarning-fgwarning-bgwarning-borderwarning-soliddanger-fgdanger-bgdanger-borderdanger-solidinfo-fginfo-bginfo-borderinfo-solidDark
success-fgsuccess-bgsuccess-bordersuccess-solidwarning-fgwarning-bgwarning-borderwarning-soliddanger-fgdanger-bgdanger-borderdanger-solidinfo-fginfo-bginfo-borderinfo-solidFocus and shadow colors
These are translucent colors used inside --cherry-ring and the --cherry-shadow-* elevation tokens (see Tokens), so they are listed as values rather than swatches.
| Token | Light | Dark | Notes |
|---|---|---|---|
--cherry-focus-ring | #09090b26 | #ffffff33 | The soft ring color inside --cherry-ring. |
--cherry-shadow-ambient | #09090b0a | #09090b80 | |
--cherry-shadow-xs | #09090b0d | #09090b80 | |
--cherry-shadow-sm | #09090b0f | #09090b8c | |
--cherry-shadow-md | #09090b14 | #09090b99 | |
--cherry-shadow-lg | #09090b1f | #09090bb2 | |
--cherry-shadow-xl | #09090b2e | #09090bd9 | |
--cherry-shadow-highlight | #ffffff00 | #ffffff14 |
Palette
The raw color steps the semantic colors point to. Prefer the semantic tokens in your CSS: palette steps do not switch with the mode, and brands do not change them.
Zinc
zinc-0zinc-50zinc-100zinc-200zinc-300zinc-400zinc-500zinc-550zinc-600zinc-700zinc-800zinc-900zinc-925zinc-950Cherry
cherry-50cherry-100cherry-200cherry-300cherry-400cherry-500cherry-600cherry-700cherry-800cherry-900cherry-950Green
green-50green-200green-400green-500green-600green-700green-900green-950Amber
amber-50amber-200amber-400amber-500amber-600amber-700amber-900amber-950Blue
blue-50blue-200blue-400blue-500blue-600blue-900blue-950Violet
violet-400violet-500violet-600Alpha
Translucent steps behind the overlay, focus ring and shadow colors.
| Token | Value |
|---|---|
--cherry-alpha-cherry-ring | #ef2f5440 |
--cherry-alpha-white-8 | #ffffff14 |
--cherry-alpha-black-6 | #0000000f |
--cherry-alpha-black-15 | #09090b26 |
--cherry-alpha-black-50 | #00000080 |
--cherry-alpha-black-70 | #000000b3 |
--cherry-alpha-white-20 | #ffffff33 |
--cherry-alpha-shadow-ambient-light | #09090b0a |
--cherry-alpha-shadow-ambient-dark | #09090b80 |
--cherry-alpha-shadow-xs-light | #09090b0d |
--cherry-alpha-shadow-xs-dark | #09090b80 |
--cherry-alpha-shadow-sm-light | #09090b0f |
--cherry-alpha-shadow-sm-dark | #09090b8c |
--cherry-alpha-shadow-md-light | #09090b14 |
--cherry-alpha-shadow-md-dark | #09090b99 |
--cherry-alpha-shadow-lg-light | #09090b1f |
--cherry-alpha-shadow-lg-dark | #09090bb2 |
--cherry-alpha-shadow-xl-light | #09090b2e |
--cherry-alpha-shadow-xl-dark | #09090bd9 |
--cherry-alpha-shadow-highlight-light | #ffffff00 |
--cherry-alpha-shadow-highlight-dark | #ffffff14 |