Green is a shadcn/ui theme built around a green primary color (#7ece94) with muted light green accents (#b7cdbd). The light mode uses a neutral background (#f7fdf9). Dark mode keeps the green primary (#7ece94) on a neutral background (#030704).
| Token | Light | Dark |
|---|---|---|
| Background | #f7fdf9mintcream | #030704black |
| Foreground | #031207black | #fcfdfcwhite |
| Card | #f3fcf5mintcream | #050b06black |
| Card foreground | #020d05black | #ffffffwhite |
| Popover | #f3fcf5mintcream | #050b06black |
| Popover foreground | #020d05black | #ffffffwhite |
| Primary | #7ece94darkseagreen | #7ece94darkseagreen |
| Primary foreground | #07120ablack | #07120ablack |
| Secondary | #d7e0d9gainsboro | #1d2a21black |
| Secondary foreground | #3a4a3fdarkslategray | #b1c9b8silver |
| Muted | #e9f1ebwhitesmoke | #0e1610black |
| Muted foreground | #494b4adarkslategray | #b4b6b5silver |
| Accent | #b7cdbdsilver | #284330darkslategray |
| Accent foreground | #213026darkslategray | #c2dbc9lightgrey |
| Destructive | #b51d03firebrick | #f12704orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #7ece94darkseagreen | #7ece94darkseagreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.62:1 | AAA |
| Text on card | 18.88:1 | AAA |
| Primary button | 10.11:1 | AAA |
| Secondary button | 6.95:1 | AA |
| Muted text | 7.65:1 | AAA |
| Accent | 8.22:1 | AAA |
| Destructive | 6.68:1 | AA |
| Text on background | 19.86:1 | AAA |
| Text on card | 19.90:1 | AAA |
| Primary button | 10.11:1 | AAA |
| Secondary button | 8.46:1 | AAA |
| Muted text | 9.03:1 | AAA |
| Accent | 7.33:1 | AAA |
| Destructive | 4.16:1 | AA Large |
Paste this into your globals.css to use Green in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.988 0.009 155.022);
--foreground: oklch(0.162 0.033 153.175);
--muted: oklch(0.951 0.012 154.964);
--muted-foreground: oklch(0.41 0.003 155.075);
--popover: oklch(0.982 0.014 154.935);
--popover-foreground: oklch(0.144 0.028 154.184);
--card: oklch(0.982 0.014 154.935);
--card-foreground: oklch(0.144 0.028 154.184);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.784 0.114 152.086);
--primary-foreground: oklch(0.17 0.024 152.796);
--secondary: oklch(0.897 0.012 154.936);
--secondary-foreground: oklch(0.392 0.028 153.811);
--accent: oklch(0.827 0.032 154.454);
--accent-foreground: oklch(0.293 0.027 153.324);
--destructive: oklch(0.497 0.188 31.689);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.784 0.114 152.086);
--chart-1: oklch(0.784 0.114 152.086);
--chart-2: oklch(0.897 0.012 154.936);
--chart-3: oklch(0.827 0.032 154.454);
--chart-4: oklch(0.919 0.01 154.997);
--chart-5: oklch(0.789 0.121 151.883);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.121 0.014 154.805);
--foreground: oklch(0.993 0.001 155.175);
--muted: oklch(0.189 0.017 153.395);
--muted-foreground: oklch(0.774 0.002 155.138);
--popover: oklch(0.138 0.016 154.782);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.138 0.016 154.782);
--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.784 0.114 152.086);
--primary-foreground: oklch(0.17 0.024 152.796);
--secondary: oklch(0.27 0.025 153.389);
--secondary-foreground: oklch(0.812 0.035 154.372);
--accent: oklch(0.356 0.049 152.324);
--accent-foreground: oklch(0.868 0.036 154.397);
--destructive: oklch(0.615 0.235 31.375);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.784 0.114 152.086);
--chart-1: oklch(0.784 0.114 152.086);
--chart-2: oklch(0.27 0.025 153.389);
--chart-3: oklch(0.356 0.049 152.324);
--chart-4: oklch(0.304 0.029 153.295);
--chart-5: oklch(0.789 0.121 151.883);
}