Watery for shadcn/ui

Watery is a shadcn/ui theme built around a deep purple primary color (#4d1a48) with deep pink accents (#4d1a2f). The light mode uses a neutral background (#fefbfe). Dark mode keeps the deep purple primary (#4d1a48) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fefbfewhite
#000000black
Foreground
#040104black
#fcf8fbsnow
Card
#fdf7fdsnow
#030303black
Card foreground
#000000black
#fdfcfdwhite
Popover
#fefbfewhite
#000000black
Popover foreground
#040104black
#fcf8fbsnow
Primary
#4d1a48darkslategray
#4d1a48darkslategray
Primary foreground
#e6b3e1thistle
#e6b3e1thistle
Secondary
#371a4dmidnightblue
#371a4dmidnightblue
Secondary foreground
#d0b3e6thistle
#d0b3e6thistle
Muted
#ebe8edlavender
#151217black
Muted foreground
#5a565ddimgray
#a6a2a9darkgray
Accent
#4d1a2fdarkslategray
#4d1a2fdarkslategray
Accent foreground
#e6b3c8thistle
#e6b3c8thistle
Destructive
#a52103firebrick
#fa3e14orangered
Destructive foreground
#fee2dcmistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#4d1a48darkslategray
#4d1a48darkslategray

Contrast

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

Light mode
Text on background20.19:1AAA
Text on card19.85:1AAA
Primary button7.68:1AAA
Secondary button7.97:1AAA
Muted text5.90:1AA
Accent7.78:1AAA
Destructive6.07:1AA
Dark mode
Text on background19.95:1AAA
Text on card20.20:1AAA
Primary button7.68:1AAA
Secondary button7.97:1AAA
Muted text7.41:1AAA
Accent7.78:1AAA
Destructive3.63:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.005 328.119);
  --foreground: oklch(0.086 0.02 329.427);
  --muted: oklch(0.934 0.008 311.652);
  --muted-foreground: oklch(0.458 0.013 311.504);
  --popover: oklch(0.991 0.005 328.119);
  --popover-foreground: oklch(0.086 0.02 329.427);
  --card: oklch(0.982 0.01 328.175);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.315 0.1 331.054);
  --primary-foreground: oklch(0.826 0.085 329.087);
  --secondary: oklch(0.285 0.093 308.522);
  --secondary-foreground: oklch(0.808 0.077 310.952);
  --accent: oklch(0.302 0.081 357.135);
  --accent-foreground: oklch(0.817 0.065 351.793);
  --destructive: oklch(0.469 0.171 32.892);
  --destructive-foreground: oklch(0.935 0.032 32.706);
  --ring: oklch(0.315 0.1 331.054);
  --chart-1: oklch(0.315 0.1 331.054);
  --chart-2: oklch(0.285 0.093 308.522);
  --chart-3: oklch(0.302 0.081 357.135);
  --chart-4: oklch(0.311 0.104 308.394);
  --chart-5: oklch(0.316 0.105 331.188);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.983 0.006 328.128);
  --muted: oklch(0.187 0.013 311.185);
  --muted-foreground: oklch(0.718 0.011 311.598);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.983 0.006 328.128);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(0.992 0.003 328.096);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.315 0.1 331.054);
  --primary-foreground: oklch(0.826 0.085 329.087);
  --secondary: oklch(0.285 0.093 308.522);
  --secondary-foreground: oklch(0.808 0.077 310.952);
  --accent: oklch(0.302 0.081 357.135);
  --accent-foreground: oklch(0.817 0.065 351.793);
  --destructive: oklch(0.647 0.228 33.162);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.315 0.1 331.054);
  --chart-1: oklch(0.315 0.1 331.054);
  --chart-2: oklch(0.285 0.093 308.522);
  --chart-3: oklch(0.302 0.081 357.135);
  --chart-4: oklch(0.311 0.104 308.394);
  --chart-5: oklch(0.316 0.105 331.188);
}