Zucchini is a shadcn/ui theme built around a muted light green primary color (#c9d9bf) with muted light green accents (#bfd9c1). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted light green primary (#c9d9bf) on a neutral background (#050703).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #050703black |
| Foreground | #020401black | #ffffffwhite |
| Card | #ffffffwhite | #050703black |
| Card foreground | #020401black | #ffffffwhite |
| Popover | #ffffffwhite | #050703black |
| Popover foreground | #020401black | #ffffffwhite |
| Primary | #c9d9bflightgrey | #c9d9bflightgrey |
| Primary foreground | #304026darkslategray | #304026darkslategray |
| Secondary | #d7d9bflightgrey | #d7d9bflightgrey |
| Secondary foreground | #3e4026darkslategray | #3e4026darkslategray |
| Muted | #edeee2beige | #1c1d11black |
| Muted foreground | #5b5d46darkolivegreen | #b7b9a2darkgray |
| Accent | #bfd9c1silver | #bfd9c1silver |
| Accent foreground | #264028darkslategray | #264028darkslategray |
| Destructive | #aa2213firebrick | #cf2917firebrick |
| Destructive foreground | #fdf2f1seashell | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #c9d9bflightgrey | #c9d9bflightgrey |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.58:1 | AAA |
| Text on card | 20.58:1 | AAA |
| Primary button | 7.52:1 | AAA |
| Secondary button | 7.41:1 | AAA |
| Muted text | 5.79:1 | AA |
| Accent | 7.54:1 | AAA |
| Destructive | 6.50:1 | AA |
| Text on background | 20.24:1 | AAA |
| Text on card | 20.24:1 | AAA |
| Primary button | 7.52:1 | AAA |
| Secondary button | 7.41:1 | AAA |
| Muted text | 8.48:1 | AAA |
| Accent | 7.54:1 | AAA |
| Destructive | 5.28:1 | AA |
Paste this into your globals.css to use Zucchini in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.1 0.017 130.821);
--muted: oklch(0.946 0.016 111.339);
--muted-foreground: oklch(0.47 0.035 112.401);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.1 0.017 130.821);
--card: oklch(1 0 180);
--card-foreground: oklch(0.1 0.017 130.821);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.867 0.04 132.711);
--primary-foreground: oklch(0.351 0.049 133.553);
--secondary: oklch(0.877 0.036 111.768);
--secondary-foreground: oklch(0.362 0.042 113.179);
--accent: oklch(0.86 0.043 148.018);
--accent-foreground: oklch(0.344 0.053 146.693);
--destructive: oklch(0.48 0.174 30.493);
--destructive-foreground: oklch(0.971 0.012 25.094);
--ring: oklch(0.867 0.04 132.711);
--chart-1: oklch(0.867 0.04 132.711);
--chart-2: oklch(0.877 0.036 111.768);
--chart-3: oklch(0.86 0.043 148.018);
--chart-4: oklch(0.896 0.03 111.641);
--chart-5: oklch(0.869 0.044 132.752);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.122 0.012 131.475);
--foreground: oklch(1 0 180);
--muted: oklch(0.226 0.023 112.861);
--muted-foreground: oklch(0.777 0.032 111.77);
--popover: oklch(0.122 0.012 131.475);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.122 0.012 131.475);
--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.867 0.04 132.711);
--primary-foreground: oklch(0.351 0.049 133.553);
--secondary: oklch(0.877 0.036 111.768);
--secondary-foreground: oklch(0.362 0.042 113.179);
--accent: oklch(0.86 0.043 148.018);
--accent-foreground: oklch(0.344 0.053 146.693);
--destructive: oklch(0.554 0.203 30.511);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.867 0.04 132.711);
--chart-1: oklch(0.867 0.04 132.711);
--chart-2: oklch(0.877 0.036 111.768);
--chart-3: oklch(0.86 0.043 148.018);
--chart-4: oklch(0.896 0.03 111.641);
--chart-5: oklch(0.869 0.044 132.752);
}