Whirlwind is a shadcn/ui theme built around a neutral gray primary color (#868c82) with neutral gray accents (#88828c). The light mode uses a neutral background (#fcfefb). Dark mode keeps the neutral gray primary (#868c82) on a green-tinted background (#070a05).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfefbwhite | #070a05black |
| Foreground | #070d02black | #ffffffwhite |
| Card | #f9fdf6mintcream | #0a0e07black |
| Card foreground | #050902black | #ffffffwhite |
| Popover | #f9fdf6mintcream | #0a0e07black |
| Popover foreground | #050902black | #ffffffwhite |
| Primary | #868c82gray | #868c82gray |
| Primary foreground | #000000black | #000000black |
| Secondary | #88828cgray | #88828cgray |
| Secondary foreground | #000000black | #000000black |
| Muted | #dbcbe7thistle | #291834darkslategray |
| Muted foreground | #4e4356darkslategray | #b4a9bcdarkgray |
| Accent | #88828cgray | #88828cgray |
| Accent foreground | #000000black | #000000black |
| Destructive | #d5150bfirebrick | #e4170cred |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #868c82gray | #868c82gray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.42:1 | AAA |
| Text on card | 19.55:1 | AAA |
| Primary button | 6.09:1 | AA |
| Secondary button | 5.63:1 | AA |
| Muted text | 6.04:1 | AA |
| Accent | 5.63:1 | AA |
| Destructive | 5.31:1 | AA |
| Text on background | 19.88:1 | AAA |
| Text on card | 19.50:1 | AAA |
| Primary button | 6.09:1 | AA |
| Secondary button | 5.63:1 | AA |
| Muted text | 7.33:1 | AAA |
| Accent | 5.63:1 | AA |
| Destructive | 4.75:1 | AA |
Paste this into your globals.css to use Whirlwind in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.995 0.005 131.765);
--foreground: oklch(0.147 0.029 130.355);
--muted: oklch(0.863 0.042 311.329);
--muted-foreground: oklch(0.401 0.036 311.001);
--popover: oklch(0.99 0.01 131.806);
--popover-foreground: oklch(0.128 0.025 130.034);
--card: oklch(0.99 0.01 131.806);
--card-foreground: oklch(0.128 0.025 130.034);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.632 0.016 131.926);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.616 0.016 311.52);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.616 0.016 311.52);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.555 0.219 29.47);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.632 0.016 131.926);
--chart-1: oklch(0.632 0.016 131.926);
--chart-2: oklch(0.616 0.016 311.52);
--chart-3: oklch(0.616 0.016 311.52);
--chart-4: oklch(0.642 0.014 311.542);
--chart-5: oklch(0.639 0.027 132.076);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.14 0.015 130.818);
--foreground: oklch(1 0 180);
--muted: oklch(0.246 0.056 309.74);
--muted-foreground: oklch(0.749 0.031 311.393);
--popover: oklch(0.155 0.017 131.617);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.155 0.017 131.617);
--card-foreground: oklch(1 0 180);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.632 0.016 131.926);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.616 0.016 311.52);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.616 0.016 311.52);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.582 0.231 29.478);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.632 0.016 131.926);
--chart-1: oklch(0.632 0.016 131.926);
--chart-2: oklch(0.616 0.016 311.52);
--chart-3: oklch(0.616 0.016 311.52);
--chart-4: oklch(0.642 0.014 311.542);
--chart-5: oklch(0.639 0.027 132.076);
}