Grenade is a shadcn/ui theme built around a muted deep indigo primary color (#3e3c4e) with muted light indigo accents (#cbcad3). The light mode uses a neutral background (#f7f7fd). Dark mode keeps the muted deep indigo primary (#3e3c4e) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #f7f7fdghostwhite | #000000black |
| Foreground | #03020dblack | #f6f6f9whitesmoke |
| Card | #f7f7fdghostwhite | #000000black |
| Card foreground | #03020dblack | #f6f6f9whitesmoke |
| Popover | #f7f7fdghostwhite | #000000black |
| Popover foreground | #03020dblack | #f6f6f9whitesmoke |
| Primary | #3e3c4edarkslategray | #3e3c4edarkslategray |
| Primary foreground | #dbdae2gainsboro | #dbdae2gainsboro |
| Secondary | #cbcad3lightgrey | #2b2932darkslategray |
| Secondary foreground | #32303bdarkslategray | #c3c1cdsilver |
| Muted | #e5e4e7gainsboro | #19181bblack |
| Muted foreground | #413e51darkslategray | #b1aec1silver |
| Accent | #cbcad3lightgrey | #2b2932darkslategray |
| Accent foreground | #32303bdarkslategray | #c3c1cdsilver |
| Destructive | #ac2706firebrick | #f63c0eorangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #3e3c4edarkslategray | #3e3c4edarkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.29:1 | AAA |
| Text on card | 19.29:1 | AAA |
| Primary button | 7.72:1 | AAA |
| Secondary button | 7.95:1 | AAA |
| Muted text | 8.16:1 | AAA |
| Accent | 7.95:1 | AAA |
| Destructive | 6.86:1 | AA |
| Text on background | 19.46:1 | AAA |
| Text on card | 19.46:1 | AAA |
| Primary button | 7.72:1 | AAA |
| Secondary button | 8.05:1 | AAA |
| Muted text | 8.15:1 | AAA |
| Accent | 8.05:1 | AAA |
| Destructive | 3.75:1 | AA Large |
Paste this into your globals.css to use Grenade in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.977 0.009 292.374);
--foreground: oklch(0.101 0.034 288.749);
--muted: oklch(0.921 0.003 292.473);
--muted-foreground: oklch(0.374 0.032 290.9);
--popover: oklch(0.977 0.009 292.374);
--popover-foreground: oklch(0.101 0.034 288.749);
--card: oklch(0.977 0.009 292.374);
--card-foreground: oklch(0.101 0.034 288.749);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.366 0.031 290.911);
--primary-foreground: oklch(0.89 0.012 292.295);
--secondary: oklch(0.842 0.013 292.243);
--secondary-foreground: oklch(0.316 0.019 291.386);
--accent: oklch(0.842 0.013 292.243);
--accent-foreground: oklch(0.316 0.019 291.386);
--destructive: oklch(0.489 0.173 33.574);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.366 0.031 290.911);
--chart-1: oklch(0.366 0.031 290.911);
--chart-2: oklch(0.842 0.013 292.243);
--chart-3: oklch(0.842 0.013 292.243);
--chart-4: oklch(0.867 0.011 292.3);
--chart-5: oklch(0.36 0.038 290.473);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.973 0.004 292.457);
--muted: oklch(0.211 0.005 292.097);
--muted-foreground: oklch(0.76 0.026 291.883);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.973 0.004 292.457);
--card: oklch(0 0 0);
--card-foreground: oklch(0.973 0.004 292.457);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.366 0.031 290.911);
--primary-foreground: oklch(0.89 0.012 292.295);
--secondary: oklch(0.287 0.017 291.428);
--secondary-foreground: oklch(0.816 0.016 292.181);
--accent: oklch(0.287 0.017 291.428);
--accent-foreground: oklch(0.816 0.016 292.181);
--destructive: oklch(0.638 0.227 33.492);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.366 0.031 290.911);
--chart-1: oklch(0.366 0.031 290.911);
--chart-2: oklch(0.287 0.017 291.428);
--chart-3: oklch(0.287 0.017 291.428);
--chart-4: oklch(0.316 0.019 291.386);
--chart-5: oklch(0.36 0.038 290.473);
}