Grubby is a shadcn/ui theme built around a muted light green primary color (#f0f5f1) with muted light red accents (#f5f1f0). The light mode uses a neutral background (#f7fdf8). Dark mode keeps the muted light green primary (#f0f5f1) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #f7fdf8mintcream | #000000black |
| Foreground | #010401black | #ffffffwhite |
| Card | #f3fcf5mintcream | #030303black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #f3fcf5mintcream | #030303black |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #f0f5f1whitesmoke | #f0f5f1whitesmoke |
| Primary foreground | #1f2e22darkslategray | #1f2e22darkslategray |
| Secondary | #f1f0f5whitesmoke | #f1f0f5whitesmoke |
| Secondary foreground | #50486adarkslateblue | #50486adarkslateblue |
| Muted | #f0eef6whitesmoke | #0b0911black |
| Muted foreground | #585469dimgray | #9b96abdarkgray |
| Accent | #f5f1f0whitesmoke | #f5f1f0whitesmoke |
| Accent foreground | #6a5048dimgray | #6a5048dimgray |
| Destructive | #a02303firebrick | #fb5e37tomato |
| Destructive foreground | #fedfd7mistyrose | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #f0f5f1whitesmoke | #f0f5f1whitesmoke |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.94:1 | AAA |
| Text on card | 20.00:1 | AAA |
| Primary button | 12.89:1 | AAA |
| Secondary button | 7.46:1 | AAA |
| Muted text | 6.33:1 | AA |
| Accent | 6.55:1 | AA |
| Destructive | 6.13:1 | AA |
| Text on background | 21.00:1 | AAA |
| Text on card | 20.67:1 | AAA |
| Primary button | 12.89:1 | AAA |
| Secondary button | 7.46:1 | AAA |
| Muted text | 6.93:1 | AA |
| Accent | 6.55:1 | AA |
| Destructive | 6.76:1 | AA |
Paste this into your globals.css to use Grubby in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.988 0.008 152.486);
--foreground: oklch(0.099 0.021 151.574);
--muted: oklch(0.954 0.011 296.127);
--muted-foreground: oklch(0.458 0.034 294.963);
--popover: oklch(0.982 0.012 152.418);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.982 0.012 152.418);
--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.964 0.007 152.5);
--primary-foreground: oklch(0.282 0.029 150.894);
--secondary: oklch(0.957 0.007 296.206);
--secondary-foreground: oklch(0.424 0.056 293.814);
--accent: oklch(0.96 0.004 35.996);
--accent-foreground: oklch(0.456 0.038 36.005);
--destructive: oklch(0.461 0.165 33.558);
--destructive-foreground: oklch(0.927 0.036 34.313);
--ring: oklch(0.964 0.007 152.5);
--chart-1: oklch(0.964 0.007 152.5);
--chart-2: oklch(0.957 0.007 296.206);
--chart-3: oklch(0.96 0.004 35.996);
--chart-4: oklch(0.983 0.003 296.282);
--chart-5: oklch(0.965 0.008 152.482);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(1 0 180);
--muted: oklch(0.145 0.017 294.294);
--muted-foreground: oklch(0.685 0.031 295.512);
--popover: oklch(0.092 0 180);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.092 0 180);
--card-foreground: oklch(1 0 180);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.964 0.007 152.5);
--primary-foreground: oklch(0.282 0.029 150.894);
--secondary: oklch(0.957 0.007 296.206);
--secondary-foreground: oklch(0.424 0.056 293.814);
--accent: oklch(0.96 0.004 35.996);
--accent-foreground: oklch(0.456 0.038 36.005);
--destructive: oklch(0.683 0.199 35.049);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.964 0.007 152.5);
--chart-1: oklch(0.964 0.007 152.5);
--chart-2: oklch(0.957 0.007 296.206);
--chart-3: oklch(0.96 0.004 35.996);
--chart-4: oklch(0.983 0.003 296.282);
--chart-5: oklch(0.965 0.008 152.482);
}