Cheery for shadcn/ui

Cheery is a shadcn/ui theme built around a muted light green primary color (#e5ebe0) with muted light green accents (#e0ebe1). The light mode uses a neutral background (#fcfefb). Dark mode keeps the muted light green primary (#e5ebe0) on a neutral background (#020302).

Color palette

TokenLightDark
Background
#fcfefbwhite
#020302black
Foreground
#0a1103black
#ffffffwhite
Card
#fcfefbwhite
#020302black
Card foreground
#0a1103black
#ffffffwhite
Popover
#fcfefbwhite
#020302black
Popover foreground
#0a1103black
#ffffffwhite
Primary
#e5ebe0gainsboro
#e5ebe0gainsboro
Primary foreground
#191f14black
#191f14black
Secondary
#eaebe0beige
#eaebe0beige
Secondary foreground
#1e1f14black
#1e1f14black
Muted
#e2e2d4gainsboro
#2a2b1ddarkslategray
Muted foreground
#6a6b57dimgray
#a7a894darkgray
Accent
#e0ebe1gainsboro
#e0ebe1gainsboro
Accent foreground
#3d5c3fdarkslategray
#3d5c3fdarkslategray
Destructive
#610905maroon
#f6453ctomato
Destructive foreground
#faa29elightsalmon
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#e5ebe0gainsboro
#e5ebe0gainsboro

Contrast

WCAG 2 contrast ratios between each background and its foreground color.

Light mode
Text on background18.93:1AAA
Text on card18.93:1AAA
Primary button13.82:1AAA
Secondary button13.81:1AAA
Muted text4.17:1AA Large
Accent6.10:1AA
Destructive6.89:1AA
Dark mode
Text on background20.61:1AAA
Text on card20.61:1AAA
Primary button13.82:1AAA
Secondary button13.81:1AAA
Muted text5.94:1AA
Accent6.10:1AA
Destructive3.59:1AA Large

CSS variables

Paste this into your globals.css to use Cheery in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.995 0.005 130.481);
  --foreground: oklch(0.165 0.032 130.403);
  --muted: oklch(0.91 0.019 109.095);
  --muted-foreground: oklch(0.52 0.029 109.731);
  --popover: oklch(0.995 0.005 130.481);
  --popover-foreground: oklch(0.165 0.032 130.403);
  --card: oklch(0.995 0.005 130.481);
  --card-foreground: oklch(0.165 0.032 130.403);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.932 0.015 130.588);
  --primary-foreground: oklch(0.228 0.021 131.347);
  --secondary: oklch(0.936 0.014 108.977);
  --secondary-foreground: oklch(0.234 0.019 110.139);
  --accent: oklch(0.928 0.017 146.868);
  --accent-foreground: oklch(0.441 0.059 145.681);
  --destructive: oklch(0.317 0.121 29.543);
  --destructive-foreground: oklch(0.799 0.106 22.985);
  --ring: oklch(0.932 0.015 130.588);
  --chart-1: oklch(0.932 0.015 130.588);
  --chart-2: oklch(0.936 0.014 108.977);
  --chart-3: oklch(0.928 0.017 146.868);
  --chart-4: oklch(0.955 0.009 108.892);
  --chart-5: oklch(0.933 0.017 130.61);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.097 0.009 129.658);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.283 0.025 110.271);
  --muted-foreground: oklch(0.725 0.027 109.395);
  --popover: oklch(0.097 0.009 129.658);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.097 0.009 129.658);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.932 0.015 130.588);
  --primary-foreground: oklch(0.228 0.021 131.347);
  --secondary: oklch(0.936 0.014 108.977);
  --secondary-foreground: oklch(0.234 0.019 110.139);
  --accent: oklch(0.928 0.017 146.868);
  --accent-foreground: oklch(0.441 0.059 145.681);
  --destructive: oklch(0.649 0.214 27.832);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.932 0.015 130.588);
  --chart-1: oklch(0.932 0.015 130.588);
  --chart-2: oklch(0.936 0.014 108.977);
  --chart-3: oklch(0.928 0.017 146.868);
  --chart-4: oklch(0.955 0.009 108.892);
  --chart-5: oklch(0.933 0.017 130.61);
}