Vegetation is a shadcn/ui theme built around a deep green primary color (#1d7317) with muted light green accents (#b8d2b6). The light mode uses a neutral background (#fcfdfc). Dark mode keeps the deep green primary (#1d7317) on a neutral background (#030703).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfdfcwhite | #030703black |
| Foreground | #051104black | #ffffffwhite |
| Card | #f9fbf8mintcream | #050b05black |
| Card foreground | #030d03black | #ffffffwhite |
| Popover | #f9fbf8mintcream | #050b05black |
| Popover foreground | #030d03black | #ffffffwhite |
| Primary | #1d7317forestgreen | #1d7317forestgreen |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #cedbcdlightgrey | #222c21darkslategray |
| Secondary foreground | #334431darkslategray | #b8c8b6silver |
| Muted | #dce0dcgainsboro | #1f231fblack |
| Muted foreground | #434743darkslategray | #b8bcb8silver |
| Accent | #b8d2b6silver | #324b30darkslategray |
| Accent foreground | #223621darkslategray | #cedfcdlightgrey |
| Destructive | #991905darkred | #f83d20orangered |
| Destructive foreground | #fed8d2bisque | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #1d7317forestgreen | #1d7317forestgreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.93:1 | AAA |
| Text on card | 19.03:1 | AAA |
| Primary button | 5.97:1 | AA |
| Secondary button | 7.24:1 | AAA |
| Muted text | 7.09:1 | AAA |
| Accent | 8.02:1 | AAA |
| Destructive | 6.38:1 | AA |
| Text on background | 20.25:1 | AAA |
| Text on card | 19.90:1 | AAA |
| Primary button | 5.97:1 | AA |
| Secondary button | 8.29:1 | AAA |
| Muted text | 8.24:1 | AAA |
| Accent | 6.93:1 | AA |
| Destructive | 3.69:1 | AA Large |
Paste this into your globals.css to use Vegetation in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.993 0.003 143.622);
--foreground: oklch(0.159 0.035 141.801);
--muted: oklch(0.903 0.008 143.59);
--muted-foreground: oklch(0.393 0.009 143.521);
--popover: oklch(0.986 0.005 143.609);
--popover-foreground: oklch(0.142 0.031 141.705);
--card: oklch(0.986 0.005 143.609);
--card-foreground: oklch(0.142 0.031 141.705);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.487 0.149 142.127);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.876 0.023 143.494);
--secondary-foreground: oklch(0.366 0.039 143.059);
--accent: oklch(0.838 0.048 143.33);
--accent-foreground: oklch(0.309 0.044 142.85);
--destructive: oklch(0.441 0.166 31.437);
--destructive-foreground: oklch(0.913 0.043 28.243);
--ring: oklch(0.487 0.149 142.127);
--chart-1: oklch(0.487 0.149 142.127);
--chart-2: oklch(0.876 0.023 143.494);
--chart-3: oklch(0.838 0.048 143.33);
--chart-4: oklch(0.898 0.019 143.523);
--chart-5: oklch(0.492 0.153 142.126);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.121 0.017 142.395);
--foreground: oklch(1 0 180);
--muted: oklch(0.252 0.011 143.41);
--muted-foreground: oklch(0.792 0.007 143.588);
--popover: oklch(0.138 0.02 142.398);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.138 0.02 142.398);
--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.487 0.149 142.127);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.278 0.024 143.173);
--secondary-foreground: oklch(0.816 0.031 143.436);
--accent: oklch(0.383 0.054 142.859);
--accent-foreground: oklch(0.887 0.03 143.455);
--destructive: oklch(0.643 0.226 31.629);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.487 0.149 142.127);
--chart-1: oklch(0.487 0.149 142.127);
--chart-2: oklch(0.278 0.024 143.173);
--chart-3: oklch(0.383 0.054 142.859);
--chart-4: oklch(0.311 0.028 143.152);
--chart-5: oklch(0.492 0.153 142.126);
}