Cougar is a shadcn/ui theme built around a muted deep green primary color (#232419) with muted deep green accents (#1d2419). The light mode uses a neutral background (#fefefb). Dark mode keeps the muted deep green primary (#232419) on a neutral background (#070802).
| Token | Light | Dark |
|---|---|---|
| Background | #fefefbwhite | #070802black |
| Foreground | #0b0c03black | #fdfdfbsnow |
| Card | #fcfdf7snow | #0b0c03black |
| Card foreground | #080802black | #ffffffwhite |
| Popover | #fefefbwhite | #070802black |
| Popover foreground | #0b0c03black | #fdfdfbsnow |
| Primary | #232419black | #232419black |
| Primary foreground | #c2c5aasilver | #c2c5aasilver |
| Secondary | #242019black | #242019black |
| Secondary foreground | #c5bbaasilver | #c5bbaasilver |
| Muted | #e3dbcegainsboro | #31291cdarkslategray |
| Muted foreground | #6f685ddimgray | #a29b90rosybrown |
| Accent | #1d2419black | #1d2419black |
| Accent foreground | #b4c5aasilver | #b4c5aasilver |
| Destructive | #981e0bdarkred | #ee3c20orangered |
| Destructive foreground | #fcded9mistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #232419black | #232419black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.43:1 | AAA |
| Text on card | 19.61:1 | AAA |
| Primary button | 8.83:1 | AAA |
| Secondary button | 8.53:1 | AAA |
| Muted text | 4.01:1 | AA Large |
| Accent | 8.69:1 | AAA |
| Destructive | 6.57:1 | AA |
| Text on background | 19.73:1 | AAA |
| Text on card | 19.66:1 | AAA |
| Primary button | 8.83:1 | AAA |
| Secondary button | 8.53:1 | AAA |
| Muted text | 5.23:1 | AA |
| Accent | 8.69:1 | AAA |
| Destructive | 3.96:1 | AA Large |
Paste this into your globals.css to use Cougar in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.996 0.004 111.853);
--foreground: oklch(0.151 0.023 113.506);
--muted: oklch(0.895 0.019 79.881);
--muted-foreground: oklch(0.521 0.019 79.81);
--popover: oklch(0.996 0.004 111.853);
--popover-foreground: oklch(0.151 0.023 113.506);
--card: oklch(0.991 0.008 111.927);
--card-foreground: oklch(0.132 0.02 113.105);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.257 0.021 113.287);
--primary-foreground: oklch(0.814 0.037 112.628);
--secondary: oklch(0.246 0.015 79.647);
--secondary-foreground: oklch(0.795 0.026 79.835);
--accent: oklch(0.251 0.024 133.685);
--accent-foreground: oklch(0.804 0.042 133.353);
--destructive: oklch(0.443 0.16 31.553);
--destructive-foreground: oklch(0.924 0.034 28.166);
--ring: oklch(0.257 0.021 113.287);
--chart-1: oklch(0.257 0.021 113.287);
--chart-2: oklch(0.246 0.015 79.647);
--chart-3: oklch(0.251 0.024 133.685);
--chart-4: oklch(0.28 0.018 79.612);
--chart-5: oklch(0.26 0.024 113.489);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.13 0.018 112.989);
--foreground: oklch(0.995 0.003 111.828);
--muted: oklch(0.284 0.025 79.316);
--muted-foreground: oklch(0.693 0.018 79.863);
--popover: oklch(0.13 0.018 112.989);
--popover-foreground: oklch(0.995 0.003 111.828);
--card: oklch(0.149 0.021 113.302);
--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.257 0.021 113.287);
--primary-foreground: oklch(0.814 0.037 112.628);
--secondary: oklch(0.246 0.015 79.647);
--secondary-foreground: oklch(0.795 0.026 79.835);
--accent: oklch(0.251 0.024 133.685);
--accent-foreground: oklch(0.804 0.042 133.353);
--destructive: oklch(0.625 0.218 31.641);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.257 0.021 113.287);
--chart-1: oklch(0.257 0.021 113.287);
--chart-2: oklch(0.246 0.015 79.647);
--chart-3: oklch(0.251 0.024 133.685);
--chart-4: oklch(0.28 0.018 79.612);
--chart-5: oklch(0.26 0.024 113.489);
}