Wisteria is a shadcn/ui theme built around a green primary color (#a5af46) with muted light green accents (#c9cabf). The light mode uses a neutral background (#fdfdf6). Dark mode keeps the green primary (#a5af46) on a neutral background (#040401).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfdf6snow | #040401black |
| Foreground | #0f1005black | #fafaf9snow |
| Card | #fdfdf6snow | #040401black |
| Card foreground | #0f1005black | #fafaf9snow |
| Popover | #fdfdf6snow | #040401black |
| Popover foreground | #0f1005black | #fafaf9snow |
| Primary | #a5af46yellowgreen | #a5af46yellowgreen |
| Primary foreground | #1b1d0cblack | #1b1d0cblack |
| Secondary | #d7d7d6lightgrey | #151613black |
| Secondary foreground | #3e3e3ddarkslategray | #b1b2a9darkgray |
| Muted | #edede8linen | #171712black |
| Muted foreground | #4b4c42darkslategray | #bcbdb3silver |
| Accent | #c9cabfsilver | #2e2f23darkslategray |
| Accent foreground | #2e2f27darkslategray | #c9cbb9silver |
| Destructive | #750706maroon | #f63f3ctomato |
| Destructive foreground | #fbb2b1lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #a5af46yellowgreen | #a5af46yellowgreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.77:1 | AAA |
| Text on card | 18.77:1 | AAA |
| Primary button | 7.17:1 | AAA |
| Secondary button | 7.40:1 | AAA |
| Muted text | 7.43:1 | AAA |
| Accent | 8.14:1 | AAA |
| Destructive | 6.76:1 | AA |
| Text on background | 19.66:1 | AAA |
| Text on card | 19.66:1 | AAA |
| Primary button | 7.17:1 | AAA |
| Secondary button | 8.50:1 | AAA |
| Muted text | 9.47:1 | AAA |
| Accent | 8.24:1 | AAA |
| Destructive | 3.68:1 | AA Large |
Paste this into your globals.css to use Wisteria in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.993 0.009 111.184);
--foreground: oklch(0.166 0.023 113.106);
--muted: oklch(0.945 0.008 111.165);
--muted-foreground: oklch(0.414 0.016 111.742);
--popover: oklch(0.993 0.009 111.184);
--popover-foreground: oklch(0.166 0.023 113.106);
--card: oklch(0.993 0.009 111.184);
--card-foreground: oklch(0.166 0.023 113.106);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.725 0.13 114.473);
--primary-foreground: oklch(0.224 0.031 113.586);
--secondary: oklch(0.878 0.001 111.037);
--secondary-foreground: oklch(0.363 0.002 111.121);
--accent: oklch(0.834 0.014 111.338);
--accent-foreground: oklch(0.303 0.014 111.85);
--destructive: oklch(0.357 0.14 28.824);
--destructive-foreground: oklch(0.833 0.086 20.141);
--ring: oklch(0.725 0.13 114.473);
--chart-1: oklch(0.725 0.13 114.473);
--chart-2: oklch(0.878 0.001 111.037);
--chart-3: oklch(0.834 0.014 111.338);
--chart-4: oklch(0.901 0.001 111.032);
--chart-5: oklch(0.735 0.136 114.633);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.103 0.014 112.343);
--foreground: oklch(0.986 0.001 111.039);
--muted: oklch(0.203 0.011 112.017);
--muted-foreground: oklch(0.793 0.014 111.341);
--popover: oklch(0.103 0.014 112.343);
--popover-foreground: oklch(0.986 0.001 111.039);
--card: oklch(0.103 0.014 112.343);
--card-foreground: oklch(0.986 0.001 111.039);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.725 0.13 114.473);
--primary-foreground: oklch(0.224 0.031 113.586);
--secondary: oklch(0.197 0.005 111.468);
--secondary-foreground: oklch(0.761 0.014 111.351);
--accent: oklch(0.3 0.021 112.321);
--accent-foreground: oklch(0.836 0.025 111.572);
--destructive: oklch(0.643 0.219 26.655);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.725 0.13 114.473);
--chart-1: oklch(0.725 0.13 114.473);
--chart-2: oklch(0.197 0.005 111.468);
--chart-3: oklch(0.3 0.021 112.321);
--chart-4: oklch(0.232 0.006 111.522);
--chart-5: oklch(0.735 0.136 114.633);
}