Washtub for shadcn/ui

Washtub is a shadcn/ui theme built around a muted red primary color (#b29595) with muted teal accents (#95b2b1). The light mode uses a neutral background (#fdf7f7). Dark mode keeps the muted red primary (#b29595) on a neutral background (#040202).

Color palette

TokenLightDark
Background
#fdf7f7snow
#040202black
Foreground
#140506black
#fdfcfcsnow
Card
#fdf7f7snow
#040202black
Card foreground
#140506black
#fdfcfcsnow
Popover
#fdf7f7snow
#040202black
Popover foreground
#140506black
#fdfcfcsnow
Primary
#b29595rosybrown
#b29595rosybrown
Primary foreground
#0c0909black
#0c0909black
Secondary
#95b2b1darkgray
#95b2b1darkgray
Secondary foreground
#090c0cblack
#090c0cblack
Muted
#cae8e7gainsboro
#173534darkslategray
Muted foreground
#424343darkslategray
#bcbdbdsilver
Accent
#95b2b1darkgray
#95b2b1darkgray
Accent foreground
#090c0cblack
#090c0cblack
Destructive
#b5200dfirebrick
#f03b24orangered
Destructive foreground
#fef6f5lavenderblush
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#b29595rosybrown
#b29595rosybrown

Contrast

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

Light mode
Text on background18.76:1AAA
Text on card18.76:1AAA
Primary button7.17:1AAA
Secondary button8.66:1AAA
Muted text7.63:1AAA
Accent8.66:1AAA
Destructive6.19:1AA
Dark mode
Text on background20.26:1AAA
Text on card20.26:1AAA
Primary button7.17:1AAA
Secondary button8.66:1AAA
Muted text6.97:1AA
Accent8.66:1AAA
Destructive3.92:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.98 0.007 14.924);
  --foreground: oklch(0.144 0.029 18.656);
  --muted: oklch(0.908 0.031 194.152);
  --muted-foreground: oklch(0.381 0.002 194.703);
  --popover: oklch(0.98 0.007 14.924);
  --popover-foreground: oklch(0.144 0.029 18.656);
  --card: oklch(0.98 0.007 14.924);
  --card-foreground: oklch(0.144 0.029 18.656);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.695 0.035 15.768);
  --primary-foreground: oklch(0.142 0.006 15.426);
  --secondary: oklch(0.741 0.032 193.99);
  --secondary-foreground: oklch(0.15 0.005 194.162);
  --accent: oklch(0.741 0.032 193.99);
  --accent-foreground: oklch(0.15 0.005 194.162);
  --destructive: oklch(0.5 0.186 30.966);
  --destructive-foreground: oklch(0.98 0.009 26.499);
  --ring: oklch(0.695 0.035 15.768);
  --chart-1: oklch(0.695 0.035 15.768);
  --chart-2: oklch(0.741 0.032 193.99);
  --chart-3: oklch(0.741 0.032 193.99);
  --chart-4: oklch(0.763 0.029 194.079);
  --chart-5: oklch(0.692 0.042 15.973);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.086 0.009 16.335);
  --foreground: oklch(0.991 0.002 14.827);
  --muted: oklch(0.306 0.036 192.595);
  --muted-foreground: oklch(0.798 0.001 194.755);
  --popover: oklch(0.086 0.009 16.335);
  --popover-foreground: oklch(0.991 0.002 14.827);
  --card: oklch(0.086 0.009 16.335);
  --card-foreground: oklch(0.991 0.002 14.827);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.695 0.035 15.768);
  --primary-foreground: oklch(0.142 0.006 15.426);
  --secondary: oklch(0.741 0.032 193.99);
  --secondary-foreground: oklch(0.15 0.005 194.162);
  --accent: oklch(0.741 0.032 193.99);
  --accent-foreground: oklch(0.15 0.005 194.162);
  --destructive: oklch(0.627 0.219 31.03);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.695 0.035 15.768);
  --chart-1: oklch(0.695 0.035 15.768);
  --chart-2: oklch(0.741 0.032 193.99);
  --chart-3: oklch(0.741 0.032 193.99);
  --chart-4: oklch(0.763 0.029 194.079);
  --chart-5: oklch(0.692 0.042 15.973);
}