Winding is a shadcn/ui theme built around a vivid green primary color (#98f278) with vivid violet accents (#d278f2). The light mode uses a neutral background (#f8fdf7). Dark mode keeps the vivid green primary (#98f278) on a neutral background (#020302).
| Token | Light | Dark |
|---|---|---|
| Background | #f8fdf7mintcream | #020302black |
| Foreground | #020401black | #f9fbf9mintcream |
| Card | #f5fcf2honeydew | #040703black |
| Card foreground | #000000black | #fcfdfcwhite |
| Popover | #f5fcf2honeydew | #040703black |
| Popover foreground | #000000black | #fcfdfcwhite |
| Primary | #98f278lightgreen | #98f278lightgreen |
| Primary foreground | #113305darkgreen | #113305darkgreen |
| Secondary | #d278f2violet | #d278f2violet |
| Secondary foreground | #270533black | #270533black |
| Muted | #e6e4e7gainsboro | #1a181bblack |
| Muted foreground | #584d5cdimgray | #aea3b2darkgray |
| Accent | #d278f2violet | #d278f2violet |
| Accent foreground | #270533black | #270533black |
| Destructive | #5d1709maroon | #ee6144tomato |
| Destructive foreground | #f6b0a2lightpink | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #98f278lightgreen | #98f278lightgreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.01:1 | AAA |
| Text on card | 20.14:1 | AAA |
| Primary button | 10.24:1 | AAA |
| Secondary button | 6.65:1 | AA |
| Muted text | 6.30:1 | AA |
| Accent | 6.65:1 | AA |
| Destructive | 7.31:1 | AAA |
| Text on background | 19.82:1 | AAA |
| Text on card | 19.85:1 | AAA |
| Primary button | 10.24:1 | AAA |
| Secondary button | 6.65:1 | AA |
| Muted text | 7.30:1 | AAA |
| Accent | 6.65:1 | AA |
| Destructive | 6.40:1 | AA |
Paste this into your globals.css to use Winding in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.989 0.01 137.214);
--foreground: oklch(0.099 0.016 135.571);
--muted: oklch(0.921 0.006 317.176);
--muted-foreground: oklch(0.435 0.028 317.041);
--popover: oklch(0.984 0.015 137.226);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.984 0.015 137.226);
--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.879 0.181 137.982);
--primary-foreground: oklch(0.286 0.082 138.775);
--secondary: oklch(0.717 0.192 316.374);
--secondary-foreground: oklch(0.21 0.09 315.202);
--accent: oklch(0.717 0.192 316.374);
--accent-foreground: oklch(0.21 0.09 315.202);
--destructive: oklch(0.322 0.105 33.137);
--destructive-foreground: oklch(0.819 0.086 31.614);
--ring: oklch(0.879 0.181 137.982);
--chart-1: oklch(0.879 0.181 137.982);
--chart-2: oklch(0.717 0.192 316.374);
--chart-3: oklch(0.717 0.192 316.374);
--chart-4: oklch(0.743 0.173 316.536);
--chart-5: oklch(0.883 0.186 138.023);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.096 0.011 136.094);
--foreground: oklch(0.986 0.003 137.196);
--muted: oklch(0.212 0.008 317.104);
--muted-foreground: oklch(0.73 0.025 317.112);
--popover: oklch(0.121 0.014 136.094);
--popover-foreground: oklch(0.993 0.001 137.193);
--card: oklch(0.121 0.014 136.094);
--card-foreground: oklch(0.993 0.001 137.193);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.879 0.181 137.982);
--primary-foreground: oklch(0.286 0.082 138.775);
--secondary: oklch(0.717 0.192 316.374);
--secondary-foreground: oklch(0.21 0.09 315.202);
--accent: oklch(0.717 0.192 316.374);
--accent-foreground: oklch(0.21 0.09 315.202);
--destructive: oklch(0.667 0.18 33.123);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.879 0.181 137.982);
--chart-1: oklch(0.879 0.181 137.982);
--chart-2: oklch(0.717 0.192 316.374);
--chart-3: oklch(0.717 0.192 316.374);
--chart-4: oklch(0.743 0.173 316.536);
--chart-5: oklch(0.883 0.186 138.023);
}