Comradeship is a shadcn/ui theme built around a green primary color (#91ca9c) with purple accents (#ca91bf). The light mode uses a neutral background (#fbfdfc). Dark mode keeps the green primary (#91ca9c) on a neutral background (#030704).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfdfcwhite | #030704black |
| Foreground | #061309black | #fcfdfcwhite |
| Card | #f8fcf9mintcream | #050b06black |
| Card foreground | #050f07black | #ffffffwhite |
| Popover | #f8fcf9mintcream | #050b06black |
| Popover foreground | #050f07black | #ffffffwhite |
| Primary | #91ca9cdarkseagreen | #91ca9cdarkseagreen |
| Primary foreground | #0d1c10black | #0d1c10black |
| Secondary | #ca91bfplum | #ca91bfplum |
| Secondary foreground | #1c0d19black | #1c0d19black |
| Muted | #f0e5eelavender | #1a0f18black |
| Muted foreground | #50444ddarkslategray | #bbafb9silver |
| Accent | #ca91bfplum | #ca91bfplum |
| Accent foreground | #1c0d19black | #1c0d19black |
| Destructive | #873a0dsaddlebrown | #ea661achocolate |
| Destructive foreground | #faddccbisque | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #91ca9cdarkseagreen | #91ca9cdarkseagreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.66:1 | AAA |
| Text on card | 18.79:1 | AAA |
| Primary button | 9.34:1 | AAA |
| Secondary button | 7.40:1 | AAA |
| Muted text | 7.54:1 | AAA |
| Accent | 7.40:1 | AAA |
| Destructive | 6.17:1 | AA |
| Text on background | 19.86:1 | AAA |
| Text on card | 19.90:1 | AAA |
| Primary button | 9.34:1 | AAA |
| Secondary button | 7.40:1 | AAA |
| Muted text | 8.84:1 | AAA |
| Accent | 7.40:1 | AAA |
| Destructive | 6.42:1 | AA |
Paste this into your globals.css to use Comradeship in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.993 0.003 151.962);
--foreground: oklch(0.172 0.029 149.835);
--muted: oklch(0.934 0.016 332.259);
--muted-foreground: oklch(0.402 0.022 332.798);
--popover: oklch(0.987 0.006 151.918);
--popover-foreground: oklch(0.156 0.025 150.58);
--card: oklch(0.987 0.006 151.918);
--card-foreground: oklch(0.156 0.025 150.58);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.787 0.088 150.181);
--primary-foreground: oklch(0.207 0.03 149.533);
--secondary: oklch(0.726 0.092 333.767);
--secondary-foreground: oklch(0.186 0.032 334.368);
--accent: oklch(0.726 0.092 333.767);
--accent-foreground: oklch(0.186 0.032 334.368);
--destructive: oklch(0.446 0.119 45.272);
--destructive-foreground: oklch(0.917 0.04 52.018);
--ring: oklch(0.787 0.088 150.181);
--chart-1: oklch(0.787 0.088 150.181);
--chart-2: oklch(0.726 0.092 333.767);
--chart-3: oklch(0.726 0.092 333.767);
--chart-4: oklch(0.752 0.082 333.547);
--chart-5: oklch(0.791 0.095 150.026);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.121 0.014 151.402);
--foreground: oklch(0.993 0.002 151.975);
--muted: oklch(0.187 0.024 333.786);
--muted-foreground: oklch(0.767 0.019 332.365);
--popover: oklch(0.138 0.016 151.391);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.138 0.016 151.391);
--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.787 0.088 150.181);
--primary-foreground: oklch(0.207 0.03 149.533);
--secondary: oklch(0.726 0.092 333.767);
--secondary-foreground: oklch(0.186 0.032 334.368);
--accent: oklch(0.726 0.092 333.767);
--accent-foreground: oklch(0.186 0.032 334.368);
--destructive: oklch(0.665 0.181 44.821);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.787 0.088 150.181);
--chart-1: oklch(0.787 0.088 150.181);
--chart-2: oklch(0.726 0.092 333.767);
--chart-3: oklch(0.726 0.092 333.767);
--chart-4: oklch(0.752 0.082 333.547);
--chart-5: oklch(0.791 0.095 150.026);
}