Winding is a shadcn/ui theme built around a neutral gray primary color (#585b57) with neutral gray accents (#5b575b). The light mode uses a neutral background (#fcfdfb). Dark mode keeps the neutral gray primary (#585b57) on a neutral background (#030703).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfdfbsnow | #030703black |
| Foreground | #010401black | #f9fbf9mintcream |
| Card | #fcfdfbsnow | #030703black |
| Card foreground | #010401black | #f9fbf9mintcream |
| Popover | #fcfdfbsnow | #030703black |
| Popover foreground | #010401black | #f9fbf9mintcream |
| Primary | #585b57dimgray | #585b57dimgray |
| Primary foreground | #f2f3f2whitesmoke | #f2f3f2whitesmoke |
| Secondary | #5b575bdimgray | #5b575bdimgray |
| Secondary foreground | #f2f2f3whitesmoke | #f2f2f3whitesmoke |
| Muted | #ece9eclavender | #161316black |
| Muted foreground | #5f4d60dimgray | #b09fb2darkgray |
| Accent | #5b575bdimgray | #5b575bdimgray |
| Accent foreground | #f2f2f3whitesmoke | #f2f2f3whitesmoke |
| Destructive | #5c0e0amaroon | #e6241acrimson |
| Destructive foreground | #f5a7a3lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #585b57dimgray | #585b57dimgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.24:1 | AAA |
| Text on card | 20.24:1 | AAA |
| Primary button | 6.19:1 | AA |
| Secondary button | 6.31:1 | AA |
| Muted text | 6.42:1 | AA |
| Accent | 6.31:1 | AA |
| Destructive | 7.18:1 | AAA |
| Text on background | 19.47:1 | AAA |
| Text on card | 19.47:1 | AAA |
| Primary button | 6.19:1 | AA |
| Secondary button | 6.31:1 | AA |
| Muted text | 7.42:1 | AAA |
| Accent | 6.31:1 | AA |
| Destructive | 4.55:1 | AA |
Paste this into your globals.css to use Winding in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.993 0.003 143.119);
--foreground: oklch(0.098 0.021 141.201);
--muted: oklch(0.937 0.005 323.158);
--muted-foreground: oklch(0.446 0.038 323.511);
--popover: oklch(0.993 0.003 143.119);
--popover-foreground: oklch(0.098 0.021 141.201);
--card: oklch(0.993 0.003 143.119);
--card-foreground: oklch(0.098 0.021 141.201);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.467 0.007 143.064);
--primary-foreground: oklch(0.962 0.001 143.13);
--secondary: oklch(0.463 0.007 323.204);
--secondary-foreground: oklch(0.962 0.001 323.138);
--accent: oklch(0.463 0.007 323.204);
--accent-foreground: oklch(0.962 0.001 323.138);
--destructive: oklch(0.31 0.11 28.58);
--destructive-foreground: oklch(0.803 0.092 22.664);
--ring: oklch(0.467 0.007 143.064);
--chart-1: oklch(0.467 0.007 143.064);
--chart-2: oklch(0.463 0.007 323.204);
--chart-3: oklch(0.463 0.007 323.204);
--chart-4: oklch(0.49 0.008 323.205);
--chart-5: oklch(0.471 0.017 142.96);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.121 0.017 141.854);
--foreground: oklch(0.986 0.003 143.119);
--muted: oklch(0.191 0.007 323.302);
--muted-foreground: oklch(0.723 0.034 323.345);
--popover: oklch(0.121 0.017 141.854);
--popover-foreground: oklch(0.986 0.003 143.119);
--card: oklch(0.121 0.017 141.854);
--card-foreground: oklch(0.986 0.003 143.119);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.467 0.007 143.064);
--primary-foreground: oklch(0.962 0.001 143.13);
--secondary: oklch(0.463 0.007 323.204);
--secondary-foreground: oklch(0.962 0.001 323.138);
--accent: oklch(0.463 0.007 323.204);
--accent-foreground: oklch(0.962 0.001 323.138);
--destructive: oklch(0.592 0.226 29.221);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.467 0.007 143.064);
--chart-1: oklch(0.467 0.007 143.064);
--chart-2: oklch(0.463 0.007 323.204);
--chart-3: oklch(0.463 0.007 323.204);
--chart-4: oklch(0.49 0.008 323.205);
--chart-5: oklch(0.471 0.017 142.96);
}