Green is a shadcn/ui theme built around a muted violet primary color (#967ab3) with muted light violet accents (#e3dde9). The light mode uses a neutral background (#faf7fd). Dark mode keeps the muted violet primary (#967ab3) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #faf7fdghostwhite | #000000black |
| Foreground | #000000black | #f7f6f9whitesmoke |
| Card | #f7f2fcghostwhite | #030303black |
| Card foreground | #000000black | #faf9fbghostwhite |
| Popover | #faf7fdghostwhite | #000000black |
| Popover foreground | #000000black | #f7f6f9whitesmoke |
| Primary | #967ab3mediumpurple | #967ab3mediumpurple |
| Primary foreground | #000000black | #000000black |
| Secondary | #e3dde9gainsboro | #19181bblack |
| Secondary foreground | #4a3b59darkslategray | #b3afb6darkgray |
| Muted | #dedae2gainsboro | #211d25black |
| Muted foreground | #453f4adarkslategray | #bab5c0silver |
| Accent | #e3dde9gainsboro | #19181bblack |
| Accent foreground | #4a3b59darkslategray | #b3afb6darkgray |
| Destructive | #602506maroon | #d9540dchocolate |
| Destructive foreground | #f9be9flightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #967ab3mediumpurple | #967ab3mediumpurple |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.73:1 | AAA |
| Text on card | 19.12:1 | AAA |
| Primary button | 5.74:1 | AA |
| Secondary button | 7.67:1 | AAA |
| Muted text | 7.37:1 | AAA |
| Accent | 7.67:1 | AAA |
| Destructive | 7.27:1 | AAA |
| Text on background | 19.50:1 | AAA |
| Text on card | 19.70:1 | AAA |
| Primary button | 5.74:1 | AA |
| Secondary button | 8.16:1 | AAA |
| Muted text | 8.23:1 | AAA |
| Accent | 8.16:1 | AAA |
| Destructive | 4.02:1 | AA Large |
Paste this into your globals.css to use Green in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.979 0.009 308.354);
--foreground: oklch(0 0 0);
--muted: oklch(0.893 0.012 308.317);
--muted-foreground: oklch(0.379 0.02 307.881);
--popover: oklch(0.979 0.009 308.354);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.969 0.014 308.298);
--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.628 0.089 306.869);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.906 0.016 308.262);
--secondary-foreground: oklch(0.381 0.053 306.905);
--accent: oklch(0.906 0.016 308.262);
--accent-foreground: oklch(0.381 0.053 306.905);
--destructive: oklch(0.348 0.095 44.15);
--destructive-foreground: oklch(0.848 0.081 49.541);
--ring: oklch(0.628 0.089 306.869);
--chart-1: oklch(0.628 0.089 306.869);
--chart-2: oklch(0.906 0.016 308.262);
--chart-3: oklch(0.906 0.016 308.262);
--chart-4: oklch(0.932 0.012 308.321);
--chart-5: oklch(0.623 0.098 306.669);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.974 0.005 308.401);
--muted: oklch(0.239 0.016 307.719);
--muted-foreground: oklch(0.78 0.017 308.225);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.974 0.005 308.401);
--card: oklch(0.092 0 180);
--card-foreground: oklch(0.983 0.003 308.421);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.628 0.089 306.869);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.213 0.005 308.184);
--secondary-foreground: oklch(0.758 0.012 308.291);
--accent: oklch(0.213 0.005 308.184);
--accent-foreground: oklch(0.758 0.012 308.291);
--destructive: oklch(0.614 0.181 42.014);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.628 0.089 306.869);
--chart-1: oklch(0.628 0.089 306.869);
--chart-2: oklch(0.213 0.005 308.184);
--chart-3: oklch(0.213 0.005 308.184);
--chart-4: oklch(0.245 0.007 308.159);
--chart-5: oklch(0.623 0.098 306.669);
}