Gravy is a shadcn/ui theme built around a green primary color (#228c22) with red accents (#8c2222). The light mode uses a neutral background (#fbfefb). Dark mode keeps the green primary (#228c22) on a green-tinted background (#040b04).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfefbwhite | #040b04black |
| Foreground | #010401black | #f5faf5whitesmoke |
| Card | #fbfefbwhite | #040b04black |
| Card foreground | #010401black | #f5faf5whitesmoke |
| Popover | #fbfefbwhite | #040b04black |
| Popover foreground | #010401black | #f5faf5whitesmoke |
| Primary | #228c22forestgreen | #228c22forestgreen |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #22228cmidnightblue | #22228cmidnightblue |
| Secondary foreground | #e6e6f9lavender | #e6e6f9lavender |
| Muted | #e6e6f4lavender | #0b0b19black |
| Muted foreground | #595959dimgray | #a6a6a6darkgray |
| Accent | #8c2222brown | #8c2222brown |
| Accent foreground | #f9e6e6mistyrose | #f9e6e6mistyrose |
| Destructive | #722a04saddlebrown | #f97934coral |
| Destructive foreground | #fcc7abnavajowhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #228c22forestgreen | #228c22forestgreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.27:1 | AAA |
| Text on card | 20.27:1 | AAA |
| Primary button | 4.35:1 | AA Large |
| Secondary button | 10.20:1 | AAA |
| Muted text | 5.67:1 | AA |
| Accent | 7.41:1 | AAA |
| Destructive | 6.78:1 | AA |
| Text on background | 18.83:1 | AAA |
| Text on card | 18.83:1 | AAA |
| Primary button | 4.35:1 | AA Large |
| Secondary button | 10.20:1 | AAA |
| Muted text | 8.02:1 | AAA |
| Accent | 7.41:1 | AAA |
| Destructive | 7.80:1 | AAA |
Paste this into your globals.css to use Gravy in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.005 145.538);
--foreground: oklch(0.097 0.019 143.898);
--muted: oklch(0.93 0.019 286.03);
--muted-foreground: oklch(0.465 0 180);
--popover: oklch(0.994 0.005 145.538);
--popover-foreground: oklch(0.097 0.019 143.898);
--card: oklch(0.994 0.005 145.538);
--card-foreground: oklch(0.097 0.019 143.898);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.559 0.17 142.886);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.338 0.168 272.839);
--secondary-foreground: oklch(0.932 0.025 285.902);
--accent: oklch(0.425 0.141 25.593);
--accent-foreground: oklch(0.941 0.02 17.521);
--destructive: oklch(0.385 0.111 43.085);
--destructive-foreground: oklch(0.871 0.072 49.691);
--ring: oklch(0.559 0.17 142.886);
--chart-1: oklch(0.559 0.17 142.886);
--chart-2: oklch(0.338 0.168 272.839);
--chart-3: oklch(0.425 0.141 25.593);
--chart-4: oklch(0.358 0.18 272.622);
--chart-5: oklch(0.566 0.175 142.828);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.138 0.022 144.292);
--foreground: oklch(0.98 0.009 145.508);
--muted: oklch(0.157 0.029 282.506);
--muted-foreground: oklch(0.724 0 180);
--popover: oklch(0.138 0.022 144.292);
--popover-foreground: oklch(0.98 0.009 145.508);
--card: oklch(0.138 0.022 144.292);
--card-foreground: oklch(0.98 0.009 145.508);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.559 0.17 142.886);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.338 0.168 272.839);
--secondary-foreground: oklch(0.932 0.025 285.902);
--accent: oklch(0.425 0.141 25.593);
--accent-foreground: oklch(0.941 0.02 17.521);
--destructive: oklch(0.715 0.175 45.683);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.559 0.17 142.886);
--chart-1: oklch(0.559 0.17 142.886);
--chart-2: oklch(0.338 0.168 272.839);
--chart-3: oklch(0.425 0.141 25.593);
--chart-4: oklch(0.358 0.18 272.622);
--chart-5: oklch(0.566 0.175 142.828);
}