Cougar for shadcn/ui

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).

Color palette

TokenLightDark
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

Contrast

WCAG 2 contrast ratios between each background and its foreground color.

Light mode
Text on background18.88:1AAA
Text on card18.95:1AAA
Primary button11.42:1AAA
Secondary button6.60:1AA
Muted text8.87:1AAA
Accent10.00:1AAA
Destructive6.51:1AA
Dark mode
Text on background20.22:1AAA
Text on card19.86:1AAA
Primary button11.42:1AAA
Secondary button6.60:1AA
Muted text10.07:1AAA
Accent10.00:1AAA
Destructive3.50:1AA Large

CSS variables

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);
}