#215f00 is a shadcn/ui theme built around a vivid deep green primary color (#226100) with vivid deep green accents (#00610f). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid deep green primary (#226100) on a neutral background (#020401).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #020401black |
| Foreground | #081103black | #f7f8f6whitesmoke |
| Card | #ffffffwhite | #040703black |
| Card foreground | #060d03black | #fafbf9snow |
| Popover | #fcfdfbsnow | #020401black |
| Popover foreground | #081103black | #f7f8f6whitesmoke |
| Primary | #226100darkgreen | #226100darkgreen |
| Primary foreground | #b9ff94palegreen | #b9ff94palegreen |
| Secondary | #526100darkolivegreen | #526100darkolivegreen |
| Secondary foreground | #e0ff2egreenyellow | #e0ff2egreenyellow |
| Muted | #f0f2e3beige | #1a1c0dblack |
| Muted foreground | #515346darkolivegreen | #b7b9acdarkgray |
| Accent | #00610fdarkgreen | #00610fdarkgreen |
| Accent foreground | #94ffa4palegreen | #94ffa4palegreen |
| Destructive | #bd2300firebrick | #ff3305orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7e4gainsboro | #232522black |
| Input | #e5e7e4gainsboro | #232522black |
| Ring | #226100darkgreen | #226100darkgreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.23:1 | AAA |
| Text on card | 19.68:1 | AAA |
| Primary button | 6.41:1 | AA |
| Secondary button | 6.03:1 | AA |
| Muted text | 6.92:1 | AA |
| Accent | 6.30:1 | AA |
| Destructive | 6.19:1 | AA |
| Text on background | 19.33:1 | AAA |
| Text on card | 19.46:1 | AAA |
| Primary button | 6.41:1 | AA |
| Secondary button | 6.03:1 | AA |
| Muted text | 8.68:1 | AAA |
| Accent | 6.30:1 | AA |
| Destructive | 3.66:1 | AA Large |
Paste this into your globals.css to use #215f00 in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.163 0.033 133.504);
--muted: oklch(0.956 0.02 113.698);
--muted-foreground: oklch(0.437 0.022 114.243);
--popover: oklch(0.994 0.003 134.236);
--popover-foreground: oklch(0.163 0.033 133.504);
--card: oklch(1 0 180);
--card-foreground: oklch(0.146 0.028 132.643);
--border: oklch(0.925 0.004 134.243);
--input: oklch(0.925 0.004 134.243);
--primary: oklch(0.434 0.135 138.467);
--primary-foreground: oklch(0.93 0.154 135.375);
--secondary: oklch(0.463 0.109 119.359);
--secondary-foreground: oklch(0.945 0.212 118.619);
--accent: oklch(0.427 0.139 143.922);
--accent-foreground: oklch(0.913 0.159 147.622);
--destructive: oklch(0.515 0.192 32.551);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.434 0.135 138.467);
--chart-1: oklch(0.434 0.135 138.467);
--chart-2: oklch(0.463 0.109 119.359);
--chart-3: oklch(0.427 0.139 143.922);
--chart-4: oklch(0.514 0.121 119.512);
--chart-5: oklch(0.438 0.138 138.56);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.098 0.014 132.901);
--foreground: oklch(0.979 0.003 134.239);
--muted: oklch(0.219 0.027 115.678);
--muted-foreground: oklch(0.781 0.019 113.765);
--popover: oklch(0.098 0.014 132.901);
--popover-foreground: oklch(0.979 0.003 134.239);
--card: oklch(0.124 0.017 132.901);
--card-foreground: oklch(0.986 0.002 134.233);
--border: oklch(0.263 0.007 134.378);
--input: oklch(0.263 0.007 134.378);
--primary: oklch(0.434 0.135 138.467);
--primary-foreground: oklch(0.93 0.154 135.375);
--secondary: oklch(0.463 0.109 119.359);
--secondary-foreground: oklch(0.945 0.212 118.619);
--accent: oklch(0.427 0.139 143.922);
--accent-foreground: oklch(0.913 0.159 147.622);
--destructive: oklch(0.646 0.241 32.325);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.434 0.135 138.467);
--chart-1: oklch(0.434 0.135 138.467);
--chart-2: oklch(0.463 0.109 119.359);
--chart-3: oklch(0.427 0.139 143.922);
--chart-4: oklch(0.514 0.121 119.512);
--chart-5: oklch(0.438 0.138 138.56);
}