Grim is a shadcn/ui theme built around a light red primary color (#ebbcc4) with muted light red accents (#e8e3e4). The light mode uses a neutral background (#fefbfb). Dark mode keeps the light red primary (#ebbcc4) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fefbfbsnow | #000000black |
| Foreground | #000000black | #fbf9f9snow |
| Card | #fefbfbsnow | #000000black |
| Card foreground | #000000black | #fbf9f9snow |
| Popover | #fefbfbsnow | #000000black |
| Popover foreground | #000000black | #fbf9f9snow |
| Primary | #ebbcc4lightpink | #ebbcc4lightpink |
| Primary foreground | #5a1b26maroon | #5a1b26maroon |
| Secondary | #e8e3e4gainsboro | #363031darkslategray |
| Secondary foreground | #544547darkslategray | #cfc9calightgrey |
| Muted | #ede3e5linen | #1c1213black |
| Muted foreground | #493c3edarkslategray | #c3b6b8silver |
| Accent | #e8e3e4gainsboro | #363031darkslategray |
| Accent foreground | #544547darkslategray | #cfc9calightgrey |
| Destructive | #a50e09darkred | #f3221bcrimson |
| Destructive foreground | #fde3e2mistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #ebbcc4lightpink | #ebbcc4lightpink |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.40:1 | AAA |
| Text on card | 20.40:1 | AAA |
| Primary button | 7.74:1 | AAA |
| Secondary button | 7.12:1 | AAA |
| Muted text | 8.35:1 | AAA |
| Accent | 7.12:1 | AAA |
| Destructive | 6.48:1 | AA |
| Text on background | 20.02:1 | AAA |
| Text on card | 20.02:1 | AAA |
| Primary button | 7.74:1 | AAA |
| Secondary button | 7.89:1 | AAA |
| Muted text | 9.35:1 | AAA |
| Accent | 7.89:1 | AAA |
| Destructive | 4.14:1 | AA Large |
Paste this into your globals.css to use Grim in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.99 0.003 5.531);
--foreground: oklch(0 0 0);
--muted: oklch(0.924 0.012 5.776);
--muted-foreground: oklch(0.37 0.019 6.752);
--popover: oklch(0.99 0.003 5.531);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.99 0.003 5.531);
--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.84 0.055 7.107);
--primary-foreground: oklch(0.326 0.093 14.058);
--secondary: oklch(0.92 0.006 5.608);
--secondary-foreground: oklch(0.407 0.021 6.785);
--accent: oklch(0.92 0.006 5.608);
--accent-foreground: oklch(0.407 0.021 6.785);
--destructive: oklch(0.458 0.181 29.143);
--destructive-foreground: oklch(0.937 0.029 20.062);
--ring: oklch(0.84 0.055 7.107);
--chart-1: oklch(0.84 0.055 7.107);
--chart-2: oklch(0.92 0.006 5.608);
--chart-3: oklch(0.92 0.006 5.608);
--chart-4: oklch(0.944 0.004 5.557);
--chart-5: oklch(0.838 0.058 7.205);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.983 0.003 5.528);
--muted: oklch(0.195 0.018 7.786);
--muted-foreground: oklch(0.788 0.015 5.951);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.983 0.003 5.528);
--card: oklch(0 0 0);
--card-foreground: oklch(0.983 0.003 5.528);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.84 0.055 7.107);
--primary-foreground: oklch(0.326 0.093 14.058);
--secondary: oklch(0.317 0.007 6.053);
--secondary-foreground: oklch(0.842 0.006 5.627);
--accent: oklch(0.317 0.007 6.053);
--accent-foreground: oklch(0.842 0.006 5.627);
--destructive: oklch(0.616 0.238 28.88);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.84 0.055 7.107);
--chart-1: oklch(0.84 0.055 7.107);
--chart-2: oklch(0.317 0.007 6.053);
--chart-3: oklch(0.317 0.007 6.053);
--chart-4: oklch(0.346 0.008 6.071);
--chart-5: oklch(0.838 0.058 7.205);
}