Waterlogged for shadcn/ui

Waterlogged is a shadcn/ui theme built around a near-black primary color (#030401) with near-black accents (#040103). The light mode uses a neutral background (#fbfdf6). Dark mode keeps the near-black primary (#030401) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fbfdf6snow
#000000black
Foreground
#000000black
#f8f9f6whitesmoke
Card
#fafdf2ivory
#030303black
Card foreground
#000000black
#fafbf9snow
Popover
#fafdf2ivory
#030303black
Popover foreground
#000000black
#fafbf9snow
Primary
#030401black
#030401black
Primary foreground
#84a72aolivedrab
#84a72aolivedrab
Secondary
#010304black
#010304black
Secondary foreground
#60b5d7mediumturquoise
#60b5d7mediumturquoise
Muted
#d9e3e7gainsboro
#182226black
Muted foreground
#506168dimgray
#97a8afdarkgray
Accent
#040103black
#040103black
Accent foreground
#d760b5orchid
#d760b5orchid
Destructive
#bc4f10chocolate
#ee7f3fcoral
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#030401black
#030401black

Contrast

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

Light mode
Text on background20.54:1AAA
Text on card20.32:1AAA
Primary button7.37:1AAA
Secondary button8.93:1AAA
Muted text4.97:1AA
Accent6.16:1AA
Destructive4.92:1AA
Dark mode
Text on background19.87:1AAA
Text on card19.92:1AAA
Primary button7.37:1AAA
Secondary button8.93:1AAA
Muted text6.61:1AA
Accent6.16:1AA
Destructive7.75:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.992 0.009 119.466);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.911 0.012 223.269);
  --muted-foreground: oklch(0.481 0.024 223.764);
  --popover: oklch(0.988 0.014 119.548);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.988 0.014 119.548);
  --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.103 0.016 119.277);
  --primary-foreground: oklch(0.679 0.153 124.478);
  --secondary: oklch(0.094 0.01 217.484);
  --secondary-foreground: oklch(0.734 0.096 226.181);
  --accent: oklch(0.085 0.019 335.831);
  --accent-foreground: oklch(0.663 0.179 339.762);
  --destructive: oklch(0.562 0.155 44.433);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.103 0.016 119.277);
  --chart-1: oklch(0.103 0.016 119.277);
  --chart-2: oklch(0.094 0.01 217.484);
  --chart-3: oklch(0.085 0.019 335.831);
  --chart-4: oklch(0.15 0.017 221.698);
  --chart-5: oklch(0.103 0.016 119.275);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.98 0.004 119.377);
  --muted: oklch(0.243 0.016 224.102);
  --muted-foreground: oklch(0.722 0.022 223.474);
  --popover: oklch(0.092 0 180);
  --popover-foreground: oklch(0.987 0.003 119.352);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(0.987 0.003 119.352);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.103 0.016 119.277);
  --primary-foreground: oklch(0.679 0.153 124.478);
  --secondary: oklch(0.094 0.01 217.484);
  --secondary-foreground: oklch(0.734 0.096 226.181);
  --accent: oklch(0.085 0.019 335.831);
  --accent-foreground: oklch(0.663 0.179 339.762);
  --destructive: oklch(0.711 0.157 48.157);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.103 0.016 119.277);
  --chart-1: oklch(0.103 0.016 119.277);
  --chart-2: oklch(0.094 0.01 217.484);
  --chart-3: oklch(0.085 0.019 335.831);
  --chart-4: oklch(0.15 0.017 221.698);
  --chart-5: oklch(0.103 0.016 119.275);
}