Blizzard for shadcn/ui

Blizzard is a shadcn/ui theme built around a muted deep teal primary color (#29423b) with muted deep cyan accents (#293d42). The light mode uses a neutral background (#f7fdfb). Dark mode keeps the muted deep teal primary (#29423b) on a teal-tinted background (#040b09).

Color palette

TokenLightDark
Background
#f7fdfbmintcream
#040b09black
Foreground
#061410black
#fbfdfdwhite
Card
#f7fdfbmintcream
#040b09black
Card foreground
#061410black
#fbfdfdwhite
Popover
#f7fdfbmintcream
#040b09black
Popover foreground
#061410black
#fbfdfdwhite
Primary
#29423bdarkslategray
#29423bdarkslategray
Primary foreground
#c3dad4lightgrey
#c3dad4lightgrey
Secondary
#29422edarkslategray
#29422edarkslategray
Secondary foreground
#c3dac8lightgrey
#c3dac8lightgrey
Muted
#eceeedwhitesmoke
#111311black
Muted foreground
#5a5e5bdimgray
#a1a5a2darkgray
Accent
#293d42darkslategray
#293d42darkslategray
Accent foreground
#c3d5dalightgrey
#c3d5dalightgrey
Destructive
#9a3604saddlebrown
#f95a0borangered
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#29423bdarkslategray
#29423bdarkslategray

Contrast

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

Light mode
Text on background18.25:1AAA
Text on card18.25:1AAA
Primary button7.35:1AAA
Secondary button7.38:1AAA
Muted text5.65:1AA
Accent7.54:1AAA
Destructive7.22:1AAA
Dark mode
Text on background19.43:1AAA
Text on card19.43:1AAA
Primary button7.35:1AAA
Secondary button7.38:1AAA
Muted text7.49:1AAA
Accent7.54:1AAA
Destructive6.50:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.988 0.006 177.537);
  --foreground: oklch(0.175 0.022 173.998);
  --muted: oklch(0.947 0.003 152.573);
  --muted-foreground: oklch(0.476 0.006 152.403);
  --popover: oklch(0.988 0.006 177.537);
  --popover-foreground: oklch(0.175 0.022 173.998);
  --card: oklch(0.988 0.006 177.537);
  --card-foreground: oklch(0.175 0.022 173.998);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.357 0.034 174.509);
  --primary-foreground: oklch(0.87 0.026 176.808);
  --secondary: oklch(0.353 0.047 150.267);
  --secondary-foreground: oklch(0.867 0.035 151.965);
  --accent: oklch(0.345 0.027 216.829);
  --accent-foreground: oklch(0.861 0.021 216.141);
  --destructive: oklch(0.472 0.144 40.728);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.357 0.034 174.509);
  --chart-1: oklch(0.357 0.034 174.509);
  --chart-2: oklch(0.353 0.047 150.267);
  --chart-3: oklch(0.345 0.027 216.829);
  --chart-4: oklch(0.386 0.053 150.205);
  --chart-5: oklch(0.361 0.038 174.118);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.141 0.015 177.56);
  --foreground: oklch(0.994 0.002 177.648);
  --muted: oklch(0.183 0.004 152.271);
  --muted-foreground: oklch(0.718 0.006 152.489);
  --popover: oklch(0.141 0.015 177.56);
  --popover-foreground: oklch(0.994 0.002 177.648);
  --card: oklch(0.141 0.015 177.56);
  --card-foreground: oklch(0.994 0.002 177.648);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.357 0.034 174.509);
  --primary-foreground: oklch(0.87 0.026 176.808);
  --secondary: oklch(0.353 0.047 150.267);
  --secondary-foreground: oklch(0.867 0.035 151.965);
  --accent: oklch(0.345 0.027 216.829);
  --accent-foreground: oklch(0.861 0.021 216.141);
  --destructive: oklch(0.672 0.207 40.219);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.357 0.034 174.509);
  --chart-1: oklch(0.357 0.034 174.509);
  --chart-2: oklch(0.353 0.047 150.267);
  --chart-3: oklch(0.345 0.027 216.829);
  --chart-4: oklch(0.386 0.053 150.205);
  --chart-5: oklch(0.361 0.038 174.118);
}