Cold is a shadcn/ui theme built around a vivid teal primary color (#0ce4d9) with vivid red accents (#e40c17). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid teal primary (#0ce4d9) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #051514black | #ffffffwhite |
| Card | #ffffffwhite | #000000black |
| Card foreground | #051514black | #ffffffwhite |
| Popover | #ffffffwhite | #000000black |
| Popover foreground | #051514black | #ffffffwhite |
| Primary | #0ce4d9darkturquoise | #0ce4d9darkturquoise |
| Primary foreground | #022220black | #022220black |
| Secondary | #e40c17red | #e40c17red |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #ded8d9gainsboro | #272121black |
| Muted foreground | #594f50dimgray | #b0a6a6darkgray |
| Accent | #e40c17red | #e40c17red |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #5f0b07maroon | #f02e24crimson |
| Destructive foreground | #f8a4a0lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #0ce4d9darkturquoise | #0ce4d9darkturquoise |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.68:1 | AAA |
| Text on card | 18.68:1 | AAA |
| Primary button | 10.44:1 | AAA |
| Secondary button | 4.82:1 | AA |
| Muted text | 5.63:1 | AA |
| Accent | 4.82:1 | AA |
| Destructive | 7.01:1 | AAA |
| Text on background | 21.00:1 | AAA |
| Text on card | 21.00:1 | AAA |
| Primary button | 10.44:1 | AAA |
| Secondary button | 4.82:1 | AA |
| Muted text | 6.69:1 | AA |
| Accent | 4.82:1 | AA |
| Destructive | 4.10:1 | AA Large |
Paste this into your globals.css to use Cold in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.179 0.022 191.256);
--muted: oklch(0.888 0.006 13.747);
--muted-foreground: oklch(0.438 0.013 14.222);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.179 0.022 191.256);
--card: oklch(1 0 180);
--card-foreground: oklch(0.179 0.022 191.256);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.828 0.143 188.688);
--primary-foreground: oklch(0.228 0.037 190.099);
--secondary: oklch(0.58 0.233 27.768);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.58 0.233 27.768);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.314 0.117 29.15);
--destructive-foreground: oklch(0.801 0.101 22.866);
--ring: oklch(0.828 0.143 188.688);
--chart-1: oklch(0.828 0.143 188.688);
--chart-2: oklch(0.58 0.233 27.768);
--chart-3: oklch(0.58 0.233 27.768);
--chart-4: oklch(0.607 0.244 27.822);
--chart-5: oklch(0.838 0.145 188.587);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(1 0 180);
--muted: oklch(0.254 0.009 14.299);
--muted-foreground: oklch(0.733 0.012 13.925);
--popover: oklch(0 0 0);
--popover-foreground: oklch(1 0 180);
--card: oklch(0 0 0);
--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.828 0.143 188.688);
--primary-foreground: oklch(0.228 0.037 190.099);
--secondary: oklch(0.58 0.233 27.768);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.58 0.233 27.768);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.617 0.228 28.939);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.828 0.143 188.688);
--chart-1: oklch(0.828 0.143 188.688);
--chart-2: oklch(0.58 0.233 27.768);
--chart-3: oklch(0.58 0.233 27.768);
--chart-4: oklch(0.607 0.244 27.822);
--chart-5: oklch(0.838 0.145 188.587);
}