Cougar is a shadcn/ui theme built around a light yellow primary color (#fcf9f3) with light green accents (#fafcf3). The light mode uses a neutral background (#ffffff). Dark mode keeps the light yellow primary (#fcf9f3) on a neutral background (#080602).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #080602black |
| Foreground | #171003black | #ffffffwhite |
| Card | #fcfcfcsnow | #0c0903black |
| Card foreground | #120d02black | #ffffffwhite |
| Popover | #ffffffwhite | #080602black |
| Popover foreground | #171003black | #ffffffwhite |
| Primary | #fcf9f3floralwhite | #fcf9f3floralwhite |
| Primary foreground | #443413darkolivegreen | #443413darkolivegreen |
| Secondary | #fcf5f3seashell | #fcf5f3seashell |
| Secondary foreground | #933d2asienna | #933d2asienna |
| Muted | #f4edeclinen | #130d0bblack |
| Muted foreground | #473f3edarkslategray | #c1bab8silver |
| Accent | #fafcf3floralwhite | #fafcf3floralwhite |
| Accent foreground | #3b4413darkolivegreen | #3b4413darkolivegreen |
| Destructive | #952109darkred | #f25131tomato |
| Destructive foreground | #fcdbd4mistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #fcf9f3floralwhite | #fcf9f3floralwhite |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.88:1 | AAA |
| Text on card | 18.95:1 | AAA |
| Primary button | 11.42:1 | AAA |
| Secondary button | 6.60:1 | AA |
| Muted text | 8.87:1 | AAA |
| Accent | 10.00:1 | AAA |
| Destructive | 6.51:1 | AA |
| Text on background | 20.22:1 | AAA |
| Text on card | 19.86:1 | AAA |
| Primary button | 11.42:1 | AAA |
| Secondary button | 6.60:1 | AA |
| Muted text | 10.07:1 | AAA |
| Accent | 10.00:1 | AAA |
| Destructive | 3.50:1 | AA Large |
Paste this into your globals.css to use Cougar in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.179 0.029 87.732);
--muted: oklch(0.951 0.007 32.661);
--muted-foreground: oklch(0.376 0.011 32.692);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.179 0.029 87.732);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.162 0.026 89.616);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.982 0.008 86.039);
--primary-foreground: oklch(0.335 0.053 84.163);
--secondary: oklch(0.974 0.008 32.662);
--secondary-foreground: oklch(0.473 0.121 34.118);
--accent: oklch(0.986 0.011 115.037);
--accent-foreground: oklch(0.366 0.071 118.911);
--destructive: oklch(0.439 0.155 32.689);
--destructive-foreground: oklch(0.916 0.039 31.182);
--ring: oklch(0.982 0.008 86.039);
--chart-1: oklch(0.982 0.008 86.039);
--chart-2: oklch(0.974 0.008 32.662);
--chart-3: oklch(0.986 0.011 115.037);
--chart-4: oklch(1 0 180);
--chart-5: oklch(0.983 0.009 86.04);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.124 0.015 91.874);
--foreground: oklch(1 0 180);
--muted: oklch(0.166 0.011 32.839);
--muted-foreground: oklch(0.794 0.009 32.663);
--popover: oklch(0.124 0.015 91.874);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.142 0.017 91.26);
--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.982 0.008 86.039);
--primary-foreground: oklch(0.335 0.053 84.163);
--secondary: oklch(0.974 0.008 32.662);
--secondary-foreground: oklch(0.473 0.121 34.118);
--accent: oklch(0.986 0.011 115.037);
--accent-foreground: oklch(0.366 0.071 118.911);
--destructive: oklch(0.653 0.202 33.198);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.982 0.008 86.039);
--chart-1: oklch(0.982 0.008 86.039);
--chart-2: oklch(0.974 0.008 32.662);
--chart-3: oklch(0.986 0.011 115.037);
--chart-4: oklch(1 0 180);
--chart-5: oklch(0.983 0.009 86.04);
}