Capital is a shadcn/ui theme built around a muted cyan primary color (#385e66) with muted blue accents (#384766). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted cyan primary (#385e66) on a cyan-tinted background (#050a0b).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #050a0bblack |
| Foreground | #051215black | #ffffffwhite |
| Card | #ffffffwhite | #050a0bblack |
| Card foreground | #051215black | #ffffffwhite |
| Popover | #ffffffwhite | #050a0bblack |
| Popover foreground | #051215black | #ffffffwhite |
| Primary | #385e66darkslategray | #385e66darkslategray |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #386657darkslategray | #386657darkslategray |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #e3f2edlavender | #0d1c17black |
| Muted foreground | #565857dimgray | #a7a9a9darkgray |
| Accent | #384766darkslategray | #384766darkslategray |
| Accent foreground | #e1e6eflavender | #e1e6eflavender |
| Destructive | #701e00maroon | #e63d00orangered |
| Destructive foreground | #ffbca3lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #385e66darkslategray | #385e66darkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.02:1 | AAA |
| Text on card | 19.02:1 | AAA |
| Primary button | 7.12:1 | AAA |
| Secondary button | 6.54:1 | AA |
| Muted text | 6.20:1 | AA |
| Accent | 7.44:1 | AAA |
| Destructive | 6.91:1 | AA |
| Text on background | 19.95:1 | AAA |
| Text on card | 19.95:1 | AAA |
| Primary button | 7.12:1 | AAA |
| Secondary button | 6.54:1 | AA |
| Muted text | 7.46:1 | AAA |
| Accent | 7.44:1 | AAA |
| Destructive | 4.18:1 | AA Large |
Paste this into your globals.css to use Capital in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.17 0.021 212.779);
--muted: oklch(0.948 0.016 175.109);
--muted-foreground: oklch(0.457 0.002 175.463);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.17 0.021 212.779);
--card: oklch(1 0 180);
--card-foreground: oklch(0.17 0.021 212.779);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.456 0.045 213.54);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.473 0.056 171.364);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.398 0.057 264.871);
--accent-foreground: oklch(0.923 0.013 265.938);
--destructive: oklch(0.366 0.121 37.558);
--destructive-foreground: oklch(0.85 0.085 40.848);
--ring: oklch(0.456 0.045 213.54);
--chart-1: oklch(0.456 0.045 213.54);
--chart-2: oklch(0.473 0.056 171.364);
--chart-3: oklch(0.398 0.057 264.871);
--chart-4: oklch(0.504 0.061 171.307);
--chart-5: oklch(0.459 0.049 213.724);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.137 0.01 209.947);
--foreground: oklch(1 0 180);
--muted: oklch(0.21 0.022 172.024);
--muted-foreground: oklch(0.734 0.002 175.531);
--popover: oklch(0.137 0.01 209.947);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.137 0.01 209.947);
--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.456 0.045 213.54);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.473 0.056 171.364);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.398 0.057 264.871);
--accent-foreground: oklch(0.923 0.013 265.938);
--destructive: oklch(0.61 0.212 35.417);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.456 0.045 213.54);
--chart-1: oklch(0.456 0.045 213.54);
--chart-2: oklch(0.473 0.056 171.364);
--chart-3: oklch(0.398 0.057 264.871);
--chart-4: oklch(0.504 0.061 171.307);
--chart-5: oklch(0.459 0.049 213.724);
}