Cool is a shadcn/ui theme built around a red primary color (#702f29) with cyan accents (#296a70). The light mode uses a neutral background (#ffffff). Dark mode keeps the red primary (#702f29) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #160504black | #f9f6f6whitesmoke |
| Card | #fcfcfcsnow | #030303black |
| Card foreground | #110403black | #fbf9f9snow |
| Popover | #fcfcfcsnow | #030303black |
| Popover foreground | #110403black | #fbf9f9snow |
| Primary | #702f29saddlebrown | #702f29saddlebrown |
| Primary foreground | #f1dcdamistyrose | #f1dcdamistyrose |
| Secondary | #296a70seagreen | #296a70seagreen |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #dce9eagainsboro | #152223black |
| Muted foreground | #434f51darkslategray | #aebbbcsilver |
| Accent | #296a70seagreen | #296a70seagreen |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #d41811firebrick | #ed231dcrimson |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #702f29saddlebrown | #702f29saddlebrown |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.85:1 | AAA |
| Text on card | 19.71:1 | AAA |
| Primary button | 7.52:1 | AAA |
| Secondary button | 6.15:1 | AA |
| Muted text | 6.81:1 | AA |
| Accent | 6.15:1 | AA |
| Destructive | 5.32:1 | AA |
| Text on background | 19.54:1 | AAA |
| Text on card | 19.71:1 | AAA |
| Primary button | 7.52:1 | AAA |
| Secondary button | 6.15:1 | AA |
| Muted text | 8.26:1 | AAA |
| Accent | 6.15:1 | AA |
| Destructive | 4.32:1 | AA Large |
Paste this into your globals.css to use Cool in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.146 0.033 29.654);
--muted: oklch(0.924 0.014 203.444);
--muted-foreground: oklch(0.419 0.016 203.284);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0.133 0.028 30.066);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.133 0.028 30.066);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.394 0.095 27.451);
--primary-foreground: oklch(0.91 0.025 23.861);
--secondary: oklch(0.487 0.066 203.534);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.487 0.066 203.534);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.554 0.217 29.063);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.394 0.095 27.451);
--chart-1: oklch(0.394 0.095 27.451);
--chart-2: oklch(0.487 0.066 203.534);
--chart-3: oklch(0.487 0.066 203.534);
--chart-4: oklch(0.521 0.071 203.556);
--chart-5: oklch(0.395 0.101 27.757);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.975 0.003 23.616);
--muted: oklch(0.241 0.019 203.125);
--muted-foreground: oklch(0.782 0.014 203.428);
--popover: oklch(0.092 0 180);
--popover-foreground: oklch(0.983 0.002 23.604);
--card: oklch(0.092 0 180);
--card-foreground: oklch(0.983 0.002 23.604);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.394 0.095 27.451);
--primary-foreground: oklch(0.91 0.025 23.861);
--secondary: oklch(0.487 0.066 203.534);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.487 0.066 203.534);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.605 0.232 28.794);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.394 0.095 27.451);
--chart-1: oklch(0.394 0.095 27.451);
--chart-2: oklch(0.487 0.066 203.534);
--chart-3: oklch(0.487 0.066 203.534);
--chart-4: oklch(0.521 0.071 203.556);
--chart-5: oklch(0.395 0.101 27.757);
}