Cheery for shadcn/ui

Cheery is a shadcn/ui theme built around a vivid teal primary color (#01bca9) with vivid blue accents (#0171bc). The light mode uses a neutral background (#fcfdfd). Dark mode keeps the vivid teal primary (#01bca9) on a neutral background (#020808).

Color palette

TokenLightDark
Background
#fcfdfdwhite
#020808black
Foreground
#000000black
#f8fbfbghostwhite
Card
#f8fbfbghostwhite
#030c0bblack
Card foreground
#000000black
#fcfdfdwhite
Popover
#f8fbfbghostwhite
#030c0bblack
Popover foreground
#000000black
#fcfdfdwhite
Primary
#01bca9lightseagreen
#01bca9lightseagreen
Primary foreground
#000000black
#000000black
Secondary
#01bc4climegreen
#01bc4climegreen
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#e7eeealavender
#111814black
Muted foreground
#424d46darkslategray
#b2bdb6silver
Accent
#0171bcdarkcyan
#0171bcdarkcyan
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#6e230cmaroon
#cf4217chocolate
Destructive foreground
#f7c5b6lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#01bca9lightseagreen
#01bca9lightseagreen

Contrast

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

Light mode
Text on background20.62:1AAA
Text on card20.25:1AAA
Primary button8.74:1AAA
Secondary button2.53:1Fail
Muted text7.48:1AAA
Accent5.13:1AA
Destructive7.12:1AAA
Dark mode
Text on background19.38:1AAA
Text on card19.39:1AAA
Primary button8.74:1AAA
Secondary button2.53:1Fail
Muted text9.32:1AAA
Accent5.13:1AA
Destructive4.74:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.002 190.039);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.943 0.009 160.008);
  --muted-foreground: oklch(0.408 0.019 159.151);
  --popover: oklch(0.987 0.003 189.999);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.987 0.003 189.999);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.713 0.127 182.461);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.693 0.2 148.033);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.536 0.144 248.012);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.369 0.112 36.605);
  --destructive-foreground: oklch(0.863 0.061 37.593);
  --ring: oklch(0.713 0.127 182.461);
  --chart-1: oklch(0.713 0.127 182.461);
  --chart-2: oklch(0.693 0.2 148.033);
  --chart-3: oklch(0.536 0.144 248.012);
  --chart-4: oklch(0.734 0.213 147.942);
  --chart-5: oklch(0.721 0.129 182.295);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.126 0.015 189.28);
  --foreground: oklch(0.987 0.003 190.004);
  --muted: oklch(0.2 0.013 158.6);
  --muted-foreground: oklch(0.788 0.016 159.766);
  --popover: oklch(0.144 0.017 188.732);
  --popover-foreground: oklch(0.993 0.002 190.041);
  --card: oklch(0.144 0.017 188.732);
  --card-foreground: oklch(0.993 0.002 190.041);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.713 0.127 182.461);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.693 0.2 148.033);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.536 0.144 248.012);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.576 0.184 36.011);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.713 0.127 182.461);
  --chart-1: oklch(0.713 0.127 182.461);
  --chart-2: oklch(0.693 0.2 148.033);
  --chart-3: oklch(0.536 0.144 248.012);
  --chart-4: oklch(0.734 0.213 147.942);
  --chart-5: oklch(0.721 0.129 182.295);
}