Winter is a shadcn/ui theme built around a light green primary color (#e5ecd9) with light violet accents (#e0d9ec). The light mode uses a neutral background (#ffffff). Dark mode keeps the light green primary (#e5ecd9) on a green-tinted background (#0b0e07).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #0b0e07black |
| Foreground | #090c04black | #fdfdfcwhite |
| Card | #ffffffwhite | #0b0e07black |
| Card foreground | #090c04black | #fdfdfcwhite |
| Popover | #ffffffwhite | #0b0e07black |
| Popover foreground | #090c04black | #fdfdfcwhite |
| Primary | #e5ecd9gainsboro | #e5ecd9gainsboro |
| Primary foreground | #191f0fblack | #191f0fblack |
| Secondary | #e0d9ecgainsboro | #e0d9ecgainsboro |
| Secondary foreground | #433163darkslategray | #433163darkslategray |
| Muted | #ece9f1lavender | #110e16black |
| Muted foreground | #5b506ddimgray | #9d92afdarkgray |
| Accent | #e0d9ecgainsboro | #e0d9ecgainsboro |
| Accent foreground | #433163darkslategray | #433163darkslategray |
| Destructive | #682303maroon | #f45106orangered |
| Destructive foreground | #fdbea1lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #e5ecd9gainsboro | #e5ecd9gainsboro |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.70:1 | AAA |
| Text on card | 19.70:1 | AAA |
| Primary button | 13.99:1 | AAA |
| Secondary button | 8.27:1 | AAA |
| Muted text | 6.21:1 | AA |
| Accent | 8.27:1 | AAA |
| Destructive | 7.11:1 | AAA |
| Text on background | 19.12:1 | AAA |
| Text on card | 19.12:1 | AAA |
| Primary button | 13.99:1 | AAA |
| Secondary button | 8.27:1 | AAA |
| Muted text | 6.53:1 | AA |
| Accent | 8.27:1 | AAA |
| Destructive | 3.48:1 | AA Large |
Paste this into your globals.css to use Winter in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.146 0.021 122.662);
--muted: oklch(0.939 0.012 302.735);
--muted-foreground: oklch(0.453 0.047 301.325);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.146 0.021 122.662);
--card: oklch(1 0 180);
--card-foreground: oklch(0.146 0.021 122.662);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.934 0.026 123.363);
--primary-foreground: oklch(0.227 0.03 125.079);
--secondary: oklch(0.898 0.027 302.473);
--secondary-foreground: oklch(0.358 0.086 298.914);
--accent: oklch(0.898 0.027 302.473);
--accent-foreground: oklch(0.358 0.086 298.914);
--destructive: oklch(0.358 0.107 41.015);
--destructive-foreground: oklch(0.851 0.083 45.961);
--ring: oklch(0.934 0.026 123.363);
--chart-1: oklch(0.934 0.026 123.363);
--chart-2: oklch(0.898 0.027 302.473);
--chart-3: oklch(0.898 0.027 302.473);
--chart-4: oklch(0.926 0.019 302.61);
--chart-5: oklch(0.936 0.029 123.4);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.157 0.016 123.745);
--foreground: oklch(0.993 0.001 122.942);
--muted: oklch(0.17 0.018 301.273);
--muted-foreground: oklch(0.68 0.043 301.97);
--popover: oklch(0.157 0.016 123.745);
--popover-foreground: oklch(0.993 0.001 122.942);
--card: oklch(0.157 0.016 123.745);
--card-foreground: oklch(0.993 0.001 122.942);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.934 0.026 123.363);
--primary-foreground: oklch(0.227 0.03 125.079);
--secondary: oklch(0.898 0.027 302.473);
--secondary-foreground: oklch(0.358 0.086 298.914);
--accent: oklch(0.898 0.027 302.473);
--accent-foreground: oklch(0.358 0.086 298.914);
--destructive: oklch(0.654 0.209 38.586);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.934 0.026 123.363);
--chart-1: oklch(0.934 0.026 123.363);
--chart-2: oklch(0.898 0.027 302.473);
--chart-3: oklch(0.898 0.027 302.473);
--chart-4: oklch(0.926 0.019 302.61);
--chart-5: oklch(0.936 0.029 123.4);
}