Green 2 is a shadcn/ui theme built around a vivid deep green primary color (#2a8406) with muted light green accents (#d4dcd1). The light mode uses a neutral background (#fcfefb). Dark mode keeps the vivid deep green primary (#2a8406) on a green-tinted background (#080e06).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfefbwhite | #080e06black |
| Foreground | #071104black | #ffffffwhite |
| Card | #fcfefbwhite | #080e06black |
| Card foreground | #071104black | #ffffffwhite |
| Popover | #fcfefbwhite | #080e06black |
| Popover foreground | #071104black | #ffffffwhite |
| Primary | #2a8406forestgreen | #2a8406forestgreen |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #d4dcd1lightgrey | #191b18black |
| Secondary foreground | #3a4535darkslategray | #b0b8addarkgray |
| Muted | #e6ece4beige | #151b13black |
| Muted foreground | #4c5549darkslategray | #adb6aadarkgray |
| Accent | #d4dcd1lightgrey | #191b18black |
| Accent foreground | #3a4535darkslategray | #b0b8addarkgray |
| Destructive | #830e0cmaroon | #eb302dcrimson |
| Destructive foreground | #fac8c7pink | #ffffffwhite |
| Border | #e3e4e2gainsboro | #212220black |
| Input | #e3e4e2gainsboro | #212220black |
| Ring | #2a8406forestgreen | #2a8406forestgreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.95:1 | AAA |
| Text on card | 18.95:1 | AAA |
| Primary button | 4.80:1 | AA |
| Secondary button | 7.15:1 | AAA |
| Muted text | 6.47:1 | AA |
| Accent | 7.15:1 | AAA |
| Destructive | 6.97:1 | AA |
| Text on background | 19.48:1 | AAA |
| Text on card | 19.48:1 | AAA |
| Primary button | 4.80:1 | AA |
| Secondary button | 8.49:1 | AAA |
| Muted text | 8.39:1 | AAA |
| Accent | 8.49:1 | AAA |
| Destructive | 4.18:1 | AA Large |
Paste this into your globals.css to use Green 2 in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.004 136.621);
--foreground: oklch(0.162 0.032 135.553);
--muted: oklch(0.937 0.012 136.647);
--muted-foreground: oklch(0.439 0.023 136.775);
--popover: oklch(0.994 0.004 136.621);
--popover-foreground: oklch(0.162 0.032 135.553);
--card: oklch(0.994 0.004 136.621);
--card-foreground: oklch(0.162 0.032 135.553);
--border: oklch(0.917 0.003 136.617);
--input: oklch(0.917 0.003 136.617);
--primary: oklch(0.537 0.169 139.782);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.884 0.016 136.665);
--secondary-foreground: oklch(0.376 0.03 136.873);
--accent: oklch(0.884 0.016 136.665);
--accent-foreground: oklch(0.376 0.03 136.873);
--destructive: oklch(0.39 0.149 28.324);
--destructive-foreground: oklch(0.876 0.057 19.435);
--ring: oklch(0.537 0.169 139.782);
--chart-1: oklch(0.537 0.169 139.782);
--chart-2: oklch(0.884 0.016 136.665);
--chart-3: oklch(0.884 0.016 136.665);
--chart-4: oklch(0.906 0.013 136.653);
--chart-5: oklch(0.543 0.172 139.896);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.155 0.02 135.96);
--foreground: oklch(1 0 180);
--muted: oklch(0.213 0.017 136.872);
--muted-foreground: oklch(0.766 0.02 136.689);
--popover: oklch(0.155 0.02 135.96);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.155 0.02 135.96);
--card-foreground: oklch(1 0 180);
--border: oklch(0.25 0.004 136.66);
--input: oklch(0.25 0.004 136.66);
--primary: oklch(0.537 0.169 139.782);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.219 0.008 136.718);
--secondary-foreground: oklch(0.773 0.017 136.676);
--accent: oklch(0.219 0.008 136.718);
--accent-foreground: oklch(0.773 0.017 136.676);
--destructive: oklch(0.612 0.222 27.506);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.537 0.169 139.782);
--chart-1: oklch(0.537 0.169 139.782);
--chart-2: oklch(0.219 0.008 136.718);
--chart-3: oklch(0.219 0.008 136.718);
--chart-4: oklch(0.253 0.01 136.728);
--chart-5: oklch(0.543 0.172 139.896);
}