Cool is a shadcn/ui theme built around a cyan primary color (#32646c) with red accents (#6c3b32). The light mode uses a neutral background (#f8fbfc). Dark mode keeps the cyan primary (#32646c) on a cyan-tinted background (#050e10).
| Token | Light | Dark |
|---|---|---|
| Background | #f8fbfcghostwhite | #050e10black |
| Foreground | #030b0cblack | #ffffffwhite |
| Card | #f8fbfcghostwhite | #050e10black |
| Card foreground | #030b0cblack | #ffffffwhite |
| Popover | #f8fbfcghostwhite | #050e10black |
| Popover foreground | #030b0cblack | #ffffffwhite |
| Primary | #32646cdarkslategray | #32646cdarkslategray |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #6c3b32saddlebrown | #6c3b32saddlebrown |
| Secondary foreground | #f1e2e0mistyrose | #f1e2e0mistyrose |
| Muted | #e7cfcalightgrey | #351c18black |
| Muted foreground | #453c3bdarkslategray | #c4bcbasilver |
| Accent | #6c3b32saddlebrown | #6c3b32saddlebrown |
| Accent foreground | #f1e2e0mistyrose | #f1e2e0mistyrose |
| Destructive | #791f0bmaroon | #ee6344tomato |
| Destructive foreground | #f9c9bepink | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #32646cdarkslategray | #32646cdarkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.12:1 | AAA |
| Text on card | 19.12:1 | AAA |
| Primary button | 6.65:1 | AA |
| Secondary button | 7.24:1 | AAA |
| Muted text | 7.20:1 | AAA |
| Accent | 7.24:1 | AAA |
| Destructive | 6.98:1 | AA |
| Text on background | 19.51:1 | AAA |
| Text on card | 19.51:1 | AAA |
| Primary button | 6.65:1 | AA |
| Secondary button | 7.24:1 | AAA |
| Muted text | 8.45:1 | AAA |
| Accent | 7.24:1 | AAA |
| Destructive | 6.50:1 | AA |
Paste this into your globals.css to use Cool in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.986 0.003 209.46);
--foreground: oklch(0.14 0.016 206.805);
--muted: oklch(0.872 0.028 29.614);
--muted-foreground: oklch(0.365 0.012 29.622);
--popover: oklch(0.986 0.003 209.46);
--popover-foreground: oklch(0.14 0.016 206.805);
--card: oklch(0.986 0.003 209.46);
--card-foreground: oklch(0.14 0.016 206.805);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.471 0.055 210.339);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.41 0.072 31.011);
--secondary-foreground: oklch(0.924 0.016 29.535);
--accent: oklch(0.41 0.072 31.011);
--accent-foreground: oklch(0.924 0.016 29.535);
--destructive: oklch(0.386 0.128 33.748);
--destructive-foreground: oklch(0.874 0.057 32.83);
--ring: oklch(0.471 0.055 210.339);
--chart-1: oklch(0.471 0.055 210.339);
--chart-2: oklch(0.41 0.072 31.011);
--chart-3: oklch(0.41 0.072 31.011);
--chart-4: oklch(0.437 0.078 31.041);
--chart-5: oklch(0.475 0.059 210.516);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.155 0.016 208.466);
--foreground: oklch(1 0 180);
--muted: oklch(0.259 0.04 30.762);
--muted-foreground: oklch(0.801 0.01 29.513);
--popover: oklch(0.155 0.016 208.466);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.155 0.016 208.466);
--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.471 0.055 210.339);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.41 0.072 31.011);
--secondary-foreground: oklch(0.924 0.016 29.535);
--accent: oklch(0.41 0.072 31.011);
--accent-foreground: oklch(0.924 0.016 29.535);
--destructive: oklch(0.67 0.178 34.141);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.471 0.055 210.339);
--chart-1: oklch(0.471 0.055 210.339);
--chart-2: oklch(0.41 0.072 31.011);
--chart-3: oklch(0.41 0.072 31.011);
--chart-4: oklch(0.437 0.078 31.041);
--chart-5: oklch(0.475 0.059 210.516);
}