Cool Zaffre is a shadcn/ui theme built around a vivid blue primary color (#0014a8) with vivid violet accents (#4100a8). The light mode uses a neutral background (#f7f8fd). Dark mode keeps the vivid blue primary (#0014a8) on a blue-tinted background (#050610).
| Token | Light | Dark |
|---|---|---|
| Background | #f7f8fdghostwhite | #050610black |
| Foreground | #010204black | #f8f8fcghostwhite |
| Card | #f7f8fdghostwhite | #050610black |
| Card foreground | #010204black | #f8f8fcghostwhite |
| Popover | #f7f8fdghostwhite | #050610black |
| Popover foreground | #010204black | #f8f8fcghostwhite |
| Primary | #0014a8darkblue | #0014a8darkblue |
| Primary foreground | #dbdffflavender | #dbdffflavender |
| Secondary | #0068a8darkcyan | #0068a8darkcyan |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #e3e6e8gainsboro | #171a1cblack |
| Muted foreground | #4c5052darkslategray | #adb1b3darkgray |
| Accent | #4100a8indigo | #4100a8indigo |
| Accent foreground | #e9dbfflavender | #e9dbfflavender |
| Destructive | #791f0bmaroon | #ec5836tomato |
| Destructive foreground | #f9c9bepink | #000000black |
| Border | #e2e2e4gainsboro | #222225black |
| Input | #e2e2e4gainsboro | #222225black |
| Ring | #0014a8darkblue | #0014a8darkblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.50:1 | AAA |
| Text on card | 19.50:1 | AAA |
| Primary button | 9.61:1 | AAA |
| Secondary button | 5.93:1 | AA |
| Muted text | 6.50:1 | AA |
| Accent | 8.96:1 | AAA |
| Destructive | 6.98:1 | AA |
| Text on background | 19.06:1 | AAA |
| Text on card | 19.06:1 | AAA |
| Primary button | 9.61:1 | AAA |
| Secondary button | 5.93:1 | AA |
| Muted text | 8.08:1 | AAA |
| Accent | 8.96:1 | AAA |
| Destructive | 6.01:1 | AA |
Paste this into your globals.css to use Cool Zaffre in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.979 0.007 280.213);
--foreground: oklch(0.08 0.013 274.807);
--muted: oklch(0.923 0.005 234.58);
--muted-foreground: oklch(0.428 0.006 234.726);
--popover: oklch(0.979 0.007 280.213);
--popover-foreground: oklch(0.08 0.013 274.807);
--card: oklch(0.979 0.007 280.213);
--card-foreground: oklch(0.08 0.013 274.807);
--border: oklch(0.913 0.003 280.273);
--input: oklch(0.913 0.003 280.273);
--primary: oklch(0.344 0.221 264.208);
--primary-foreground: oklch(0.912 0.043 279.547);
--secondary: oklch(0.501 0.13 246.281);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.369 0.215 285.33);
--accent-foreground: oklch(0.914 0.05 302.827);
--destructive: oklch(0.386 0.128 33.748);
--destructive-foreground: oklch(0.874 0.057 32.83);
--ring: oklch(0.344 0.221 264.208);
--chart-1: oklch(0.344 0.221 264.208);
--chart-2: oklch(0.501 0.13 246.281);
--chart-3: oklch(0.369 0.215 285.33);
--chart-4: oklch(0.534 0.139 246.519);
--chart-5: oklch(0.345 0.225 263.822);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.127 0.023 274.963);
--foreground: oklch(0.981 0.004 280.262);
--muted: oklch(0.216 0.007 234.979);
--muted-foreground: oklch(0.757 0.006 234.612);
--popover: oklch(0.127 0.023 274.963);
--popover-foreground: oklch(0.981 0.004 280.262);
--card: oklch(0.127 0.023 274.963);
--card-foreground: oklch(0.981 0.004 280.262);
--border: oklch(0.254 0.006 279.957);
--input: oklch(0.254 0.006 279.957);
--primary: oklch(0.344 0.221 264.208);
--primary-foreground: oklch(0.912 0.043 279.547);
--secondary: oklch(0.501 0.13 246.281);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.369 0.215 285.33);
--accent-foreground: oklch(0.914 0.05 302.827);
--destructive: oklch(0.652 0.19 34.13);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.344 0.221 264.208);
--chart-1: oklch(0.344 0.221 264.208);
--chart-2: oklch(0.501 0.13 246.281);
--chart-3: oklch(0.369 0.215 285.33);
--chart-4: oklch(0.534 0.139 246.519);
--chart-5: oklch(0.345 0.225 263.822);
}