Grouchy for shadcn/ui

Grouchy is a shadcn/ui theme built around a near-black primary color (#040201) with muted light orange accents (#e1dddb). The light mode uses a neutral background (#fdf9f7). Dark mode keeps the near-black primary (#040201) on a neutral background (#080502).

Color palette

TokenLightDark
Background
#fdf9f7snow
#080502black
Foreground
#040201black
#f9f7f6whitesmoke
Card
#fdf9f7snow
#080502black
Card foreground
#040201black
#f9f7f6whitesmoke
Popover
#fdf9f7snow
#080502black
Popover foreground
#040201black
#f9f7f6whitesmoke
Primary
#040201black
#040201black
Primary foreground
#c8966fdarksalmon
#c8966fdarksalmon
Secondary
#e1dddbgainsboro
#1c1917black
Secondary foreground
#4a443fdarkslategray
#bbb1aadarkgray
Muted
#ebe8e6linen
#191714black
Muted foreground
#41403edarkslategray
#c1bfbesilver
Accent
#e1dddbgainsboro
#1c1917black
Accent foreground
#4a443fdarkslategray
#bbb1aadarkgray
Destructive
#c61910firebrick
#e21d12crimson
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#040201black
#040201black

Contrast

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

Light mode
Text on background19.84:1AAA
Text on card19.84:1AAA
Primary button7.92:1AAA
Secondary button7.12:1AAA
Muted text8.46:1AAA
Accent7.12:1AAA
Destructive5.91:1AA
Dark mode
Text on background19.05:1AAA
Text on card19.05:1AAA
Primary button7.92:1AAA
Secondary button8.30:1AAA
Muted text9.77:1AAA
Accent8.30:1AAA
Destructive4.73:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.986 0.005 60.207);
  --foreground: oklch(0.093 0.014 71.954);
  --muted: oklch(0.932 0.004 60.22);
  --muted-foreground: oklch(0.371 0.003 60.183);
  --popover: oklch(0.986 0.005 60.207);
  --popover-foreground: oklch(0.093 0.014 71.954);
  --card: oklch(0.986 0.005 60.207);
  --card-foreground: oklch(0.093 0.014 71.954);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.093 0.008 66.887);
  --primary-foreground: oklch(0.711 0.081 58.401);
  --secondary: oklch(0.901 0.005 60.214);
  --secondary-foreground: oklch(0.392 0.012 59.873);
  --accent: oklch(0.901 0.005 60.214);
  --accent-foreground: oklch(0.392 0.012 59.873);
  --destructive: oklch(0.528 0.205 29.348);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.093 0.008 66.887);
  --chart-1: oklch(0.093 0.008 66.887);
  --chart-2: oklch(0.901 0.005 60.214);
  --chart-3: oklch(0.901 0.005 60.214);
  --chart-4: oklch(0.924 0.003 60.232);
  --chart-5: oklch(0.093 0.009 67.355);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.117 0.012 67.987);
  --foreground: oklch(0.978 0.003 60.242);
  --muted: oklch(0.205 0.006 59.862);
  --muted-foreground: oklch(0.806 0.002 60.245);
  --popover: oklch(0.117 0.012 67.987);
  --popover-foreground: oklch(0.978 0.003 60.242);
  --card: oklch(0.117 0.012 67.987);
  --card-foreground: oklch(0.978 0.003 60.242);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.093 0.008 66.887);
  --primary-foreground: oklch(0.711 0.081 58.401);
  --secondary: oklch(0.217 0.007 59.845);
  --secondary-foreground: oklch(0.767 0.015 60.015);
  --accent: oklch(0.217 0.007 59.845);
  --accent-foreground: oklch(0.767 0.015 60.015);
  --destructive: oklch(0.583 0.227 29.384);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.093 0.008 66.887);
  --chart-1: oklch(0.093 0.008 66.887);
  --chart-2: oklch(0.217 0.007 59.845);
  --chart-3: oklch(0.217 0.007 59.845);
  --chart-4: oklch(0.25 0.009 59.805);
  --chart-5: oklch(0.093 0.009 67.355);
}