Waterlogged for shadcn/ui

Waterlogged is a shadcn/ui theme built around a muted green primary color (#70846c) with muted red accents (#846c70). The light mode uses a neutral background (#fcfdfb). Dark mode keeps the muted green primary (#70846c) on a neutral background (#040703).

Color palette

TokenLightDark
Background
#fcfdfbsnow
#040703black
Foreground
#010501black
#ffffffwhite
Card
#f9fcf8mintcream
#060a05black
Card foreground
#000000black
#ffffffwhite
Popover
#fcfdfbsnow
#040703black
Popover foreground
#010501black
#ffffffwhite
Primary
#70846cgray
#70846cgray
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#6c7084slategray
#6c7084slategray
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#f1f2f3whitesmoke
#0c0c0eblack
Muted foreground
#3d3f48darkslategray
#b7b9c2silver
Accent
#846c70gray
#846c70gray
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#c4470echocolate
#e55310chocolate
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#70846cgray
#70846cgray

Contrast

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

Light mode
Text on background20.16:1AAA
Text on card20.27:1AAA
Primary button4.04:1AA Large
Secondary button4.90:1AA
Muted text9.34:1AAA
Accent4.82:1AA
Destructive4.94:1AA
Dark mode
Text on background20.25:1AAA
Text on card19.90:1AAA
Primary button4.04:1AA Large
Secondary button4.90:1AA
Muted text9.98:1AAA
Accent4.82:1AA
Destructive3.76:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.003 140.527);
  --foreground: oklch(0.1 0.024 138.124);
  --muted: oklch(0.96 0.002 277.231);
  --muted-foreground: oklch(0.368 0.015 276.651);
  --popover: oklch(0.994 0.003 140.527);
  --popover-foreground: oklch(0.1 0.024 138.124);
  --card: oklch(0.987 0.006 140.522);
  --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.59 0.043 140.423);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.548 0.031 276.399);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.555 0.031 6.868);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.563 0.17 40.201);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.59 0.043 140.423);
  --chart-1: oklch(0.59 0.043 140.423);
  --chart-2: oklch(0.548 0.031 276.399);
  --chart-3: oklch(0.555 0.031 6.868);
  --chart-4: oklch(0.573 0.033 276.393);
  --chart-5: oklch(0.596 0.055 140.397);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.121 0.014 139.413);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.155 0.003 276.97);
  --muted-foreground: oklch(0.788 0.013 277.036);
  --popover: oklch(0.121 0.014 139.413);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.138 0.016 139.414);
  --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.59 0.043 140.423);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.548 0.031 276.399);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.555 0.031 6.868);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.632 0.193 39.954);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.59 0.043 140.423);
  --chart-1: oklch(0.59 0.043 140.423);
  --chart-2: oklch(0.548 0.031 276.399);
  --chart-3: oklch(0.555 0.031 6.868);
  --chart-4: oklch(0.573 0.033 276.393);
  --chart-5: oklch(0.596 0.055 140.397);
}