Grubby is a shadcn/ui theme built around a muted violet primary color (#b9a6c9) with muted purple accents (#c9a6c7). The light mode uses a neutral background (#faf6fd). Dark mode keeps the muted violet primary (#b9a6c9) on a violet-tinted background (#08040c).
| Token | Light | Dark |
|---|---|---|
| Background | #faf6fdghostwhite | #08040cblack |
| Foreground | #050109black | #faf9fasnow |
| Card | #f8f2fdghostwhite | #0b0510black |
| Card foreground | #030105black | #fcfcfdwhite |
| Popover | #f8f2fdghostwhite | #0b0510black |
| Popover foreground | #030105black | #fcfcfdwhite |
| Primary | #b9a6c9silver | #b9a6c9silver |
| Primary foreground | #1f1726black | #1f1726black |
| Secondary | #a8a6c9darkgray | #a8a6c9darkgray |
| Secondary foreground | #181726black | #181726black |
| Muted | #e6e6eflavender | #101019black |
| Muted foreground | #484757darkslategray | #a9a8b8darkgray |
| Accent | #c9a6c7silver | #c9a6c7silver |
| Accent foreground | #261725black | #261725black |
| Destructive | #5f0a07maroon | #ee1e17red |
| Destructive foreground | #f8a3a0lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #b9a6c9silver | #b9a6c9silver |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.43:1 | AAA |
| Text on card | 18.90:1 | AAA |
| Primary button | 7.77:1 | AAA |
| Secondary button | 7.56:1 | AAA |
| Muted text | 7.30:1 | AAA |
| Accent | 7.94:1 | AAA |
| Destructive | 7.00:1 | AAA |
| Text on background | 19.39:1 | AAA |
| Text on card | 19.66:1 | AAA |
| Primary button | 7.77:1 | AAA |
| Secondary button | 7.56:1 | AAA |
| Muted text | 8.10:1 | AAA |
| Accent | 7.94:1 | AAA |
| Destructive | 4.36:1 | AA Large |
Paste this into your globals.css to use Grubby in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.979 0.01 310.34);
--foreground: oklch(0.097 0.033 313.083);
--muted: oklch(0.927 0.013 288.443);
--muted-foreground: oklch(0.405 0.026 287.454);
--popover: oklch(0.969 0.015 310.289);
--popover-foreground: oklch(0.077 0.026 313.083);
--card: oklch(0.969 0.015 310.289);
--card-foreground: oklch(0.077 0.026 313.083);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.754 0.053 309.791);
--primary-foreground: oklch(0.223 0.03 309.156);
--secondary: oklch(0.74 0.049 287.425);
--secondary-foreground: oklch(0.214 0.029 285.991);
--accent: oklch(0.767 0.06 327.729);
--accent-foreground: oklch(0.231 0.034 328.311);
--destructive: oklch(0.313 0.117 28.637);
--destructive-foreground: oklch(0.799 0.101 21.74);
--ring: oklch(0.754 0.053 309.791);
--chart-1: oklch(0.754 0.053 309.791);
--chart-2: oklch(0.74 0.049 287.425);
--chart-3: oklch(0.767 0.06 327.729);
--chart-4: oklch(0.768 0.043 287.624);
--chart-5: oklch(0.751 0.059 309.706);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.118 0.025 311.871);
--foreground: oklch(0.984 0.001 310.424);
--muted: oklch(0.176 0.02 286.433);
--muted-foreground: oklch(0.737 0.023 288.13);
--popover: oklch(0.131 0.028 310.336);
--popover-foreground: oklch(0.992 0.001 310.431);
--card: oklch(0.131 0.028 310.336);
--card-foreground: oklch(0.992 0.001 310.431);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.754 0.053 309.791);
--primary-foreground: oklch(0.223 0.03 309.156);
--secondary: oklch(0.74 0.049 287.425);
--secondary-foreground: oklch(0.214 0.029 285.991);
--accent: oklch(0.767 0.06 327.729);
--accent-foreground: oklch(0.231 0.034 328.311);
--destructive: oklch(0.604 0.235 29.007);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.754 0.053 309.791);
--chart-1: oklch(0.754 0.053 309.791);
--chart-2: oklch(0.74 0.049 287.425);
--chart-3: oklch(0.767 0.06 327.729);
--chart-4: oklch(0.768 0.043 287.624);
--chart-5: oklch(0.751 0.059 309.706);
}