Vegetation is a shadcn/ui theme built around a muted deep green primary color (#213127) with muted deep orange accents (#312721). The light mode uses a neutral background (#fbfefc). Dark mode keeps the muted deep green primary (#213127) on a neutral background (#010402).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfefcwhite | #010402black |
| Foreground | #010402black | #f9fbfamintcream |
| Card | #f7fcf9mintcream | #020804black |
| Card foreground | #000000black | #fcfdfcwhite |
| Popover | #f7fcf9mintcream | #020804black |
| Popover foreground | #000000black | #fcfdfcwhite |
| Primary | #213127darkslategray | #213127darkslategray |
| Primary foreground | #b6cdbfsilver | #b6cdbfsilver |
| Secondary | #272131darkslategray | #272131darkslategray |
| Secondary foreground | #bfb6cdsilver | #bfb6cdsilver |
| Muted | #e4deedlavender | #181221black |
| Muted foreground | #474747darkslategray | #b8b8b8silver |
| Accent | #312721darkslategray | #312721darkslategray |
| Accent foreground | #cdbfb6silver | #cdbfb6silver |
| Destructive | #8e3210saddlebrown | #d34a17chocolate |
| Destructive foreground | #fadfd6antiquewhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #213127darkslategray | #213127darkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.25:1 | AAA |
| Text on card | 20.31:1 | AAA |
| Primary button | 8.17:1 | AAA |
| Secondary button | 8.00:1 | AAA |
| Muted text | 7.07:1 | AAA |
| Accent | 8.15:1 | AAA |
| Destructive | 6.35:1 | AA |
| Text on background | 19.82:1 | AAA |
| Text on card | 19.82:1 | AAA |
| Primary button | 8.17:1 | AAA |
| Secondary button | 8.00:1 | AAA |
| Muted text | 9.21:1 | AAA |
| Accent | 8.15:1 | AAA |
| Destructive | 4.41:1 | AA Large |
Paste this into your globals.css to use Vegetation in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.003 158.648);
--foreground: oklch(0.099 0.016 158.461);
--muted: oklch(0.91 0.02 302.594);
--muted-foreground: oklch(0.399 0 180);
--popover: oklch(0.988 0.007 158.575);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.988 0.007 158.575);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.294 0.027 156.508);
--primary-foreground: oklch(0.828 0.032 157.847);
--secondary: oklch(0.261 0.03 301.177);
--secondary-foreground: oklch(0.791 0.034 302.278);
--accent: oklch(0.281 0.018 51.766);
--accent-foreground: oklch(0.814 0.021 52.248);
--destructive: oklch(0.446 0.133 38.324);
--destructive-foreground: oklch(0.925 0.033 41.074);
--ring: oklch(0.294 0.027 156.508);
--chart-1: oklch(0.294 0.027 156.508);
--chart-2: oklch(0.261 0.03 301.177);
--chart-3: oklch(0.281 0.018 51.766);
--chart-4: oklch(0.289 0.034 301.094);
--chart-5: oklch(0.297 0.031 156.158);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.097 0.013 158.51);
--foreground: oklch(0.986 0.002 158.68);
--muted: oklch(0.198 0.029 300.618);
--muted-foreground: oklch(0.781 0 180);
--popover: oklch(0.123 0.016 158.51);
--popover-foreground: oklch(0.993 0.001 158.7);
--card: oklch(0.123 0.016 158.51);
--card-foreground: oklch(0.993 0.001 158.7);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.294 0.027 156.508);
--primary-foreground: oklch(0.828 0.032 157.847);
--secondary: oklch(0.261 0.03 301.177);
--secondary-foreground: oklch(0.791 0.034 302.278);
--accent: oklch(0.281 0.018 51.766);
--accent-foreground: oklch(0.814 0.021 52.248);
--destructive: oklch(0.592 0.182 37.875);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.294 0.027 156.508);
--chart-1: oklch(0.294 0.027 156.508);
--chart-2: oklch(0.261 0.03 301.177);
--chart-3: oklch(0.281 0.018 51.766);
--chart-4: oklch(0.289 0.034 301.094);
--chart-5: oklch(0.297 0.031 156.158);
}