Waterlogged for shadcn/ui

Waterlogged is a shadcn/ui theme built around a deep cyan primary color (#0c242d) with deep green accents (#242d0c). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep cyan primary (#0c242d) on a cyan-tinted background (#070c0d).

Color palette

TokenLightDark
Background
#ffffffwhite
#070c0dblack
Foreground
#000000black
#fcfdfdwhite
Card
#fcfcfcsnow
#090f11black
Card foreground
#000000black
#ffffffwhite
Popover
#fcfcfcsnow
#090f11black
Popover foreground
#000000black
#ffffffwhite
Primary
#0c242dblack
#0c242dblack
Primary foreground
#89cbe1skyblue
#89cbe1skyblue
Secondary
#2d0c24black
#2d0c24black
Secondary foreground
#e189cborchid
#e189cborchid
Muted
#f1e4eelavender
#1b0e18black
Muted foreground
#463e44darkslategray
#c1b9bfsilver
Accent
#242d0cblack
#242d0cblack
Accent foreground
#a7cc38yellowgreen
#a7cc38yellowgreen
Destructive
#730e0dmaroon
#eb4a47tomato
Destructive foreground
#f7bbbalightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#0c242dblack
#0c242dblack

Contrast

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

Light mode
Text on background21.00:1AAA
Text on card20.54:1AAA
Primary button8.93:1AAA
Secondary button7.28:1AAA
Muted text8.40:1AAA
Accent7.81:1AAA
Destructive7.10:1AAA
Dark mode
Text on background19.31:1AAA
Text on card19.33:1AAA
Primary button8.93:1AAA
Secondary button7.28:1AAA
Muted text9.77:1AAA
Accent7.81:1AAA
Destructive3.75:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.932 0.019 334.22);
  --muted-foreground: oklch(0.375 0.015 334.521);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.992 0 161.565);
  --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.246 0.034 222.767);
  --primary-foreground: oklch(0.805 0.073 220.853);
  --secondary: oklch(0.219 0.065 338.61);
  --secondary-foreground: oklch(0.743 0.134 336.684);
  --accent: oklch(0.279 0.054 121.804);
  --accent-foreground: oklch(0.791 0.173 122.803);
  --destructive: oklch(0.358 0.134 27.952);
  --destructive-foreground: oklch(0.847 0.07 19.75);
  --ring: oklch(0.246 0.034 222.767);
  --chart-1: oklch(0.246 0.034 222.767);
  --chart-2: oklch(0.219 0.065 338.61);
  --chart-3: oklch(0.279 0.054 121.804);
  --chart-4: oklch(0.251 0.079 338.937);
  --chart-5: oklch(0.248 0.036 223.04);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.149 0.009 218.868);
  --foreground: oklch(0.993 0.001 219.516);
  --muted: oklch(0.186 0.028 336.276);
  --muted-foreground: oklch(0.793 0.012 334.133);
  --popover: oklch(0.162 0.011 220.101);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.162 0.011 220.101);
  --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.246 0.034 222.767);
  --primary-foreground: oklch(0.805 0.073 220.853);
  --secondary: oklch(0.219 0.065 338.61);
  --secondary-foreground: oklch(0.743 0.134 336.684);
  --accent: oklch(0.279 0.054 121.804);
  --accent-foreground: oklch(0.791 0.173 122.803);
  --destructive: oklch(0.636 0.198 25.575);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.246 0.034 222.767);
  --chart-1: oklch(0.246 0.034 222.767);
  --chart-2: oklch(0.219 0.065 338.61);
  --chart-3: oklch(0.279 0.054 121.804);
  --chart-4: oklch(0.251 0.079 338.937);
  --chart-5: oklch(0.248 0.036 223.04);
}