Whirlwind for shadcn/ui

Whirlwind is a shadcn/ui theme built around a light teal primary color (#e8f3f1) with muted light teal accents (#b6ceca). The light mode uses a neutral background (#fbfefd). Dark mode keeps the light teal primary (#e8f3f1) on a neutral background (#010403).

Color palette

TokenLightDark
Background
#fbfefdwhite
#010403black
Foreground
#04100eblack
#f6f9f8whitesmoke
Card
#f8fcfbmintcream
#030707black
Card foreground
#030c0bblack
#f9fbfbghostwhite
Popover
#f8fcfbmintcream
#030707black
Popover foreground
#030c0bblack
#f9fbfbghostwhite
Primary
#e8f3f1whitesmoke
#e8f3f1whitesmoke
Primary foreground
#172b28darkslategray
#172b28darkslategray
Secondary
#c7d6d3lightgrey
#2d2f2fdarkslategray
Secondary foreground
#2e3e3bdarkslategray
#c6c8c8silver
Muted
#dfecealavender
#13201eblack
Muted foreground
#405451darkslategray
#abbfbcsilver
Accent
#b6cecasilver
#3a4544darkslategray
Accent foreground
#21312edarkslategray
#d5dcdbgainsboro
Destructive
#b30900darkred
#ff2f24orangered
Destructive foreground
#ffe7e6mistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#e8f3f1whitesmoke
#e8f3f1whitesmoke

Contrast

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

Light mode
Text on background19.02:1AAA
Text on card19.13:1AAA
Primary button13.07:1AAA
Secondary button7.48:1AAA
Muted text6.63:1AA
Accent8.20:1AAA
Destructive6.05:1AA
Dark mode
Text on background19.45:1AAA
Text on card19.47:1AAA
Primary button13.07:1AAA
Secondary button8.03:1AAA
Muted text8.73:1AAA
Accent7.09:1AAA
Destructive3.69:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.002 185.388);
  --foreground: oklch(0.16 0.019 183.124);
  --muted: oklch(0.932 0.013 185.074);
  --muted-foreground: oklch(0.429 0.026 183.765);
  --popover: oklch(0.988 0.005 185.327);
  --popover-foreground: oklch(0.143 0.016 184.52);
  --card: oklch(0.988 0.005 185.327);
  --card-foreground: oklch(0.143 0.016 184.52);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.954 0.012 185.12);
  --primary-foreground: oklch(0.272 0.027 182.442);
  --secondary: oklch(0.864 0.016 184.959);
  --secondary-foreground: oklch(0.347 0.021 183.748);
  --accent: oklch(0.832 0.027 184.584);
  --accent-foreground: oklch(0.298 0.022 183.344);
  --destructive: oklch(0.483 0.195 29.842);
  --destructive-foreground: oklch(0.946 0.027 21.261);
  --ring: oklch(0.954 0.012 185.12);
  --chart-1: oklch(0.954 0.012 185.12);
  --chart-2: oklch(0.864 0.016 184.959);
  --chart-3: oklch(0.832 0.027 184.584);
  --chart-4: oklch(0.886 0.013 185.049);
  --chart-5: oklch(0.955 0.013 185.088);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.098 0.009 185.181);
  --foreground: oklch(0.979 0.003 185.361);
  --muted: oklch(0.23 0.018 183.264);
  --muted-foreground: oklch(0.789 0.023 184.668);
  --popover: oklch(0.123 0.011 185.181);
  --popover-foreground: oklch(0.986 0.002 185.391);
  --card: oklch(0.123 0.011 185.181);
  --card-foreground: oklch(0.986 0.002 185.391);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.954 0.012 185.12);
  --primary-foreground: oklch(0.272 0.027 182.442);
  --secondary: oklch(0.303 0.003 185.219);
  --secondary-foreground: oklch(0.831 0.003 185.37);
  --accent: oklch(0.381 0.015 184.373);
  --accent-foreground: oklch(0.889 0.008 185.225);
  --destructive: oklch(0.645 0.241 29.041);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.954 0.012 185.12);
  --chart-1: oklch(0.954 0.012 185.12);
  --chart-2: oklch(0.303 0.003 185.219);
  --chart-3: oklch(0.381 0.015 184.373);
  --chart-4: oklch(0.333 0.003 185.212);
  --chart-5: oklch(0.955 0.013 185.088);
}