Grave is a shadcn/ui theme built around a light cyan primary color (#e0eff0) with muted light cyan accents (#c7d0d1). The light mode uses a neutral background (#fcfdfd). Dark mode keeps the light cyan primary (#e0eff0) on a neutral background (#030707).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfdfdwhite | #030707black |
| Foreground | #031011black | #fcfdfdwhite |
| Card | #f8fbfbghostwhite | #040a0bblack |
| Card foreground | #020c0dblack | #ffffffwhite |
| Popover | #fcfdfdwhite | #030707black |
| Popover foreground | #031011black | #fcfdfdwhite |
| Primary | #e0eff0lavender | #e0eff0lavender |
| Primary foreground | #122426black | #122426black |
| Secondary | #c7d0d1lightgrey | #1b1d1dblack |
| Secondary foreground | #2e3738darkslategray | #b4b6b7silver |
| Muted | #d4e6e8gainsboro | #17292bdarkslategray |
| Muted foreground | #3e4b4cdarkslategray | #b3c0c1silver |
| Accent | #c7d0d1lightgrey | #1b1d1dblack |
| Accent foreground | #2e3738darkslategray | #b4b6b7silver |
| Destructive | #d04901chocolate | #fe7125tomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #e0eff0lavender | #e0eff0lavender |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.97:1 | AAA |
| Text on card | 19.06:1 | AAA |
| Primary button | 13.60:1 | AAA |
| Secondary button | 7.78:1 | AAA |
| Muted text | 7.03:1 | AAA |
| Accent | 7.78:1 | AAA |
| Destructive | 4.51:1 | AA |
| Text on background | 19.87:1 | AAA |
| Text on card | 19.89:1 | AAA |
| Primary button | 13.60:1 | AAA |
| Secondary button | 8.34:1 | AAA |
| Muted text | 8.04:1 | AAA |
| Accent | 8.34:1 | AAA |
| Destructive | 7.58:1 | AAA |
Paste this into your globals.css to use Grave in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.993 0.002 203.567);
--foreground: oklch(0.161 0.021 202.175);
--muted: oklch(0.912 0.02 203.396);
--muted-foreground: oklch(0.401 0.016 203.264);
--popover: oklch(0.993 0.002 203.567);
--popover-foreground: oklch(0.161 0.021 202.175);
--card: oklch(0.987 0.003 203.552);
--card-foreground: oklch(0.144 0.018 201.376);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.941 0.016 203.43);
--primary-foreground: oklch(0.247 0.025 203.146);
--secondary: oklch(0.851 0.01 203.473);
--secondary-foreground: oklch(0.329 0.013 203.276);
--accent: oklch(0.851 0.01 203.473);
--accent-foreground: oklch(0.329 0.013 203.276);
--destructive: oklch(0.586 0.182 40.505);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.941 0.016 203.43);
--chart-1: oklch(0.941 0.016 203.43);
--chart-2: oklch(0.851 0.01 203.473);
--chart-3: oklch(0.851 0.01 203.473);
--chart-4: oklch(0.874 0.009 203.491);
--chart-5: oklch(0.942 0.017 203.419);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.122 0.01 201.573);
--foreground: oklch(0.993 0.001 203.577);
--muted: oklch(0.268 0.024 203.125);
--muted-foreground: oklch(0.798 0.014 203.427);
--popover: oklch(0.122 0.01 201.573);
--popover-foreground: oklch(0.993 0.001 203.577);
--card: oklch(0.139 0.012 201.781);
--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.941 0.016 203.43);
--primary-foreground: oklch(0.247 0.025 203.146);
--secondary: oklch(0.228 0.002 203.517);
--secondary-foreground: oklch(0.775 0.003 203.544);
--accent: oklch(0.228 0.002 203.517);
--accent-foreground: oklch(0.775 0.003 203.544);
--destructive: oklch(0.71 0.19 44.236);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.941 0.016 203.43);
--chart-1: oklch(0.941 0.016 203.43);
--chart-2: oklch(0.228 0.002 203.517);
--chart-3: oklch(0.228 0.002 203.517);
--chart-4: oklch(0.26 0.002 203.513);
--chart-5: oklch(0.942 0.017 203.419);
}