Whirlwind for shadcn/ui

Whirlwind is a shadcn/ui theme built around a muted purple primary color (#a599a8) with muted green accents (#9ca899). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted purple primary (#a599a8) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#0b020dblack
#ffffffwhite
Card
#fcfcfcsnow
#030303black
Card foreground
#080109black
#ffffffwhite
Popover
#ffffffwhite
#000000black
Popover foreground
#0b020dblack
#ffffffwhite
Primary
#a599a8darkgray
#a599a8darkgray
Primary foreground
#080708black
#080708black
Secondary
#9ca899darkgray
#9ca899darkgray
Secondary foreground
#070807black
#070807black
Muted
#e7f0e5beige
#111a0fblack
Muted foreground
#60685edimgray
#98a197darkgray
Accent
#9ca899darkgray
#9ca899darkgray
Accent foreground
#070807black
#070807black
Destructive
#cd340efirebrick
#ea3c10orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#a599a8darkgray
#a599a8darkgray

Contrast

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

Light mode
Text on background20.41:1AAA
Text on card20.17:1AAA
Primary button7.41:1AAA
Secondary button8.10:1AAA
Muted text4.94:1AA
Accent8.10:1AAA
Destructive5.11:1AA
Dark mode
Text on background21.00:1AAA
Text on card20.67:1AAA
Primary button7.41:1AAA
Secondary button8.10:1AAA
Muted text6.69:1AA
Accent8.10:1AAA
Destructive4.08:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.118 0.038 321.971);
  --muted: oklch(0.946 0.017 139.974);
  --muted-foreground: oklch(0.509 0.018 139.959);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.118 0.038 321.971);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.103 0.033 322.549);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.699 0.026 320.025);
  --primary-foreground: oklch(0.131 0.004 320.246);
  --secondary: oklch(0.718 0.026 139.959);
  --secondary-foreground: oklch(0.134 0.004 139.739);
  --accent: oklch(0.718 0.026 139.959);
  --accent-foreground: oklch(0.134 0.004 139.739);
  --destructive: oklch(0.56 0.194 33.838);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.699 0.026 320.025);
  --chart-1: oklch(0.699 0.026 320.025);
  --chart-2: oklch(0.718 0.026 139.959);
  --chart-3: oklch(0.718 0.026 139.959);
  --chart-4: oklch(0.742 0.023 139.963);
  --chart-5: oklch(0.695 0.036 320.037);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.205 0.025 139.909);
  --muted-foreground: oklch(0.698 0.017 139.969);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.092 0 180);
  --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.699 0.026 320.025);
  --primary-foreground: oklch(0.131 0.004 320.246);
  --secondary: oklch(0.718 0.026 139.959);
  --secondary-foreground: oklch(0.134 0.004 139.739);
  --accent: oklch(0.718 0.026 139.959);
  --accent-foreground: oklch(0.134 0.004 139.739);
  --destructive: oklch(0.616 0.216 33.735);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.699 0.026 320.025);
  --chart-1: oklch(0.699 0.026 320.025);
  --chart-2: oklch(0.718 0.026 139.959);
  --chart-3: oklch(0.718 0.026 139.959);
  --chart-4: oklch(0.742 0.023 139.963);
  --chart-5: oklch(0.695 0.036 320.037);
}