Cool is a shadcn/ui theme built around a neutral gray primary color (#a7aba6) with neutral gray accents (#aba6a7). The light mode uses a neutral background (#ffffff). Dark mode keeps the neutral gray primary (#a7aba6) on a neutral background (#040703).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #040703black |
| Foreground | #091603black | #fcfdfcwhite |
| Card | #fcfcfcsnow | #060b04black |
| Card foreground | #071202black | #ffffffwhite |
| Popover | #fcfcfcsnow | #060b04black |
| Popover foreground | #071202black | #ffffffwhite |
| Primary | #a7aba6darkgray | #a7aba6darkgray |
| Primary foreground | #0f100fblack | #0f100fblack |
| Secondary | #a6a7abdarkgray | #a6a7abdarkgray |
| Secondary foreground | #0f0f10black | #0f0f10black |
| Muted | #e6e9eflavender | #101219black |
| Muted foreground | #4c4f57darkslategray | #a8abb3darkgray |
| Accent | #aba6a7darkgray | #aba6a7darkgray |
| Accent foreground | #100f0fblack | #100f0fblack |
| Destructive | #642307maroon | #f06c33tomato |
| Destructive foreground | #f8bea5lightpink | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #a7aba6darkgray | #a7aba6darkgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.62:1 | AAA |
| Text on card | 18.74:1 | AAA |
| Primary button | 8.18:1 | AAA |
| Secondary button | 7.97:1 | AAA |
| Muted text | 6.71:1 | AA |
| Accent | 7.94:1 | AAA |
| Destructive | 7.23:1 | AAA |
| Text on background | 19.82:1 | AAA |
| Text on card | 19.83:1 | AAA |
| Primary button | 8.18:1 | AAA |
| Secondary button | 7.97:1 | AAA |
| Muted text | 8.12:1 | AAA |
| Accent | 7.94:1 | AAA |
| Destructive | 6.87:1 | AA |
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.183 0.044 136.124);
--muted: oklch(0.933 0.01 268.718);
--muted-foreground: oklch(0.428 0.014 268.529);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0.165 0.038 135.359);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.165 0.038 135.359);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.736 0.008 136.643);
--primary-foreground: oklch(0.171 0.002 136.647);
--secondary: oklch(0.729 0.006 268.737);
--secondary-foreground: oklch(0.169 0.001 268.731);
--accent: oklch(0.729 0.006 357.963);
--accent-foreground: oklch(0.169 0.002 357.987);
--destructive: oklch(0.35 0.1 40.567);
--destructive-foreground: oklch(0.848 0.076 44.282);
--ring: oklch(0.736 0.008 136.643);
--chart-1: oklch(0.736 0.008 136.643);
--chart-2: oklch(0.729 0.006 268.737);
--chart-3: oklch(0.729 0.006 357.963);
--chart-4: oklch(0.754 0.005 268.744);
--chart-5: oklch(0.74 0.017 136.678);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.123 0.018 135.207);
--foreground: oklch(0.993 0.002 136.614);
--muted: oklch(0.184 0.014 268.068);
--muted-foreground: oklch(0.741 0.012 268.669);
--popover: oklch(0.141 0.02 135.258);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.141 0.02 135.258);
--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.736 0.008 136.643);
--primary-foreground: oklch(0.171 0.002 136.647);
--secondary: oklch(0.729 0.006 268.737);
--secondary-foreground: oklch(0.169 0.001 268.731);
--accent: oklch(0.729 0.006 357.963);
--accent-foreground: oklch(0.169 0.002 357.987);
--destructive: oklch(0.683 0.177 41.712);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.736 0.008 136.643);
--chart-1: oklch(0.736 0.008 136.643);
--chart-2: oklch(0.729 0.006 268.737);
--chart-3: oklch(0.729 0.006 357.963);
--chart-4: oklch(0.754 0.005 268.744);
--chart-5: oklch(0.74 0.017 136.678);
}