Grave is a shadcn/ui theme built around a light green primary color (#f5fcf3) with light red accents (#fcf3f5). The light mode uses a neutral background (#ffffff). Dark mode keeps the light green primary (#f5fcf3) on a green-tinted background (#080e06).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #080e06black |
| Foreground | #000000black | #fcfdfcwhite |
| Card | #fcfcfcsnow | #0a1208black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #ffffffwhite | #080e06black |
| Popover foreground | #000000black | #fcfdfcwhite |
| Primary | #f5fcf3honeydew | #f5fcf3honeydew |
| Primary foreground | #1d4512darkgreen | #1d4512darkgreen |
| Secondary | #f3f5fcaliceblue | #f3f5fcaliceblue |
| Secondary foreground | #273f96darkslateblue | #273f96darkslateblue |
| Muted | #d6d7dbgainsboro | #242529darkslategray |
| Muted foreground | #444750darkslategray | #afb2bbdarkgray |
| Accent | #fcf3f5lavenderblush | #fcf3f5lavenderblush |
| Accent foreground | #96273fbrown | #96273fbrown |
| Destructive | #b33414firebrick | #e6461eorangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #f5fcf3honeydew | #f5fcf3honeydew |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 21.00:1 | AAA |
| Text on card | 20.54:1 | AAA |
| Primary button | 10.49:1 | AAA |
| Secondary button | 8.60:1 | AAA |
| Muted text | 6.47:1 | AA |
| Accent | 7.24:1 | AAA |
| Destructive | 6.15:1 | AA |
| Text on background | 19.11:1 | AAA |
| Text on card | 19.05:1 | AAA |
| Primary button | 10.49:1 | AAA |
| Secondary button | 8.60:1 | AAA |
| Muted text | 7.23:1 | AAA |
| Accent | 7.24:1 | AAA |
| Destructive | 3.99:1 | AA Large |
Paste this into your globals.css to use Grave in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0 0 0);
--muted: oklch(0.881 0.005 273.801);
--muted-foreground: oklch(0.398 0.016 273.373);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.992 0 161.565);
--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.983 0.014 138.896);
--primary-foreground: oklch(0.349 0.091 139.57);
--secondary: oklch(0.97 0.01 273.751);
--secondary-foreground: oklch(0.403 0.146 267.583);
--accent: oklch(0.971 0.01 2.35);
--accent-foreground: oklch(0.454 0.147 12.885);
--destructive: oklch(0.513 0.169 34.431);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.983 0.014 138.896);
--chart-1: oklch(0.983 0.014 138.896);
--chart-2: oklch(0.97 0.01 273.751);
--chart-3: oklch(0.971 0.01 2.35);
--chart-4: oklch(1 0 180);
--chart-5: oklch(0.983 0.015 138.896);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.155 0.021 138.029);
--foreground: oklch(0.994 0.003 138.892);
--muted: oklch(0.265 0.007 273.559);
--muted-foreground: oklch(0.763 0.013 273.66);
--popover: oklch(0.155 0.021 138.029);
--popover-foreground: oklch(0.994 0.003 138.892);
--card: oklch(0.17 0.025 138.602);
--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.983 0.014 138.896);
--primary-foreground: oklch(0.349 0.091 139.57);
--secondary: oklch(0.97 0.01 273.751);
--secondary-foreground: oklch(0.403 0.146 267.583);
--accent: oklch(0.971 0.01 2.35);
--accent-foreground: oklch(0.454 0.147 12.885);
--destructive: oklch(0.62 0.203 34.484);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.983 0.014 138.896);
--chart-1: oklch(0.983 0.014 138.896);
--chart-2: oklch(0.97 0.01 273.751);
--chart-3: oklch(0.971 0.01 2.35);
--chart-4: oklch(1 0 180);
--chart-5: oklch(0.983 0.015 138.896);
}