Grouchy for shadcn/ui

Grouchy is a shadcn/ui theme built around a muted teal primary color (#9ec2c0) with muted blue accents (#9eb2c2). The light mode uses a neutral background (#fbfefe). Dark mode keeps the muted teal primary (#9ec2c0) on a neutral background (#020303).

Color palette

TokenLightDark
Background
#fbfefewhite
#020303black
Foreground
#000000black
#f5fafamintcream
Card
#fbfefewhite
#020303black
Card foreground
#000000black
#f5fafamintcream
Popover
#fbfefewhite
#020303black
Popover foreground
#000000black
#f5fafamintcream
Primary
#9ec2c0silver
#9ec2c0silver
Primary foreground
#121c1cblack
#121c1cblack
Secondary
#9ec2aedarkgray
#9ec2aedarkgray
Secondary foreground
#121c16black
#121c16black
Muted
#ebefedwhitesmoke
#101412black
Muted foreground
#3f4b44darkslategray
#b4c0b9silver
Accent
#9eb2c2darkgray
#9eb2c2darkgray
Accent foreground
#12181cblack
#12181cblack
Destructive
#951b09darkred
#f3462btomato
Destructive foreground
#fcd9d4mistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#9ec2c0silver
#9ec2c0silver

Contrast

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

Light mode
Text on background20.69:1AAA
Text on card20.69:1AAA
Primary button9.04:1AAA
Secondary button8.96:1AAA
Muted text7.86:1AAA
Accent8.20:1AAA
Destructive6.53:1AA
Dark mode
Text on background19.58:1AAA
Text on card19.58:1AAA
Primary button9.04:1AAA
Secondary button8.96:1AAA
Muted text9.91:1AAA
Accent8.20:1AAA
Destructive3.68:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.995 0.003 192.361);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.949 0.005 161.689);
  --muted-foreground: oklch(0.4 0.02 160.558);
  --popover: oklch(0.995 0.003 192.361);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.995 0.003 192.361);
  --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.787 0.039 191.384);
  --primary-foreground: oklch(0.217 0.015 190.935);
  --secondary: oklch(0.782 0.049 160.207);
  --secondary-foreground: oklch(0.215 0.019 159.418);
  --accent: oklch(0.754 0.032 240.892);
  --accent-foreground: oklch(0.203 0.013 241.22);
  --destructive: oklch(0.436 0.16 31.492);
  --destructive-foreground: oklch(0.914 0.04 28.221);
  --ring: oklch(0.787 0.039 191.384);
  --chart-1: oklch(0.787 0.039 191.384);
  --chart-2: oklch(0.782 0.049 160.207);
  --chart-3: oklch(0.754 0.032 240.892);
  --chart-4: oklch(0.803 0.044 160.419);
  --chart-5: oklch(0.792 0.044 191.261);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.096 0.006 191.813);
  --foreground: oklch(0.981 0.006 192.306);
  --muted: oklch(0.185 0.007 160.873);
  --muted-foreground: oklch(0.797 0.017 161.292);
  --popover: oklch(0.096 0.006 191.813);
  --popover-foreground: oklch(0.981 0.006 192.306);
  --card: oklch(0.096 0.006 191.813);
  --card-foreground: oklch(0.981 0.006 192.306);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.787 0.039 191.384);
  --primary-foreground: oklch(0.217 0.015 190.935);
  --secondary: oklch(0.782 0.049 160.207);
  --secondary-foreground: oklch(0.215 0.019 159.418);
  --accent: oklch(0.754 0.032 240.892);
  --accent-foreground: oklch(0.203 0.013 241.22);
  --destructive: oklch(0.642 0.214 31.651);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.787 0.039 191.384);
  --chart-1: oklch(0.787 0.039 191.384);
  --chart-2: oklch(0.782 0.049 160.207);
  --chart-3: oklch(0.754 0.032 240.892);
  --chart-4: oklch(0.803 0.044 160.419);
  --chart-5: oklch(0.792 0.044 191.261);
}