Cirrus is a shadcn/ui theme built around a near-white primary color (#fefdfb) with near-white accents (#fbfcfe). The light mode uses a neutral background (#fdfcf7). Dark mode keeps the near-white primary (#fefdfb) on a yellow-tinted background (#0b0a04).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfcf7snow | #0b0a04black |
| Foreground | #000000black | #ffffffwhite |
| Card | #fcfaf3floralwhite | #0f0d05black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #fdfcf7snow | #0b0a04black |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #fefdfbsnow | #fefdfbsnow |
| Primary foreground | #494018darkolivegreen | #494018darkolivegreen |
| Secondary | #fbfcfewhite | #fbfcfewhite |
| Secondary foreground | #314396darkslateblue | #314396darkslateblue |
| Muted | #dadce7gainsboro | #181b25black |
| Muted foreground | #5c5c5cdimgray | #a3a3a3darkgray |
| Accent | #fbfcfewhite | #fbfcfewhite |
| Accent foreground | #314396darkslateblue | #314396darkslateblue |
| Destructive | #642107maroon | #f05d24chocolate |
| Destructive foreground | #f9bca4lightpink | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #fefdfbsnow | #fefdfbsnow |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.40:1 | AAA |
| Text on card | 20.11:1 | AAA |
| Primary button | 10.19:1 | AAA |
| Secondary button | 8.59:1 | AAA |
| Muted text | 4.90:1 | AA |
| Accent | 8.59:1 | AAA |
| Destructive | 7.21:1 | AAA |
| Text on background | 19.81:1 | AAA |
| Text on card | 19.40:1 | AAA |
| Primary button | 10.19:1 | AAA |
| Secondary button | 8.59:1 | AAA |
| Muted text | 6.83:1 | AA |
| Accent | 8.59:1 | AAA |
| Destructive | 6.30:1 | AA |
Paste this into your globals.css to use Cirrus in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.99 0.006 96.247);
--foreground: oklch(0 0 0);
--muted: oklch(0.897 0.015 275.95);
--muted-foreground: oklch(0.474 0 198.435);
--popover: oklch(0.99 0.006 96.247);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.985 0.01 96.288);
--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.995 0.003 96.201);
--primary-foreground: oklch(0.372 0.059 96.725);
--secondary: oklch(0.99 0.003 276.128);
--secondary-foreground: oklch(0.418 0.137 269.953);
--accent: oklch(0.99 0.003 276.128);
--accent-foreground: oklch(0.418 0.137 269.953);
--destructive: oklch(0.348 0.103 39.365);
--destructive-foreground: oklch(0.845 0.077 42.553);
--ring: oklch(0.995 0.003 96.201);
--chart-1: oklch(0.995 0.003 96.201);
--chart-2: oklch(0.99 0.003 276.128);
--chart-3: oklch(0.99 0.003 276.128);
--chart-4: oklch(1.02 0.006 96.235);
--chart-5: oklch(0.995 0.003 96.204);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.144 0.016 99.499);
--foreground: oklch(1 0 180);
--muted: oklch(0.223 0.021 274.747);
--muted-foreground: oklch(0.716 0 165.964);
--popover: oklch(0.144 0.016 99.499);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.16 0.018 98.199);
--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.995 0.003 96.201);
--primary-foreground: oklch(0.372 0.059 96.725);
--secondary: oklch(0.99 0.003 276.128);
--secondary-foreground: oklch(0.418 0.137 269.953);
--accent: oklch(0.99 0.003 276.128);
--accent-foreground: oklch(0.418 0.137 269.953);
--destructive: oklch(0.663 0.192 39.489);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.995 0.003 96.201);
--chart-1: oklch(0.995 0.003 96.201);
--chart-2: oklch(0.99 0.003 276.128);
--chart-3: oklch(0.99 0.003 276.128);
--chart-4: oklch(1.02 0.006 96.235);
--chart-5: oklch(0.995 0.003 96.204);
}