c00l is a shadcn/ui theme built around a purple primary color (#d47eec) with green accents (#96ec7e). The light mode uses a neutral background (#fcf7fd). Dark mode keeps the purple primary (#d47eec) on a purple-tinted background (#0d050f).
| Token | Light | Dark |
|---|---|---|
| Background | #fcf7fdghostwhite | #0d050fblack |
| Foreground | #070208black | #f8f6f8whitesmoke |
| Card | #faf2fcghostwhite | #100713black |
| Card foreground | #030104black | #faf9fbghostwhite |
| Popover | #faf2fcghostwhite | #100713black |
| Popover foreground | #030104black | #faf9fbghostwhite |
| Primary | #d47eecviolet | #d47eecviolet |
| Primary foreground | #280731black | #280731black |
| Secondary | #96ec7elightgreen | #691ee2blueviolet |
| Secondary foreground | #103107black | #ffffffwhite |
| Muted | #d5e6d0gainsboro | #471854indigo |
| Muted foreground | #465143darkslategray | #a1a1a1darkgray |
| Accent | #96ec7elightgreen | #b860d1mediumorchid |
| Accent foreground | #103107black | #ffffffwhite |
| Destructive | #66290asaddlebrown | #ea2e2ecrimson |
| Destructive foreground | #f7c5abwheat | #000000black |
| Border | #e9e7e9lavender | #1f1d20black |
| Input | #e9e7e9lavender | #1f1d20black |
| Ring | #d47eecviolet | #d47eecviolet |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.39:1 | AAA |
| Text on card | 19.03:1 | AAA |
| Primary button | 6.87:1 | AA |
| Secondary button | 9.95:1 | AAA |
| Muted text | 6.39:1 | AA |
| Accent | 9.95:1 | AAA |
| Destructive | 7.17:1 | AAA |
| Text on background | 18.64:1 | AAA |
| Text on card | 18.86:1 | AAA |
| Primary button | 6.87:1 | AA |
| Secondary button | 7.27:1 | AAA |
| Muted text | 5.30:1 | AA |
| Accent | 3.71:1 | AA Large |
| Destructive | 4.94:1 | AA |
Paste this into your globals.css to use c00l in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.981 0.01 318.887);
--foreground: oklch(0.105 0.027 321.048);
--muted: oklch(0.907 0.035 138.907);
--muted-foreground: oklch(0.421 0.028 138.923);
--popover: oklch(0.971 0.015 318.885);
--popover-foreground: oklch(0.083 0.021 321.048);
--card: oklch(0.971 0.015 318.885);
--card-foreground: oklch(0.083 0.021 321.048);
--border: oklch(0.93 0.004 318.889);
--input: oklch(0.93 0.004 318.889);
--primary: oklch(0.726 0.176 318.664);
--primary-foreground: oklch(0.213 0.083 318.019);
--secondary: oklch(0.863 0.166 139.147);
--secondary-foreground: oklch(0.278 0.077 139.656);
--accent: oklch(0.863 0.166 139.147);
--accent-foreground: oklch(0.278 0.077 139.656);
--destructive: oklch(0.363 0.097 43.359);
--destructive-foreground: oklch(0.86 0.067 47.923);
--ring: oklch(0.726 0.176 318.664);
--chart-1: oklch(0.726 0.176 318.664);
--chart-2: oklch(0.863 0.166 139.147);
--chart-3: oklch(0.863 0.166 139.147);
--chart-4: oklch(0.875 0.15 139.081);
--chart-5: oklch(0.725 0.182 318.642);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.136 0.026 319.46);
--foreground: oklch(0.976 0.003 318.889);
--muted: oklch(0.313 0.111 318.139);
--muted-foreground: oklch(0.709 0 180);
--popover: oklch(0.148 0.03 319.012);
--popover-foreground: oklch(0.984 0.002 318.89);
--card: oklch(0.148 0.03 319.012);
--card-foreground: oklch(0.984 0.002 318.89);
--border: oklch(0.235 0.007 318.88);
--input: oklch(0.235 0.007 318.88);
--primary: oklch(0.726 0.176 318.664);
--primary-foreground: oklch(0.213 0.083 318.019);
--secondary: oklch(0.488 0.257 290.115);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.637 0.183 318.468);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.609 0.222 26.962);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.726 0.176 318.664);
--chart-1: oklch(0.726 0.176 318.664);
--chart-2: oklch(0.488 0.257 290.115);
--chart-3: oklch(0.637 0.183 318.468);
--chart-4: oklch(0.509 0.249 292.251);
--chart-5: oklch(0.725 0.182 318.642);
}