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).
| Token | Light | Dark |
|---|---|---|
| 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 |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 21.00:1 | AAA |
| Text on card | 20.54:1 | AAA |
| Primary button | 5.47:1 | AA |
| Secondary button | 5.29:1 | AA |
| Muted text | 7.48:1 | AAA |
| Accent | 6.97:1 | AA |
| Destructive | 6.54:1 | AA |
| Text on background | 19.33:1 | AAA |
| Text on card | 19.40:1 | AAA |
| Primary button | 5.47:1 | AA |
| Secondary button | 5.29:1 | AA |
| Muted text | 9.10:1 | AAA |
| Accent | 6.97:1 | AA |
| Destructive | 6.26:1 | AA |
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);
}