Grumpy is a shadcn/ui theme built around a deep indigo primary color (#2c2753) with deep violet accents (#422753). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep indigo primary (#2c2753) on an indigo-tinted background (#05040b).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #05040bblack |
| Foreground | #04030cblack | #fcfcfdwhite |
| Card | #ffffffwhite | #05040bblack |
| Card foreground | #04030cblack | #fcfcfdwhite |
| Popover | #ffffffwhite | #05040bblack |
| Popover foreground | #04030cblack | #fcfcfdwhite |
| Primary | #2c2753midnightblue | #2c2753midnightblue |
| Primary foreground | #cbc8e5thistle | #cbc8e5thistle |
| Secondary | #273853darkslategray | #273853darkslategray |
| Secondary foreground | #c8d3e5lightgrey | #c8d3e5lightgrey |
| Muted | #eaecf0lavender | #0f1115black |
| Muted foreground | #5c5e60dimgray | #9fa0a3darkgray |
| Accent | #422753darkslategray | #422753darkslategray |
| Accent foreground | #dac8e5thistle | #dac8e5thistle |
| Destructive | #893001saddlebrown | #fe7125tomato |
| Destructive foreground | #ffd4bdpeachpuff | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #2c2753midnightblue | #2c2753midnightblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.51:1 | AAA |
| Text on card | 20.51:1 | AAA |
| Primary button | 8.47:1 | AAA |
| Secondary button | 7.81:1 | AAA |
| Muted text | 5.52:1 | AA |
| Accent | 8.09:1 | AAA |
| Destructive | 6.17:1 | AA |
| Text on background | 19.91:1 | AAA |
| Text on card | 19.91:1 | AAA |
| Primary button | 8.47:1 | AAA |
| Secondary button | 7.81:1 | AAA |
| Muted text | 7.22:1 | AAA |
| Accent | 8.09:1 | AAA |
| Destructive | 7.58:1 | AAA |
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.109 0.025 289.133);
--muted: oklch(0.944 0.006 259.941);
--muted-foreground: oklch(0.481 0.004 259.942);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.109 0.025 289.133);
--card: oklch(1 0 180);
--card-foreground: oklch(0.109 0.025 289.133);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.304 0.077 286.164);
--primary-foreground: oklch(0.843 0.041 290.853);
--secondary: oklch(0.339 0.053 259.626);
--secondary-foreground: oklch(0.863 0.028 259.94);
--accent: oklch(0.329 0.081 311.121);
--accent-foreground: oklch(0.855 0.045 312.632);
--destructive: oklch(0.435 0.131 41.895);
--destructive-foreground: oklch(0.901 0.057 49.908);
--ring: oklch(0.304 0.077 286.164);
--chart-1: oklch(0.304 0.077 286.164);
--chart-2: oklch(0.339 0.053 259.626);
--chart-3: oklch(0.329 0.081 311.121);
--chart-4: oklch(0.366 0.059 259.616);
--chart-5: oklch(0.3 0.083 285.507);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.114 0.02 289.834);
--foreground: oklch(0.99 0.002 291.736);
--muted: oklch(0.177 0.009 259.915);
--muted-foreground: oklch(0.706 0.004 259.94);
--popover: oklch(0.114 0.02 289.834);
--popover-foreground: oklch(0.99 0.002 291.736);
--card: oklch(0.114 0.02 289.834);
--card-foreground: oklch(0.99 0.002 291.736);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.304 0.077 286.164);
--primary-foreground: oklch(0.843 0.041 290.853);
--secondary: oklch(0.339 0.053 259.626);
--secondary-foreground: oklch(0.863 0.028 259.94);
--accent: oklch(0.329 0.081 311.121);
--accent-foreground: oklch(0.855 0.045 312.632);
--destructive: oklch(0.71 0.19 44.236);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.304 0.077 286.164);
--chart-1: oklch(0.304 0.077 286.164);
--chart-2: oklch(0.339 0.053 259.626);
--chart-3: oklch(0.329 0.081 311.121);
--chart-4: oklch(0.366 0.059 259.616);
--chart-5: oklch(0.3 0.083 285.507);
}