Whirlpool for shadcn/ui

Whirlpool is a shadcn/ui theme built around a vivid green primary color (#6bdf0c) with muted light green accents (#d6dcd1). The light mode uses a neutral background (#fafcf8). Dark mode keeps the vivid green primary (#6bdf0c) on a green-tinted background (#0a1004).

Color palette

TokenLightDark
Background
#fafcf8snow
#0a1004black
Foreground
#0c1405black
#f7f8f6whitesmoke
Card
#fafcf8snow
#0a1004black
Card foreground
#0c1405black
#f7f8f6whitesmoke
Popover
#fafcf8snow
#0a1004black
Popover foreground
#0c1405black
#f7f8f6whitesmoke
Primary
#6bdf0clawngreen
#6bdf0clawngreen
Primary foreground
#0e1d02black
#0e1d02black
Secondary
#d6dcd1lightgrey
#303928darkslategray
Secondary foreground
#3c4535darkslategray
#c8d3c0silver
Muted
#dee0dcgainsboro
#21231fblack
Muted foreground
#495242darkslategray
#b4bdadsilver
Accent
#d6dcd1lightgrey
#303928darkslategray
Accent foreground
#3c4535darkslategray
#c8d3c0silver
Destructive
#cd4513chocolate
#db4914chocolate
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#6bdf0clawngreen
#6bdf0clawngreen

Contrast

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

Light mode
Text on background18.21:1AAA
Text on card18.21:1AAA
Primary button10.18:1AAA
Secondary button7.13:1AAA
Muted text6.12:1AA
Accent7.13:1AAA
Destructive4.70:1AA
Dark mode
Text on background18.08:1AAA
Text on card18.08:1AAA
Primary button10.18:1AAA
Secondary button7.76:1AAA
Muted text8.18:1AAA
Accent7.76:1AAA
Destructive4.20:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.989 0.007 130.502);
  --foreground: oklch(0.179 0.033 131.545);
  --muted: oklch(0.903 0.005 130.488);
  --muted-foreground: oklch(0.426 0.029 131.092);
  --popover: oklch(0.989 0.007 130.502);
  --popover-foreground: oklch(0.179 0.033 131.545);
  --card: oklch(0.989 0.007 130.502);
  --card-foreground: oklch(0.179 0.033 131.545);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.803 0.239 136.594);
  --primary-foreground: oklch(0.21 0.055 132.46);
  --secondary: oklch(0.886 0.016 130.604);
  --secondary-foreground: oklch(0.378 0.029 131.185);
  --accent: oklch(0.886 0.016 130.604);
  --accent-foreground: oklch(0.378 0.029 131.185);
  --destructive: oklch(0.577 0.181 37.56);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.803 0.239 136.594);
  --chart-1: oklch(0.803 0.239 136.594);
  --chart-2: oklch(0.886 0.016 130.604);
  --chart-3: oklch(0.886 0.016 130.604);
  --chart-4: oklch(0.907 0.013 130.569);
  --chart-5: oklch(0.812 0.243 136.803);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.163 0.029 130.416);
  --foreground: oklch(0.979 0.003 130.469);
  --muted: oklch(0.252 0.007 130.689);
  --muted-foreground: oklch(0.787 0.025 130.735);
  --popover: oklch(0.163 0.029 130.416);
  --popover-foreground: oklch(0.979 0.003 130.469);
  --card: oklch(0.163 0.029 130.416);
  --card-foreground: oklch(0.979 0.003 130.469);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.803 0.239 136.594);
  --primary-foreground: oklch(0.21 0.055 132.46);
  --secondary: oklch(0.331 0.032 131.421);
  --secondary-foreground: oklch(0.854 0.029 130.757);
  --accent: oklch(0.331 0.032 131.421);
  --accent-foreground: oklch(0.854 0.029 130.757);
  --destructive: oklch(0.606 0.191 37.487);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.803 0.239 136.594);
  --chart-1: oklch(0.803 0.239 136.594);
  --chart-2: oklch(0.331 0.032 131.421);
  --chart-3: oklch(0.331 0.032 131.421);
  --chart-4: oklch(0.364 0.037 131.452);
  --chart-5: oklch(0.812 0.243 136.803);
}