coolblue is a shadcn/ui theme built around a teal primary color (#7cdedf) with neutral gray accents (#cdd0d0). The light mode uses a neutral background (#fcfdfd). Dark mode keeps the teal primary (#7cdedf) on a neutral background (#030808).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfdfdwhite | #030808black |
| Foreground | #020909black | #f6f9f9whitesmoke |
| Card | #f8fbfbghostwhite | #040b0bblack |
| Card foreground | #010404black | #f9fbfbghostwhite |
| Popover | #f8fbfbghostwhite | #040b0bblack |
| Popover foreground | #010404black | #f9fbfbghostwhite |
| Primary | #7cdedfskyblue | #7cdedfskyblue |
| Primary foreground | #082021black | #082021black |
| Secondary | #cdd0d0lightgrey | #283333darkslategray |
| Secondary foreground | #333838darkslategray | #c0cdcesilver |
| Muted | #e5ebeblavender | #141a1ablack |
| Muted foreground | #546464dimgray | #9bababdarkgray |
| Accent | #cdd0d0lightgrey | #283333darkslategray |
| Accent foreground | #333838darkslategray | #c0cdcesilver |
| Destructive | #8e0d0bdarkred | #d51310firebrick |
| Destructive foreground | #fbd0d0pink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #7cdedfskyblue | #7cdedfskyblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.72:1 | AAA |
| Text on card | 19.84:1 | AAA |
| Primary button | 10.74:1 | AAA |
| Secondary button | 7.69:1 | AAA |
| Muted text | 5.13:1 | AA |
| Accent | 7.69:1 | AAA |
| Destructive | 6.78:1 | AA |
| Text on background | 19.08:1 | AAA |
| Text on card | 19.08:1 | AAA |
| Primary button | 10.74:1 | AAA |
| Secondary button | 7.95:1 | AAA |
| Muted text | 7.40:1 | AAA |
| Accent | 7.95:1 | AAA |
| Destructive | 5.32:1 | AA |
Paste this into your globals.css to use coolblue in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.993 0.002 198.338);
--foreground: oklch(0.127 0.016 196.31);
--muted: oklch(0.935 0.006 198.269);
--muted-foreground: oklch(0.489 0.02 197.784);
--popover: oklch(0.987 0.003 198.314);
--popover-foreground: oklch(0.101 0.013 196.31);
--card: oklch(0.987 0.003 198.314);
--card-foreground: oklch(0.101 0.013 196.31);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.84 0.093 196.967);
--primary-foreground: oklch(0.227 0.03 196.766);
--secondary: oklch(0.856 0.004 198.289);
--secondary-foreground: oklch(0.335 0.006 198.108);
--accent: oklch(0.856 0.004 198.289);
--accent-foreground: oklch(0.335 0.006 198.108);
--destructive: oklch(0.413 0.161 28.592);
--destructive-foreground: oklch(0.895 0.049 19.246);
--ring: oklch(0.84 0.093 196.967);
--chart-1: oklch(0.84 0.093 196.967);
--chart-2: oklch(0.856 0.004 198.289);
--chart-3: oklch(0.856 0.004 198.289);
--chart-4: oklch(0.879 0.004 198.302);
--chart-5: oklch(0.845 0.096 196.934);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.124 0.012 196.769);
--foreground: oklch(0.979 0.003 198.316);
--muted: oklch(0.211 0.008 197.807);
--muted-foreground: oklch(0.729 0.018 197.997);
--popover: oklch(0.142 0.014 196.84);
--popover-foreground: oklch(0.986 0.002 198.331);
--card: oklch(0.142 0.014 196.84);
--card-foreground: oklch(0.986 0.002 198.331);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.84 0.093 196.967);
--primary-foreground: oklch(0.227 0.03 196.766);
--secondary: oklch(0.312 0.015 197.698);
--secondary-foreground: oklch(0.84 0.014 198.108);
--accent: oklch(0.312 0.015 197.698);
--accent-foreground: oklch(0.84 0.014 198.108);
--destructive: oklch(0.555 0.22 28.845);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.84 0.093 196.967);
--chart-1: oklch(0.84 0.093 196.967);
--chart-2: oklch(0.312 0.015 197.698);
--chart-3: oklch(0.312 0.015 197.698);
--chart-4: oklch(0.344 0.017 197.679);
--chart-5: oklch(0.845 0.096 196.934);
}