Blizzard for shadcn/ui

Blizzard is a shadcn/ui theme built around a vivid deep yellow primary color (#473100) with vivid deep violet accents (#310047). The light mode uses a neutral background (#fbfaf8). Dark mode keeps the vivid deep yellow primary (#473100) on a yellow-tinted background (#0a0905).

Color palette

TokenLightDark
Background
#fbfaf8snow
#0a0905black
Foreground
#080602black
#fdfdfcwhite
Card
#fbfaf8snow
#0a0905black
Card foreground
#080602black
#fdfdfcwhite
Popover
#fbfaf8snow
#0a0905black
Popover foreground
#080602black
#fdfdfcwhite
Primary
#473100saddlebrown
#473100saddlebrown
Primary foreground
#ffb514orange
#ffb514orange
Secondary
#004731darkslategray
#004731darkslategray
Secondary foreground
#14ffb5mediumspringgreen
#14ffb5mediumspringgreen
Muted
#eef1f0whitesmoke
#0e1110black
Muted foreground
#4b5350darkslategray
#acb4b1darkgray
Accent
#310047midnightblue
#310047midnightblue
Accent foreground
#d57affviolet
#d57affviolet
Destructive
#771708maroon
#ef371aorangered
Destructive foreground
#fac0b7lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#473100saddlebrown
#473100saddlebrown

Contrast

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

Light mode
Text on background19.48:1AAA
Text on card19.48:1AAA
Primary button6.95:1AA
Secondary button8.18:1AAA
Muted text6.96:1AA
Accent6.59:1AA
Destructive6.94:1AA
Dark mode
Text on background19.60:1AAA
Text on card19.60:1AAA
Primary button6.95:1AA
Secondary button8.18:1AAA
Muted text8.98:1AAA
Accent6.59:1AA
Destructive4.01:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.987 0.003 86.019);
  --foreground: oklch(0.123 0.013 91.414);
  --muted: oklch(0.956 0.003 175.53);
  --muted-foreground: oklch(0.434 0.011 174.868);
  --popover: oklch(0.987 0.003 86.019);
  --popover-foreground: oklch(0.123 0.013 91.414);
  --card: oklch(0.987 0.003 86.019);
  --card-foreground: oklch(0.123 0.013 91.414);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.33 0.068 80.421);
  --primary-foreground: oklch(0.821 0.168 78.221);
  --secondary: oklch(0.354 0.075 164.182);
  --secondary-foreground: oklch(0.886 0.189 163.012);
  --accent: oklch(0.239 0.12 310.965);
  --accent-foreground: oklch(0.731 0.202 314.015);
  --destructive: oklch(0.373 0.133 31.628);
  --destructive-foreground: oklch(0.858 0.068 28.546);
  --ring: oklch(0.33 0.068 80.421);
  --chart-1: oklch(0.33 0.068 80.421);
  --chart-2: oklch(0.354 0.075 164.182);
  --chart-3: oklch(0.239 0.12 310.965);
  --chart-4: oklch(0.403 0.087 163.518);
  --chart-5: oklch(0.333 0.07 80.192);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.138 0.009 89.381);
  --foreground: oklch(0.993 0.001 86.009);
  --muted: oklch(0.172 0.004 174.88);
  --muted-foreground: oklch(0.763 0.01 175.248);
  --popover: oklch(0.138 0.009 89.381);
  --popover-foreground: oklch(0.993 0.001 86.009);
  --card: oklch(0.138 0.009 89.381);
  --card-foreground: oklch(0.993 0.001 86.009);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.33 0.068 80.421);
  --primary-foreground: oklch(0.821 0.168 78.221);
  --secondary: oklch(0.354 0.075 164.182);
  --secondary-foreground: oklch(0.886 0.189 163.012);
  --accent: oklch(0.239 0.12 310.965);
  --accent-foreground: oklch(0.731 0.202 314.015);
  --destructive: oklch(0.622 0.223 31.574);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.33 0.068 80.421);
  --chart-1: oklch(0.33 0.068 80.421);
  --chart-2: oklch(0.354 0.075 164.182);
  --chart-3: oklch(0.239 0.12 310.965);
  --chart-4: oklch(0.403 0.087 163.518);
  --chart-5: oklch(0.333 0.07 80.192);
}