Granola is a shadcn/ui theme built around an orange primary color (#af8950) with green accents (#a5af50). The light mode uses a neutral background (#fdfdfb). Dark mode keeps the orange primary (#af8950) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfdfbsnow | #000000black |
| Foreground | #100b05black | #ffffffwhite |
| Card | #fdfdfbsnow | #000000black |
| Card foreground | #100b05black | #ffffffwhite |
| Popover | #fdfdfbsnow | #000000black |
| Popover foreground | #100b05black | #ffffffwhite |
| Primary | #af8950peru | #af8950peru |
| Primary foreground | #000000black | #000000black |
| Secondary | #af5a50indianred | #af5a50indianred |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #f2eeeewhitesmoke | #110e0dblack |
| Muted foreground | #494241darkslategray | #beb7b6silver |
| Accent | #a5af50darkkhaki | #a5af50darkkhaki |
| Accent foreground | #212310black | #212310black |
| Destructive | #8a150adarkred | #ee3120orangered |
| Destructive foreground | #fbcfcbpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #af8950peru | #af8950peru |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.21:1 | AAA |
| Text on card | 19.21:1 | AAA |
| Primary button | 6.50:1 | AA |
| Secondary button | 4.78:1 | AA |
| Muted text | 8.52:1 | AAA |
| Accent | 6.72:1 | AA |
| Destructive | 6.81:1 | AA |
| Text on background | 21.00:1 | AAA |
| Text on card | 21.00:1 | AAA |
| Primary button | 6.50:1 | AA |
| Secondary button | 4.78:1 | AA |
| Muted text | 9.74:1 | AAA |
| Accent | 6.72:1 | AA |
| Destructive | 4.11:1 | AA Large |
Paste this into your globals.css to use Granola in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.993 0.002 78.307);
--foreground: oklch(0.154 0.017 81.193);
--muted: oklch(0.952 0.004 25.026);
--muted-foreground: oklch(0.385 0.01 25.229);
--popover: oklch(0.993 0.002 78.307);
--popover-foreground: oklch(0.154 0.017 81.193);
--card: oklch(0.993 0.002 78.307);
--card-foreground: oklch(0.154 0.017 81.193);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.653 0.087 76.38);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.566 0.113 27.725);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.726 0.119 114.141);
--accent-foreground: oklch(0.248 0.033 113.461);
--destructive: oklch(0.408 0.152 30.049);
--destructive-foreground: oklch(0.891 0.05 24.223);
--ring: oklch(0.653 0.087 76.38);
--chart-1: oklch(0.653 0.087 76.38);
--chart-2: oklch(0.566 0.113 27.725);
--chart-3: oklch(0.726 0.119 114.141);
--chart-4: oklch(0.591 0.105 27.334);
--chart-5: oklch(0.658 0.093 76.06);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(1 0 180);
--muted: oklch(0.167 0.007 25.364);
--muted-foreground: oklch(0.785 0.009 25.081);
--popover: oklch(0 0 0);
--popover-foreground: oklch(1 0 180);
--card: oklch(0 0 0);
--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.653 0.087 76.38);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.566 0.113 27.725);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.726 0.119 114.141);
--accent-foreground: oklch(0.248 0.033 113.461);
--destructive: oklch(0.617 0.225 29.969);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.653 0.087 76.38);
--chart-1: oklch(0.653 0.087 76.38);
--chart-2: oklch(0.566 0.113 27.725);
--chart-3: oklch(0.726 0.119 114.141);
--chart-4: oklch(0.591 0.105 27.334);
--chart-5: oklch(0.658 0.093 76.06);
}