Winter is a shadcn/ui theme built around a deep red primary color (#601012) with deep indigo accents (#101260). The light mode uses a neutral background (#fcf8f8). Dark mode keeps the deep red primary (#601012) on a neutral background (#040101).
| Token | Light | Dark |
|---|---|---|
| Background | #fcf8f8snow | #040101black |
| Foreground | #040101black | #fdfbfbsnow |
| Card | #fcf8f8snow | #040101black |
| Card foreground | #040101black | #fdfbfbsnow |
| Popover | #fcf8f8snow | #040101black |
| Popover foreground | #040101black | #fdfbfbsnow |
| Primary | #601012maroon | #601012maroon |
| Primary foreground | #f2b0b2lightpink | #f2b0b2lightpink |
| Secondary | #126010darkgreen | #126010darkgreen |
| Secondary foreground | #b2f2b0palegreen | #b2f2b0palegreen |
| Muted | #d7e5d7gainsboro | #1a281ablack |
| Muted foreground | #404a3fdarkslategray | #b5c0b5silver |
| Accent | #101260midnightblue | #101260midnightblue |
| Accent foreground | #b0b2f2lightsteelblue | #b0b2f2lightsteelblue |
| Destructive | #950909darkred | #f32b2bcrimson |
| Destructive foreground | #fcd4d4mistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #601012maroon | #601012maroon |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.72:1 | AAA |
| Text on card | 19.72:1 | AAA |
| Primary button | 7.34:1 | AAA |
| Secondary button | 5.95:1 | AA |
| Muted text | 7.09:1 | AAA |
| Accent | 8.19:1 | AAA |
| Destructive | 6.66:1 | AA |
| Text on background | 20.14:1 | AAA |
| Text on card | 20.14:1 | AAA |
| Primary button | 7.34:1 | AAA |
| Secondary button | 5.95:1 | AA |
| Muted text | 8.15:1 | AAA |
| Accent | 8.19:1 | AAA |
| Destructive | 4.05:1 | AA Large |
Paste this into your globals.css to use Winter in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.982 0.004 14.867);
--foreground: oklch(0.083 0.013 17.115);
--muted: oklch(0.908 0.025 144.442);
--muted-foreground: oklch(0.397 0.023 144.24);
--popover: oklch(0.982 0.004 14.867);
--popover-foreground: oklch(0.083 0.013 17.115);
--card: oklch(0.982 0.004 14.867);
--card-foreground: oklch(0.083 0.013 17.115);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.322 0.113 24.928);
--primary-foreground: oklch(0.82 0.078 16.679);
--secondary: oklch(0.429 0.134 142.471);
--secondary-foreground: oklch(0.902 0.11 143.795);
--accent: oklch(0.254 0.133 270.621);
--accent-foreground: oklch(0.786 0.091 282.567);
--destructive: oklch(0.425 0.169 28.552);
--destructive-foreground: oklch(0.903 0.046 18.035);
--ring: oklch(0.322 0.113 24.928);
--chart-1: oklch(0.322 0.113 24.928);
--chart-2: oklch(0.429 0.134 142.471);
--chart-3: oklch(0.254 0.133 270.621);
--chart-4: oklch(0.469 0.147 142.458);
--chart-5: oklch(0.324 0.117 25.371);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.083 0.013 17.183);
--foreground: oklch(0.991 0.002 14.831);
--muted: oklch(0.261 0.033 143.761);
--muted-foreground: oklch(0.795 0.019 144.461);
--popover: oklch(0.083 0.013 17.183);
--popover-foreground: oklch(0.991 0.002 14.831);
--card: oklch(0.083 0.013 17.183);
--card-foreground: oklch(0.991 0.002 14.831);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.322 0.113 24.928);
--primary-foreground: oklch(0.82 0.078 16.679);
--secondary: oklch(0.429 0.134 142.471);
--secondary-foreground: oklch(0.902 0.11 143.795);
--accent: oklch(0.254 0.133 270.621);
--accent-foreground: oklch(0.786 0.091 282.567);
--destructive: oklch(0.621 0.232 27.332);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.322 0.113 24.928);
--chart-1: oklch(0.322 0.113 24.928);
--chart-2: oklch(0.429 0.134 142.471);
--chart-3: oklch(0.254 0.133 270.621);
--chart-4: oklch(0.469 0.147 142.458);
--chart-5: oklch(0.324 0.117 25.371);
}