Skip to content

Customization

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.

css
.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

#ffffff
bg-canvas
#fafafa
bg-subtle
#f4f4f5
bg-muted
#ffffff
bg-elevated
#f4f4f5
bg-segment
#ffffff
bg-segment-selected
#18181b
bg-inverse
#00000080
bg-overlay

Dark

#09090b
bg-canvas
#111113
bg-subtle
#27272a
bg-muted
#18181b
bg-elevated
#18181b
bg-segment
#3f3f46
bg-segment-selected
#fafafa
bg-inverse
#000000b3
bg-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

#09090b
fg-default
#63636b
fg-muted
#a1a1aa
fg-subtle
#ffffff
fg-inverse
#ffffff
fg-on-accent

Dark

#fafafa
fg-default
#a1a1aa
fg-muted
#52525b
fg-subtle
#09090b
fg-inverse
#ffffff
fg-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

#e4e4e7
border-default
#d4d4d8
border-strong
#f4f4f5
border-subtle
#a1a1aa
border-focus

Dark

#27272a
border-default
#3f3f46
border-strong
#18181b
border-subtle
#71717a
border-focus
  • --cherry-border-focus: Focus border, paired with --cherry-ring.

Actions

Light

#18181b
primary-default
#3f3f46
primary-hover
#ffffff
primary-fg
#f4f4f5
secondary-default
#e4e4e7
secondary-hover
#18181b
secondary-fg
#f4f4f5
ghost-hover

Dark

#fafafa
primary-default
#e4e4e7
primary-hover
#09090b
primary-fg
#27272a
secondary-default
#3f3f46
secondary-hover
#fafafa
secondary-fg
#27272a
ghost-hover

Accent

Light

#dc1a43
accent-default
#b91137
accent-hover
#fff1f3
accent-subtle
#b91137
accent-fg
#ef2f5440
accent-ring
#ef2f54
ai-from
#8b5cf6
ai-to

Dark

#dc1a43
accent-default
#b91137
accent-hover
#3a0612
accent-subtle
#fd9aab
accent-fg
#ef2f5440
accent-ring
#f95f7b
ai-from
#a78bfa
ai-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

#047857
success-fg
#ecfdf5
success-bg
#a7f3d0
success-border
#059669
success-solid
#b45309
warning-fg
#fffbeb
warning-bg
#fde68a
warning-border
#f59e0b
warning-solid
#b91137
danger-fg
#fff1f3
danger-bg
#fec6cf
danger-border
#dc1a43
danger-solid
#2563eb
info-fg
#eff6ff
info-bg
#bfdbfe
info-border
#2563eb
info-solid

Dark

#34d399
success-fg
#022c22
success-bg
#064e3b
success-border
#10b981
success-solid
#fbbf24
warning-fg
#451a03
warning-bg
#78350f
warning-border
#fbbf24
warning-solid
#f95f7b
danger-fg
#3a0612
danger-bg
#831432
danger-border
#dc1a43
danger-solid
#60a5fa
info-fg
#172554
info-bg
#1e3a8a
info-border
#3b82f6
info-solid

Focus 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.

TokenLightDarkNotes
--cherry-focus-ring#09090b26#ffffff33The 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

#ffffff
zinc-0
#fafafa
zinc-50
#f4f4f5
zinc-100
#e4e4e7
zinc-200
#d4d4d8
zinc-300
#a1a1aa
zinc-400
#71717a
zinc-500
#63636b
zinc-550
#52525b
zinc-600
#3f3f46
zinc-700
#27272a
zinc-800
#18181b
zinc-900
#111113
zinc-925
#09090b
zinc-950

Cherry

#fff1f3
cherry-50
#ffe0e5
cherry-100
#fec6cf
cherry-200
#fd9aab
cherry-300
#f95f7b
cherry-400
#ef2f54
cherry-500
#dc1a43
cherry-600
#b91137
cherry-700
#9a1234
cherry-800
#831432
cherry-900
#3a0612
cherry-950

Green

#ecfdf5
green-50
#a7f3d0
green-200
#34d399
green-400
#10b981
green-500
#059669
green-600
#047857
green-700
#064e3b
green-900
#022c22
green-950

Amber

#fffbeb
amber-50
#fde68a
amber-200
#fbbf24
amber-400
#f59e0b
amber-500
#d97706
amber-600
#b45309
amber-700
#78350f
amber-900
#451a03
amber-950

Blue

#eff6ff
blue-50
#bfdbfe
blue-200
#60a5fa
blue-400
#3b82f6
blue-500
#2563eb
blue-600
#1e3a8a
blue-900
#172554
blue-950

Violet

#a78bfa
violet-400
#8b5cf6
violet-500
#7c3aed
violet-600

Alpha

Translucent steps behind the overlay, focus ring and shadow colors.

TokenValue
--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