Grouchy for shadcn/ui

Grouchy is a shadcn/ui theme built around a vivid deep yellow primary color (#79690b) with vivid deep purple accents (#690b79). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid deep yellow primary (#79690b) on a neutral background (#080702).

Color palette

TokenLightDark
Background
#ffffffwhite
#080702black
Foreground
#000000black
#fbfaf9snow
Card
#fcfcfcsnow
#0c0b03black
Card foreground
#000000black
#fdfdfcwhite
Popover
#ffffffwhite
#080702black
Popover foreground
#000000black
#fbfaf9snow
Primary
#79690bolive
#79690bolive
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#0b7969teal
#0b7969teal
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#e7f4f2whitesmoke
#0b1816black
Muted foreground
#454f4edarkslategray
#b0bab9silver
Accent
#690b79purple
#690b79purple
Accent foreground
#f0bef9thistle
#f0bef9thistle
Destructive
#ad310bfirebrick
#f25a2ctomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#79690bolive
#79690bolive

Contrast

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

Light mode
Text on background21.00:1AAA
Text on card20.54:1AAA
Primary button5.47:1AA
Secondary button5.29:1AA
Muted text7.48:1AAA
Accent6.97:1AA
Destructive6.54:1AA
Dark mode
Text on background19.33:1AAA
Text on card19.40:1AAA
Primary button5.47:1AA
Secondary button5.29:1AA
Muted text9.10:1AAA
Accent6.97:1AA
Destructive6.26:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.956 0.014 186.215);
  --muted-foreground: oklch(0.418 0.013 185.76);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.992 0 161.565);
  --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.521 0.104 97.832);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.518 0.092 178.552);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.382 0.173 320.597);
  --accent-foreground: oklch(0.864 0.097 321.291);
  --destructive: oklch(0.498 0.166 35.444);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.521 0.104 97.832);
  --chart-1: oklch(0.521 0.104 97.832);
  --chart-2: oklch(0.518 0.092 178.552);
  --chart-3: oklch(0.382 0.173 320.597);
  --chart-4: oklch(0.56 0.1 178.424);
  --chart-5: oklch(0.526 0.106 97.646);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.128 0.016 102.011);
  --foreground: oklch(0.986 0.001 98.338);
  --muted: oklch(0.198 0.019 183.844);
  --muted-foreground: oklch(0.781 0.012 186.212);
  --popover: oklch(0.128 0.016 102.011);
  --popover-foreground: oklch(0.986 0.001 98.338);
  --card: oklch(0.146 0.018 101.549);
  --card-foreground: oklch(0.993 0.001 98.327);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.521 0.104 97.832);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.518 0.092 178.552);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.382 0.173 320.597);
  --accent-foreground: oklch(0.864 0.097 321.291);
  --destructive: oklch(0.662 0.195 36.779);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.521 0.104 97.832);
  --chart-1: oklch(0.521 0.104 97.832);
  --chart-2: oklch(0.518 0.092 178.552);
  --chart-3: oklch(0.382 0.173 320.597);
  --chart-4: oklch(0.56 0.1 178.424);
  --chart-5: oklch(0.526 0.106 97.646);
}