Wolf for shadcn/ui

Wolf is a shadcn/ui theme built around a vivid deep yellow primary color (#7f7505) with vivid deep green accents (#4c7f05). The light mode uses a neutral background (#fcfcf8). Dark mode keeps the vivid deep yellow primary (#7f7505) on a neutral background (#040401).

Color palette

TokenLightDark
Background
#fcfcf8snow
#040401black
Foreground
#000000black
#fdfdfcwhite
Card
#fbfaf4floralwhite
#080702black
Card foreground
#000000black
#ffffffwhite
Popover
#fcfcf8snow
#040401black
Popover foreground
#000000black
#fdfdfcwhite
Primary
#7f7505olive
#7f7505olive
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#7f3805saddlebrown
#7f3805saddlebrown
Secondary foreground
#fcd6bapeachpuff
#fcd6bapeachpuff
Muted
#ebe2dbgainsboro
#241b14black
Muted foreground
#423f3edarkslategray
#c1bfbdsilver
Accent
#4c7f05olivedrab
#4c7f05olivedrab
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#b00803darkred
#f60c04red
Destructive foreground
#ffe7e6mistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#7f7505olive
#7f7505olive

Contrast

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

Light mode
Text on background20.41:1AAA
Text on card20.12:1AAA
Primary button4.70:1AA
Secondary button6.24:1AA
Muted text8.14:1AAA
Accent4.81:1AA
Destructive6.18:1AA
Dark mode
Text on background20.19:1AAA
Text on card20.12:1AAA
Primary button4.70:1AA
Secondary button6.24:1AA
Muted text9.24:1AAA
Accent4.81:1AA
Destructive4.21:1AA Large

CSS variables

Paste this into your globals.css to use Wolf in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.006 102.308);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.917 0.013 58.167);
  --muted-foreground: oklch(0.371 0.004 58.209);
  --popover: oklch(0.99 0.006 102.308);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.985 0.009 102.356);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.555 0.115 103.362);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.43 0.113 48.367);
  --secondary-foreground: oklch(0.901 0.056 57.47);
  --accent: oklch(0.54 0.148 131.998);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.478 0.192 29.488);
  --destructive-foreground: oklch(0.946 0.026 20.007);
  --ring: oklch(0.555 0.115 103.362);
  --chart-1: oklch(0.555 0.115 103.362);
  --chart-2: oklch(0.43 0.113 48.367);
  --chart-3: oklch(0.54 0.148 131.998);
  --chart-4: oklch(0.464 0.123 47.971);
  --chart-5: oklch(0.561 0.117 103.283);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.102 0.013 105.16);
  --foreground: oklch(0.994 0.002 102.238);
  --muted: oklch(0.23 0.018 57.196);
  --muted-foreground: oklch(0.806 0.003 58.304);
  --popover: oklch(0.102 0.013 105.16);
  --popover-foreground: oklch(0.994 0.002 102.238);
  --card: oklch(0.129 0.017 105.16);
  --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.555 0.115 103.362);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.43 0.113 48.367);
  --secondary-foreground: oklch(0.901 0.056 57.47);
  --accent: oklch(0.54 0.148 131.998);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.614 0.249 29.403);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.555 0.115 103.362);
  --chart-1: oklch(0.555 0.115 103.362);
  --chart-2: oklch(0.43 0.113 48.367);
  --chart-3: oklch(0.54 0.148 131.998);
  --chart-4: oklch(0.464 0.123 47.971);
  --chart-5: oklch(0.561 0.117 103.283);
}