Grumpy for shadcn/ui

Grumpy is a shadcn/ui theme built around a yellow primary color (#d5b867) with neutral gray accents (#d7d7d5). The light mode uses a neutral background (#ffffff). Dark mode keeps the yellow primary (#d5b867) on a neutral background (#070603).

Color palette

TokenLightDark
Background
#ffffffwhite
#070603black
Foreground
#0d0a02black
#fbfaf9snow
Card
#ffffffwhite
#070603black
Card foreground
#0d0a02black
#fbfaf9snow
Popover
#ffffffwhite
#070603black
Popover foreground
#0d0a02black
#fbfaf9snow
Primary
#d5b867darkkhaki
#d5b867darkkhaki
Primary foreground
#080602black
#080602black
Secondary
#d7d7d5lightgrey
#27241cblack
Secondary foreground
#3f3e3bdarkslategray
#c6c0aesilver
Muted
#f3f0e8linen
#17140cblack
Muted foreground
#615a48darkolivegreen
#b7b19edarkgray
Accent
#d7d7d5lightgrey
#27241cblack
Accent foreground
#3f3e3bdarkslategray
#c6c0aesilver
Destructive
#7a2005maroon
#f65f31tomato
Destructive foreground
#fcc6b6lightpink
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#d5b867darkkhaki
#d5b867darkkhaki

Contrast

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

Light mode
Text on background19.78:1AAA
Text on card19.78:1AAA
Primary button10.48:1AAA
Secondary button7.41:1AAA
Muted text5.99:1AA
Accent7.41:1AAA
Destructive6.78:1AA
Dark mode
Text on background19.41:1AAA
Text on card19.41:1AAA
Primary button10.48:1AAA
Secondary button8.54:1AAA
Muted text8.55:1AAA
Accent8.54:1AAA
Destructive6.62:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.147 0.023 95.431);
  --muted: oklch(0.954 0.011 90.205);
  --muted-foreground: oklch(0.469 0.03 90.428);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.147 0.023 95.431);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.147 0.023 95.431);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.791 0.106 89.906);
  --primary-foreground: oklch(0.125 0.015 95.314);
  --secondary: oklch(0.878 0.003 90.143);
  --secondary-foreground: oklch(0.364 0.005 90.217);
  --accent: oklch(0.878 0.003 90.143);
  --accent-foreground: oklch(0.364 0.005 90.217);
  --destructive: oklch(0.389 0.129 35.737);
  --destructive-foreground: oklch(0.87 0.066 37.594);
  --ring: oklch(0.791 0.106 89.906);
  --chart-1: oklch(0.791 0.106 89.906);
  --chart-2: oklch(0.878 0.003 90.143);
  --chart-3: oklch(0.878 0.003 90.143);
  --chart-4: oklch(0.902 0.002 90.138);
  --chart-5: oklch(0.796 0.111 89.803);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.123 0.012 94.348);
  --foreground: oklch(0.986 0.001 90.13);
  --muted: oklch(0.193 0.016 90.419);
  --muted-foreground: oklch(0.76 0.027 90.346);
  --popover: oklch(0.123 0.012 94.348);
  --popover-foreground: oklch(0.986 0.001 90.13);
  --card: oklch(0.123 0.012 94.348);
  --card-foreground: oklch(0.986 0.001 90.13);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.791 0.106 89.906);
  --primary-foreground: oklch(0.125 0.015 95.314);
  --secondary: oklch(0.26 0.015 90.423);
  --secondary-foreground: oklch(0.807 0.025 90.322);
  --accent: oklch(0.26 0.015 90.423);
  --accent-foreground: oklch(0.807 0.025 90.322);
  --destructive: oklch(0.676 0.195 36.936);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.791 0.106 89.906);
  --chart-1: oklch(0.791 0.106 89.906);
  --chart-2: oklch(0.26 0.015 90.423);
  --chart-3: oklch(0.26 0.015 90.423);
  --chart-4: oklch(0.294 0.018 90.427);
  --chart-5: oklch(0.796 0.111 89.803);
}