Cousin is a shadcn/ui theme built around a muted indigo primary color (#a1a0b1) with muted violet accents (#aaa0b1). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted indigo primary (#a1a0b1) on an indigo-tinted background (#06050a).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #06050ablack |
| Foreground | #050311black | #f9f9fbghostwhite |
| Card | #ffffffwhite | #06050ablack |
| Card foreground | #050311black | #f9f9fbghostwhite |
| Popover | #ffffffwhite | #06050ablack |
| Popover foreground | #050311black | #f9f9fbghostwhite |
| Primary | #a1a0b1darkgray | #a1a0b1darkgray |
| Primary foreground | #0e0e11black | #0e0e11black |
| Secondary | #a0a7b1darkgray | #a0a7b1darkgray |
| Secondary foreground | #0e0f11black | #0e0f11black |
| Muted | #e0e7f1lavender | #0e161fblack |
| Muted foreground | #575f6bdimgray | #949ca8darkgray |
| Accent | #aaa0b1darkgray | #aaa0b1darkgray |
| Accent foreground | #100e11black | #100e11black |
| Destructive | #833007saddlebrown | #f36720chocolate |
| Destructive foreground | #fcd4c0peachpuff | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #a1a0b1darkgray | #a1a0b1darkgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.43:1 | AAA |
| Text on card | 20.43:1 | AAA |
| Primary button | 7.48:1 | AAA |
| Secondary button | 7.88:1 | AAA |
| Muted text | 5.16:1 | AA |
| Accent | 7.63:1 | AAA |
| Destructive | 6.40:1 | AA |
| Text on background | 19.29:1 | AAA |
| Text on card | 19.29:1 | AAA |
| Primary button | 7.48:1 | AAA |
| Secondary button | 7.88:1 | AAA |
| Muted text | 6.58:1 | AA |
| Accent | 7.63:1 | AAA |
| Destructive | 6.76:1 | AA |
Paste this into your globals.css to use Cousin in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.116 0.034 285.381);
--muted: oklch(0.924 0.015 256.713);
--muted-foreground: oklch(0.484 0.021 256.777);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.116 0.034 285.381);
--card: oklch(1 0 180);
--card-foreground: oklch(0.116 0.034 285.381);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.711 0.025 289.575);
--primary-foreground: oklch(0.164 0.006 289.506);
--secondary: oklch(0.725 0.017 256.732);
--secondary-foreground: oklch(0.168 0.004 256.738);
--accent: oklch(0.719 0.027 311.42);
--accent-foreground: oklch(0.166 0.007 311.39);
--destructive: oklch(0.424 0.123 41.78);
--destructive-foreground: oklch(0.898 0.052 48.117);
--ring: oklch(0.711 0.025 289.575);
--chart-1: oklch(0.711 0.025 289.575);
--chart-2: oklch(0.725 0.017 256.732);
--chart-3: oklch(0.719 0.027 311.42);
--chart-4: oklch(0.75 0.015 256.724);
--chart-5: oklch(0.705 0.033 289.358);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.121 0.012 288.967);
--foreground: oklch(0.983 0.002 290.203);
--muted: oklch(0.196 0.023 256.857);
--muted-foreground: oklch(0.691 0.019 256.743);
--popover: oklch(0.121 0.012 288.967);
--popover-foreground: oklch(0.983 0.002 290.203);
--card: oklch(0.121 0.012 288.967);
--card-foreground: oklch(0.983 0.002 290.203);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.711 0.025 289.575);
--primary-foreground: oklch(0.164 0.006 289.506);
--secondary: oklch(0.725 0.017 256.732);
--secondary-foreground: oklch(0.168 0.004 256.738);
--accent: oklch(0.719 0.027 311.42);
--accent-foreground: oklch(0.166 0.007 311.39);
--destructive: oklch(0.68 0.189 42.673);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.711 0.025 289.575);
--chart-1: oklch(0.711 0.025 289.575);
--chart-2: oklch(0.725 0.017 256.732);
--chart-3: oklch(0.719 0.027 311.42);
--chart-4: oklch(0.75 0.015 256.724);
--chart-5: oklch(0.705 0.033 289.358);
}