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).
| Token | Light | Dark |
|---|---|---|
| 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 |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.84:1 | AAA |
| Text on card | 19.84:1 | AAA |
| Primary button | 7.92:1 | AAA |
| Secondary button | 7.12:1 | AAA |
| Muted text | 8.46:1 | AAA |
| Accent | 7.12:1 | AAA |
| Destructive | 5.91:1 | AA |
| Text on background | 19.05:1 | AAA |
| Text on card | 19.05:1 | AAA |
| Primary button | 7.92:1 | AAA |
| Secondary button | 8.30:1 | AAA |
| Muted text | 9.77:1 | AAA |
| Accent | 8.30:1 | AAA |
| Destructive | 4.73:1 | AA |
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);
}