CD is a shadcn/ui theme built around a yellow primary color (#a1a659) with purple accents (#a659a1). The light mode uses a neutral background (#ffffff). Dark mode keeps the yellow primary (#a1a659) on a yellow-tinted background (#0a0b05).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #0a0b05black |
| Foreground | #101004black | #fdfdfcwhite |
| Card | #ffffffwhite | #0a0b05black |
| Card foreground | #101004black | #fdfdfcwhite |
| Popover | #ffffffwhite | #0a0b05black |
| Popover foreground | #101004black | #fdfdfcwhite |
| Primary | #a1a659darkkhaki | #a1a659darkkhaki |
| Primary foreground | #202112black | #202112black |
| Secondary | #59a1a6cadetblue | #59a1a6cadetblue |
| Secondary foreground | #000000black | #000000black |
| Muted | #d9e7e8gainsboro | #172526black |
| Muted foreground | #485e60darkslategray | #9fb5b7darkgray |
| Accent | #a659a1mediumorchid | #a659a1mediumorchid |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #6c0d04maroon | #e71b08red |
| Destructive foreground | #fcaea6lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #a1a659darkkhaki | #a1a659darkkhaki |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.12:1 | AAA |
| Text on card | 19.12:1 | AAA |
| Primary button | 6.28:1 | AA |
| Secondary button | 7.04:1 | AAA |
| Muted text | 5.42:1 | AA |
| Accent | 4.59:1 | AA |
| Destructive | 6.91:1 | AA |
| Text on background | 19.44:1 | AAA |
| Text on card | 19.44:1 | AAA |
| Primary button | 6.28:1 | AA |
| Secondary button | 7.04:1 | AAA |
| Muted text | 7.34:1 | AAA |
| Accent | 4.59:1 | AA |
| Destructive | 4.59:1 | AA |
Paste this into your globals.css to use CD in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.17 0.026 111.863);
--muted: oklch(0.917 0.015 202.047);
--muted-foreground: oklch(0.466 0.027 201.708);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.17 0.026 111.863);
--card: oklch(1 0 180);
--card-foreground: oklch(0.17 0.026 111.863);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.703 0.1 112.057);
--primary-foreground: oklch(0.242 0.027 111.493);
--secondary: oklch(0.663 0.072 201.565);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.58 0.136 329.64);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.342 0.129 30.446);
--destructive-foreground: oklch(0.822 0.093 25.047);
--ring: oklch(0.703 0.1 112.057);
--chart-1: oklch(0.703 0.1 112.057);
--chart-2: oklch(0.663 0.072 201.565);
--chart-3: oklch(0.58 0.136 329.64);
--chart-4: oklch(0.683 0.069 201.556);
--chart-5: oklch(0.714 0.108 112.232);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.144 0.014 110.713);
--foreground: oklch(0.993 0.001 109.491);
--muted: oklch(0.252 0.019 201.614);
--muted-foreground: oklch(0.757 0.024 201.898);
--popover: oklch(0.144 0.014 110.713);
--popover-foreground: oklch(0.993 0.001 109.491);
--card: oklch(0.144 0.014 110.713);
--card-foreground: oklch(0.993 0.001 109.491);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.703 0.1 112.057);
--primary-foreground: oklch(0.242 0.027 111.493);
--secondary: oklch(0.663 0.072 201.565);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.58 0.136 329.64);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.591 0.232 30.037);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.703 0.1 112.057);
--chart-1: oklch(0.703 0.1 112.057);
--chart-2: oklch(0.663 0.072 201.565);
--chart-3: oklch(0.58 0.136 329.64);
--chart-4: oklch(0.683 0.069 201.556);
--chart-5: oklch(0.714 0.108 112.232);
}