Green is a shadcn/ui theme built around a vivid purple primary color (#b61acb) with neutral gray accents (#d9d8d9). The light mode uses a neutral background (#fcf8fc). Dark mode keeps the vivid purple primary (#b61acb) on a purple-tinted background (#0e060f).
| Token | Light | Dark |
|---|---|---|
| Background | #fcf8fcsnow | #0e060fblack |
| Foreground | #040104black | #ffffffwhite |
| Card | #fcf8fcsnow | #0e060fblack |
| Card foreground | #040104black | #ffffffwhite |
| Popover | #fcf8fcsnow | #0e060fblack |
| Popover foreground | #040104black | #ffffffwhite |
| Primary | #b61acbdarkorchid | #b61acbdarkorchid |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #d9d8d9gainsboro | #353036darkslategray |
| Secondary foreground | #403f40darkslategray | #cec9cflightgrey |
| Muted | #f3f1f4whitesmoke | #0e0b0eblack |
| Muted foreground | #4f3e51darkslategray | #bfaec1silver |
| Accent | #d9d8d9gainsboro | #353036darkslategray |
| Accent foreground | #403f40darkslategray | #cec9cflightgrey |
| Destructive | #b1430bsaddlebrown | #e6560fchocolate |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #b61acbdarkorchid | #b61acbdarkorchid |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.68:1 | AAA |
| Text on card | 19.68:1 | AAA |
| Primary button | 5.22:1 | AA |
| Secondary button | 7.39:1 | AAA |
| Muted text | 8.72:1 | AAA |
| Accent | 7.39:1 | AAA |
| Destructive | 5.70:1 | AA |
| Text on background | 20.01:1 | AAA |
| Text on card | 20.01:1 | AAA |
| Primary button | 5.22:1 | AA |
| Secondary button | 7.88:1 | AAA |
| Muted text | 9.34:1 | AAA |
| Accent | 7.88:1 | AAA |
| Destructive | 3.67:1 | AA Large |
Paste this into your globals.css to use Green in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.982 0.008 322.14);
--foreground: oklch(0.085 0.021 323.988);
--muted: oklch(0.96 0.005 322.13);
--muted-foreground: oklch(0.389 0.038 322.426);
--popover: oklch(0.982 0.008 322.14);
--popover-foreground: oklch(0.085 0.021 323.988);
--card: oklch(0.982 0.008 322.14);
--card-foreground: oklch(0.085 0.021 323.988);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.567 0.255 322.383);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.884 0.001 322.118);
--secondary-foreground: oklch(0.37 0.003 322.137);
--accent: oklch(0.884 0.001 322.118);
--accent-foreground: oklch(0.37 0.003 322.137);
--destructive: oklch(0.528 0.156 41.363);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.567 0.255 322.383);
--chart-1: oklch(0.567 0.255 322.383);
--chart-2: oklch(0.884 0.001 322.118);
--chart-3: oklch(0.884 0.001 322.118);
--chart-4: oklch(0.908 0.001 322.117);
--chart-5: oklch(0.571 0.26 322.302);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.138 0.026 322.995);
--foreground: oklch(1 0 180);
--muted: oklch(0.155 0.008 322.281);
--muted-foreground: oklch(0.771 0.032 322.251);
--popover: oklch(0.138 0.026 322.995);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.138 0.026 322.995);
--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.567 0.255 322.383);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.318 0.011 322.228);
--secondary-foreground: oklch(0.842 0.009 322.147);
--accent: oklch(0.318 0.011 322.228);
--accent-foreground: oklch(0.842 0.009 322.147);
--destructive: oklch(0.638 0.192 40.905);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.567 0.255 322.383);
--chart-1: oklch(0.567 0.255 322.383);
--chart-2: oklch(0.318 0.011 322.228);
--chart-3: oklch(0.318 0.011 322.228);
--chart-4: oklch(0.347 0.012 322.232);
--chart-5: oklch(0.571 0.26 322.302);
}