Cheer for shadcn/ui

Cheer is a shadcn/ui theme built around a green primary color (#44e444) with muted light green accents (#e3e8e3). The light mode uses a neutral background (#f8fcf8). Dark mode keeps the green primary (#44e444) on a neutral background (#020802).

Color palette

TokenLightDark
Background
#f8fcf8mintcream
#020802black
Foreground
#041104black
#f8fcf8mintcream
Card
#f5faf5whitesmoke
#040c04black
Card foreground
#030c03black
#fcfdfcwhite
Popover
#f8fcf8mintcream
#020802black
Popover foreground
#041104black
#f8fcf8mintcream
Primary
#44e444limegreen
#44e444limegreen
Primary foreground
#000000black
#000000black
Secondary
#e3e8e3gainsboro
#1d2a1dblack
Secondary foreground
#445544darkslategray
#b1c9b1silver
Muted
#d2e9d2gainsboro
#162d16black
Muted foreground
#374937darkslategray
#b6c8b6silver
Accent
#e3e8e3gainsboro
#1d2a1dblack
Accent foreground
#445544darkslategray
#b1c9b1silver
Destructive
#632709maroon
#e65a14chocolate
Destructive foreground
#f7c1a6lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#44e444limegreen
#44e444limegreen

Contrast

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

Light mode
Text on background18.62:1AAA
Text on card18.78:1AAA
Primary button12.44:1AAA
Secondary button6.44:1AA
Muted text7.54:1AAA
Accent6.44:1AA
Destructive7.24:1AAA
Dark mode
Text on background19.53:1AAA
Text on card19.48:1AAA
Primary button12.44:1AAA
Secondary button8.44:1AAA
Muted text8.42:1AAA
Accent8.44:1AAA
Destructive3.60:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.987 0.006 145.527);
  --foreground: oklch(0.158 0.036 143.642);
  --muted: oklch(0.912 0.04 145.241);
  --muted-foreground: oklch(0.383 0.037 144.8);
  --popover: oklch(0.987 0.006 145.527);
  --popover-foreground: oklch(0.158 0.036 143.642);
  --card: oklch(0.98 0.01 145.502);
  --card-foreground: oklch(0.141 0.031 143.699);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.807 0.239 142.96);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.926 0.01 145.498);
  --secondary-foreground: oklch(0.43 0.035 144.945);
  --accent: oklch(0.926 0.01 145.498);
  --accent-foreground: oklch(0.43 0.035 144.945);
  --destructive: oklch(0.353 0.096 43.221);
  --destructive-foreground: oklch(0.853 0.073 47.849);
  --ring: oklch(0.807 0.239 142.96);
  --chart-1: oklch(0.807 0.239 142.96);
  --chart-2: oklch(0.926 0.01 145.498);
  --chart-3: oklch(0.926 0.01 145.498);
  --chart-4: oklch(0.948 0.007 145.523);
  --chart-5: oklch(0.814 0.245 142.909);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.121 0.022 144.052);
  --foreground: oklch(0.986 0.006 145.529);
  --muted: oklch(0.27 0.051 143.994);
  --muted-foreground: oklch(0.815 0.031 145.28);
  --popover: oklch(0.121 0.022 144.052);
  --popover-foreground: oklch(0.986 0.006 145.529);
  --card: oklch(0.139 0.026 144.045);
  --card-foreground: oklch(0.993 0.003 145.553);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.807 0.239 142.96);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.269 0.029 144.705);
  --secondary-foreground: oklch(0.81 0.042 145.175);
  --accent: oklch(0.269 0.029 144.705);
  --accent-foreground: oklch(0.81 0.042 145.175);
  --destructive: oklch(0.642 0.188 41.573);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.807 0.239 142.96);
  --chart-1: oklch(0.807 0.239 142.96);
  --chart-2: oklch(0.269 0.029 144.705);
  --chart-3: oklch(0.269 0.029 144.705);
  --chart-4: oklch(0.303 0.035 144.66);
  --chart-5: oklch(0.814 0.245 142.909);
}