Gruvbox Material Light is a shadcn/ui theme built around a muted orange primary color (#7d6f64) with vivid yellow accents (#f6de7e). The light mode uses a yellow-tinted background (#fbf0c6). Dark mode keeps the muted orange primary (#7d6f64) on a yellow-tinted background (#fbf0c6).
| Token | Light | Dark |
|---|---|---|
| Background | #fbf0c6blanchedalmond | #fbf0c6blanchedalmond |
| Foreground | #644735darkolivegreen | #644735darkolivegreen |
| Card | #faeebcmoccasin | #faeebcmoccasin |
| Card foreground | #543b2cdarkolivegreen | #543b2cdarkolivegreen |
| Popover | #faedb7moccasin | #faedb7moccasin |
| Popover foreground | #432f23darkslategray | #432f23darkslategray |
| Primary | #7d6f64dimgray | #7d6f64dimgray |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #c0bfbfsilver | #c0bfbfsilver |
| Secondary foreground | #272626darkslategray | #272626darkslategray |
| Muted | #dbd9d1lightgrey | #dbd9d1lightgrey |
| Muted foreground | #454236darkslategray | #454236darkslategray |
| Accent | #f6de7ekhaki | #f6de7ekhaki |
| Accent foreground | #3e3204darkolivegreen | #3e3204darkolivegreen |
| Destructive | #6e0d08maroon | #6e0d08maroon |
| Destructive foreground | #f9b2aelightpink | #f9b2aelightpink |
| Border | #f5e8b2wheat | #f5e8b2wheat |
| Input | #f3e4a5palegoldenrod | #f3e4a5palegoldenrod |
| Ring | #7d6f64dimgray | #7d6f64dimgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 7.38:1 | AAA |
| Text on card | 8.84:1 | AAA |
| Primary button | 4.83:1 | AA |
| Secondary button | 8.23:1 | AAA |
| Muted text | 7.13:1 | AAA |
| Accent | 9.43:1 | AAA |
| Destructive | 6.98:1 | AA |
| Text on background | 7.38:1 | AAA |
| Text on card | 8.84:1 | AAA |
| Primary button | 4.83:1 | AA |
| Secondary button | 8.23:1 | AAA |
| Muted text | 7.13:1 | AAA |
| Accent | 9.43:1 | AAA |
| Destructive | 6.98:1 | AA |
Paste this into your globals.css to use Gruvbox Material Light in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.954 0.056 95.609);
--foreground: oklch(0.425 0.049 52.838);
--muted: oklch(0.885 0.011 95.175);
--muted-foreground: oklch(0.377 0.02 95.558);
--popover: oklch(0.943 0.07 95.702);
--popover-foreground: oklch(0.326 0.035 52.979);
--card: oklch(0.947 0.065 95.674);
--card-foreground: oklch(0.376 0.042 52.897);
--border: oklch(0.928 0.07 95.71);
--input: oklch(0.916 0.082 95.766);
--primary: oklch(0.552 0.024 63.506);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.806 0.001 64.072);
--secondary-foreground: oklch(0.27 0.001 64.048);
--accent: oklch(0.901 0.119 95.697);
--accent-foreground: oklch(0.322 0.063 93.945);
--destructive: oklch(0.346 0.13 29.179);
--destructive-foreground: oklch(0.829 0.084 22.426);
--ring: oklch(0.552 0.024 63.506);
--chart-1: oklch(0.552 0.024 63.506);
--chart-2: oklch(0.806 0.001 64.072);
--chart-3: oklch(0.901 0.119 95.697);
--chart-4: oklch(0.83 0.001 64.074);
--chart-5: oklch(0.554 0.031 63.329);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.954 0.056 95.609);
--foreground: oklch(0.425 0.049 52.838);
--muted: oklch(0.885 0.011 95.175);
--muted-foreground: oklch(0.377 0.02 95.558);
--popover: oklch(0.943 0.07 95.702);
--popover-foreground: oklch(0.326 0.035 52.979);
--card: oklch(0.947 0.065 95.674);
--card-foreground: oklch(0.376 0.042 52.897);
--border: oklch(0.928 0.07 95.71);
--input: oklch(0.916 0.082 95.766);
--primary: oklch(0.552 0.024 63.506);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.806 0.001 64.072);
--secondary-foreground: oklch(0.27 0.001 64.048);
--accent: oklch(0.901 0.119 95.697);
--accent-foreground: oklch(0.322 0.063 93.945);
--destructive: oklch(0.346 0.13 29.179);
--destructive-foreground: oklch(0.829 0.084 22.426);
--ring: oklch(0.552 0.024 63.506);
--chart-1: oklch(0.552 0.024 63.506);
--chart-2: oklch(0.806 0.001 64.072);
--chart-3: oklch(0.901 0.119 95.697);
--chart-4: oklch(0.83 0.001 64.074);
--chart-5: oklch(0.554 0.031 63.329);
}