Waterspout for shadcn/ui

Waterspout is a shadcn/ui theme built around a vivid yellow primary color (#f3ea6d) with vivid purple accents (#ea6df3). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid yellow primary (#f3ea6d) on a neutral background (#040401).

Color palette

TokenLightDark
Background
#ffffffwhite
#040401black
Foreground
#161503black
#ffffffwhite
Card
#ffffffwhite
#040401black
Card foreground
#161503black
#ffffffwhite
Popover
#ffffffwhite
#040401black
Popover foreground
#161503black
#ffffffwhite
Primary
#f3ea6dkhaki
#f3ea6dkhaki
Primary foreground
#2a2803black
#2a2803black
Secondary
#6df3eaaquamarine
#6df3eaaquamarine
Secondary foreground
#032a28black
#032a28black
Muted
#eff5f5whitesmoke
#0a1010black
Muted foreground
#666666dimgray
#999999darkgray
Accent
#ea6df3violet
#ea6df3violet
Accent foreground
#28032ablack
#28032ablack
Destructive
#d7370forangered
#db380forangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#f3ea6dkhaki
#f3ea6dkhaki

Contrast

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

Light mode
Text on background18.37:1AAA
Text on card18.37:1AAA
Primary button11.99:1AAA
Secondary button11.47:1AAA
Muted text5.22:1AA
Accent7.01:1AAA
Destructive4.74:1AA
Dark mode
Text on background20.55:1AAA
Text on card20.55:1AAA
Primary button11.99:1AAA
Secondary button11.47:1AAA
Muted text6.74:1AA
Accent7.01:1AAA
Destructive4.56:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.192 0.034 105.708);
  --muted: oklch(0.967 0.007 192.28);
  --muted-foreground: oklch(0.51 0 171.87);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.192 0.034 105.708);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.192 0.034 105.708);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.921 0.147 105.161);
  --primary-foreground: oklch(0.271 0.053 105.379);
  --secondary: oklch(0.888 0.119 189.282);
  --secondary-foreground: oklch(0.26 0.042 188.284);
  --accent: oklch(0.732 0.221 324.913);
  --accent-foreground: oklch(0.202 0.084 325.227);
  --destructive: oklch(0.579 0.202 33.801);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.921 0.147 105.161);
  --chart-1: oklch(0.921 0.147 105.161);
  --chart-2: oklch(0.888 0.119 189.282);
  --chart-3: oklch(0.732 0.221 324.913);
  --chart-4: oklch(0.896 0.11 189.608);
  --chart-5: oklch(0.927 0.15 105.179);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.102 0.013 105.814);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.166 0.01 191.159);
  --muted-foreground: oklch(0.683 0 180);
  --popover: oklch(0.102 0.013 105.814);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.102 0.013 105.814);
  --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.921 0.147 105.161);
  --primary-foreground: oklch(0.271 0.053 105.379);
  --secondary: oklch(0.888 0.119 189.282);
  --secondary-foreground: oklch(0.26 0.042 188.284);
  --accent: oklch(0.732 0.221 324.913);
  --accent-foreground: oklch(0.202 0.084 325.227);
  --destructive: oklch(0.588 0.205 33.784);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.921 0.147 105.161);
  --chart-1: oklch(0.921 0.147 105.161);
  --chart-2: oklch(0.888 0.119 189.282);
  --chart-3: oklch(0.732 0.221 324.913);
  --chart-4: oklch(0.896 0.11 189.608);
  --chart-5: oklch(0.927 0.15 105.179);
}