Watery for shadcn/ui

Watery is a shadcn/ui theme built around a vivid deep teal primary color (#0d8770) with vivid deep yellow accents (#87700d). The light mode uses a neutral background (#f7fdfc). Dark mode keeps the vivid deep teal primary (#0d8770) on a neutral background (#020807).

Color palette

TokenLightDark
Background
#f7fdfcmintcream
#020807black
Foreground
#000000black
#ffffffwhite
Card
#f3fbfamintcream
#030c0bblack
Card foreground
#000000black
#ffffffwhite
Popover
#f7fdfcmintcream
#020807black
Popover foreground
#000000black
#ffffffwhite
Primary
#0d8770teal
#0d8770teal
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#700d87purple
#700d87purple
Secondary foreground
#f2ccfalavender
#f2ccfalavender
Muted
#dfd5e1gainsboro
#281e2adarkslategray
Muted foreground
#453748darkslategray
#c4b7c8silver
Accent
#87700dolive
#87700dolive
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#700e01maroon
#fe3116orangered
Destructive foreground
#ffaea4lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#0d8770teal
#0d8770teal

Contrast

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

Light mode
Text on background20.35:1AAA
Text on card20.03:1AAA
Primary button4.47:1AA Large
Secondary button7.04:1AAA
Muted text7.80:1AAA
Accent4.81:1AA
Destructive6.78:1AA
Dark mode
Text on background20.17:1AAA
Text on card19.76:1AAA
Primary button4.47:1AA Large
Secondary button7.04:1AAA
Muted text8.40:1AAA
Accent4.81:1AA
Destructive3.71: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.988 0.006 184.159);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.885 0.02 320.011);
  --muted-foreground: oklch(0.36 0.033 320.069);
  --popover: oklch(0.988 0.006 184.159);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.983 0.008 184.082);
  --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.557 0.102 175.274);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.405 0.186 318.734);
  --secondary-foreground: oklch(0.891 0.074 320.062);
  --accent: oklch(0.552 0.109 94.591);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.35 0.133 31.706);
  --destructive-foreground: oklch(0.826 0.096 27.642);
  --ring: oklch(0.557 0.102 175.274);
  --chart-1: oklch(0.557 0.102 175.274);
  --chart-2: oklch(0.405 0.186 318.734);
  --chart-3: oklch(0.552 0.109 94.591);
  --chart-4: oklch(0.435 0.2 318.677);
  --chart-5: oklch(0.563 0.104 174.981);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.125 0.015 184.064);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.251 0.027 320.077);
  --muted-foreground: oklch(0.796 0.027 320.023);
  --popover: oklch(0.125 0.015 184.064);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.144 0.017 183.322);
  --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.557 0.102 175.274);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.405 0.186 318.734);
  --secondary-foreground: oklch(0.891 0.074 320.062);
  --accent: oklch(0.552 0.109 94.591);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.643 0.24 30.953);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.557 0.102 175.274);
  --chart-1: oklch(0.557 0.102 175.274);
  --chart-2: oklch(0.405 0.186 318.734);
  --chart-3: oklch(0.552 0.109 94.591);
  --chart-4: oklch(0.435 0.2 318.677);
  --chart-5: oklch(0.563 0.104 174.981);
}