Grim is a shadcn/ui theme built around a vivid red primary color (#bd1900) with vivid orange accents (#bd7800). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid red primary (#bd1900) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #0c0403black | #ffffffwhite |
| Card | #fcfcfcsnow | #030303black |
| Card foreground | #080302black | #ffffffwhite |
| Popover | #ffffffwhite | #000000black |
| Popover foreground | #0c0403black | #ffffffwhite |
| Primary | #bd1900firebrick | #bd1900firebrick |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #bd0045crimson | #bd0045crimson |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #f5eff1whitesmoke | #100a0cblack |
| Muted foreground | #493c41darkslategray | #c3b6bbsilver |
| Accent | #bd7800darkgoldenrod | #bd7800darkgoldenrod |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #ce3b12firebrick | #eb4719orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #bd1900firebrick | #bd1900firebrick |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.30:1 | AAA |
| Text on card | 20.06:1 | AAA |
| Primary button | 6.37:1 | AA |
| Secondary button | 6.47:1 | AA |
| Muted text | 9.23:1 | AAA |
| Accent | 3.60:1 | AA Large |
| Destructive | 4.92:1 | AA |
| Text on background | 21.00:1 | AAA |
| Text on card | 20.67:1 | AAA |
| Primary button | 6.37:1 | AA |
| Secondary button | 6.47:1 | AA |
| Muted text | 10.03:1 | AAA |
| Accent | 3.60:1 | AA Large |
| Destructive | 3.86:1 | AA Large |
Paste this into your globals.css to use Grim in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.123 0.02 34.445);
--muted: oklch(0.958 0.007 352.799);
--muted-foreground: oklch(0.371 0.02 354.075);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.123 0.02 34.445);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.107 0.017 34.637);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.509 0.197 31.195);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.508 0.203 12.179);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.63 0.137 69.73);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.568 0.191 34.824);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.509 0.197 31.195);
--chart-1: oklch(0.509 0.197 31.195);
--chart-2: oklch(0.508 0.203 12.179);
--chart-3: oklch(0.63 0.137 69.73);
--chart-4: oklch(0.539 0.215 12.423);
--chart-5: oklch(0.514 0.201 31.195);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(1 0 180);
--muted: oklch(0.152 0.012 354.73);
--muted-foreground: oklch(0.789 0.016 353.166);
--popover: oklch(0 0 0);
--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.509 0.197 31.195);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.508 0.203 12.179);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.63 0.137 69.73);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.629 0.208 35.004);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.509 0.197 31.195);
--chart-1: oklch(0.509 0.197 31.195);
--chart-2: oklch(0.508 0.203 12.179);
--chart-3: oklch(0.63 0.137 69.73);
--chart-4: oklch(0.539 0.215 12.423);
--chart-5: oklch(0.514 0.201 31.195);
}