Wilted is a shadcn/ui theme built around a vivid green primary color (#71ec41) with muted light green accents (#c2d3bb). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid green primary (#71ec41) on a green-tinted background (#081004).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #081004black |
| Foreground | #000000black | #fcfdfcwhite |
| Card | #ffffffwhite | #081004black |
| Card foreground | #000000black | #fcfdfcwhite |
| Popover | #ffffffwhite | #081004black |
| Popover foreground | #000000black | #fcfdfcwhite |
| Primary | #71ec41yellowgreen | #71ec41yellowgreen |
| Primary foreground | #000000black | #000000black |
| Secondary | #d7ded4gainsboro | #252923darkslategray |
| Secondary foreground | #3c4837darkslategray | #bdc4basilver |
| Muted | #eaece9linen | #141613black |
| Muted foreground | #596156dimgray | #a1a99edarkgray |
| Accent | #c2d3bbsilver | #354030darkslategray |
| Accent foreground | #2a3824darkslategray | #ced8cblightgrey |
| Destructive | #ac1302firebrick | #fd321corangered |
| Destructive foreground | #ffe4e1mistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #71ec41yellowgreen | #71ec41yellowgreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 21.00:1 | AAA |
| Text on card | 21.00:1 | AAA |
| Primary button | 13.80:1 | AAA |
| Secondary button | 7.01:1 | AAA |
| Muted text | 5.41:1 | AA |
| Accent | 7.89:1 | AAA |
| Destructive | 6.14:1 | AA |
| Text on background | 18.96:1 | AAA |
| Text on card | 18.96:1 | AAA |
| Primary button | 13.80:1 | AAA |
| Secondary button | 8.26:1 | AAA |
| Muted text | 7.52:1 | AAA |
| Accent | 7.43:1 | AAA |
| Destructive | 3.72:1 | AA Large |
Paste this into your globals.css to use Wilted in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0 0 0);
--muted: oklch(0.941 0.006 136.627);
--muted-foreground: oklch(0.483 0.02 136.735);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0 0 0);
--card: oklch(1 0 180);
--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.841 0.232 138.509);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.891 0.015 136.661);
--secondary-foreground: oklch(0.386 0.031 136.875);
--accent: oklch(0.847 0.039 136.75);
--accent-foreground: oklch(0.321 0.04 137.048);
--destructive: oklch(0.473 0.185 30.572);
--destructive-foreground: oklch(0.939 0.03 25.281);
--ring: oklch(0.841 0.232 138.509);
--chart-1: oklch(0.841 0.232 138.509);
--chart-2: oklch(0.891 0.015 136.661);
--chart-3: oklch(0.847 0.039 136.75);
--chart-4: oklch(0.913 0.012 136.649);
--chart-5: oklch(0.848 0.238 138.609);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.16 0.029 135.669);
--foreground: oklch(0.993 0.002 136.615);
--muted: oklch(0.197 0.008 136.739);
--muted-foreground: oklch(0.724 0.018 136.684);
--popover: oklch(0.16 0.029 135.669);
--popover-foreground: oklch(0.993 0.002 136.615);
--card: oklch(0.16 0.029 135.669);
--card-foreground: oklch(0.993 0.002 136.615);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.841 0.232 138.509);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.276 0.013 136.752);
--secondary-foreground: oklch(0.813 0.016 136.669);
--accent: oklch(0.356 0.03 136.889);
--accent-foreground: oklch(0.87 0.02 136.678);
--destructive: oklch(0.643 0.238 30.519);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.841 0.232 138.509);
--chart-1: oklch(0.841 0.232 138.509);
--chart-2: oklch(0.276 0.013 136.752);
--chart-3: oklch(0.356 0.03 136.889);
--chart-4: oklch(0.308 0.015 136.758);
--chart-5: oklch(0.848 0.238 138.609);
}