Grave is a shadcn/ui theme built around a red primary color (#d2968e) with muted light red accents (#d8d0cf). The light mode uses a neutral background (#fbf9f8). Dark mode keeps the red primary (#d2968e) on a neutral background (#080302).
| Token | Light | Dark |
|---|---|---|
| Background | #fbf9f8snow | #080302black |
| Foreground | #040101black | #fbf9f8snow |
| Card | #faf6f5whitesmoke | #0c0403black |
| Card foreground | #000000black | #fdfcfcsnow |
| Popover | #faf6f5whitesmoke | #0c0403black |
| Popover foreground | #000000black | #fdfcfcsnow |
| Primary | #d2968erosybrown | #d2968erosybrown |
| Primary foreground | #210f0dblack | #210f0dblack |
| Secondary | #e9e7e7linen | #2e201fblack |
| Secondary foreground | #544b4adarkslategray | #ccb5b3silver |
| Muted | #f5f0efwhitesmoke | #100b0ablack |
| Muted foreground | #5b5352dimgray | #ada5a4darkgray |
| Accent | #d8d0cflightgrey | #4a2f2bdarkslategray |
| Accent foreground | #413634darkslategray | #dfcbc8lightgrey |
| Destructive | #8a3a0fsaddlebrown | #d05716chocolate |
| Destructive foreground | #fadfd1antiquewhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #d2968erosybrown | #d2968erosybrown |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.79:1 | AAA |
| Text on card | 19.49:1 | AAA |
| Primary button | 7.45:1 | AAA |
| Secondary button | 6.87:1 | AA |
| Muted text | 6.63:1 | AA |
| Accent | 7.68:1 | AAA |
| Destructive | 6.12:1 | AA |
| Text on background | 19.53:1 | AAA |
| Text on card | 19.79:1 | AAA |
| Primary button | 7.45:1 | AAA |
| Secondary button | 8.04:1 | AAA |
| Muted text | 8.11:1 | AAA |
| Accent | 7.81:1 | AAA |
| Destructive | 4.16:1 | AA Large |
Paste this into your globals.css to use Grave in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.983 0.003 26.461);
--foreground: oklch(0.085 0.014 32.825);
--muted: oklch(0.959 0.005 26.478);
--muted-foreground: oklch(0.451 0.01 26.605);
--popover: oklch(0.975 0.005 26.471);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.975 0.005 26.471);
--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.729 0.074 27.443);
--primary-foreground: oklch(0.195 0.03 28.196);
--secondary: oklch(0.93 0.003 26.459);
--secondary-foreground: oklch(0.422 0.011 26.641);
--accent: oklch(0.864 0.009 26.515);
--accent-foreground: oklch(0.343 0.017 26.835);
--destructive: oklch(0.452 0.122 44.173);
--destructive-foreground: oklch(0.923 0.036 50.189);
--ring: oklch(0.729 0.074 27.443);
--chart-1: oklch(0.729 0.074 27.443);
--chart-2: oklch(0.93 0.003 26.459);
--chart-3: oklch(0.864 0.009 26.515);
--chart-4: oklch(0.953 0.002 26.453);
--chart-5: oklch(0.728 0.079 27.542);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.108 0.015 31.656);
--foreground: oklch(0.983 0.003 26.461);
--muted: oklch(0.154 0.009 26.898);
--muted-foreground: oklch(0.728 0.009 26.525);
--popover: oklch(0.124 0.017 31.556);
--popover-foreground: oklch(0.992 0.002 26.45);
--card: oklch(0.124 0.017 31.556);
--card-foreground: oklch(0.992 0.002 26.45);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.729 0.074 27.443);
--primary-foreground: oklch(0.195 0.03 28.196);
--secondary: oklch(0.261 0.021 27.201);
--secondary-foreground: oklch(0.793 0.026 26.694);
--accent: oklch(0.336 0.042 27.761);
--accent-foreground: oklch(0.857 0.024 26.645);
--destructive: oklch(0.604 0.168 43.46);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.729 0.074 27.443);
--chart-1: oklch(0.729 0.074 27.443);
--chart-2: oklch(0.261 0.021 27.201);
--chart-3: oklch(0.336 0.042 27.761);
--chart-4: oklch(0.291 0.025 27.25);
--chart-5: oklch(0.728 0.079 27.542);
}