Bathroom for shadcn/ui

Bathroom is a shadcn/ui theme built around a muted deep red primary color (#362121) with muted light red accents (#d5c3c3). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted deep red primary (#362121) on a red-tinted background (#0c0304).

Color palette

TokenLightDark
Background
#ffffffwhite
#0c0304black
Foreground
#150505black
#ffffffwhite
Card
#fcfcfcsnow
#100405black
Card foreground
#100404black
#ffffffwhite
Popover
#ffffffwhite
#0c0304black
Popover foreground
#150505black
#ffffffwhite
Primary
#362121darkslategray
#362121darkslategray
Primary foreground
#d3b6b6silver
#d3b6b6silver
Secondary
#e4ddddgainsboro
#302c2cdarkslategray
Secondary foreground
#503f3fdarkslategray
#cac4c4silver
Muted
#e3dedegainsboro
#211c1cblack
Muted foreground
#433d3ddarkslategray
#c2bcbcsilver
Accent
#d5c3c3silver
#4a3a3bdarkslategray
Accent foreground
#3c2a2adarkslategray
#e0d7d7gainsboro
Destructive
#711d0amaroon
#ee5b3atomato
Destructive foreground
#f8c0b4lightpink
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#362121darkslategray
#362121darkslategray

Contrast

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

Light mode
Text on background19.89:1AAA
Text on card19.73:1AAA
Primary button8.00:1AAA
Secondary button7.37:1AAA
Muted text7.97:1AAA
Accent7.97:1AAA
Destructive7.04:1AAA
Dark mode
Text on background20.35:1AAA
Text on card20.12:1AAA
Primary button8.00:1AAA
Secondary button8.04:1AAA
Muted text8.99:1AAA
Accent7.55:1AAA
Destructive6.18:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.144 0.031 20.23);
  --muted: oklch(0.904 0.006 16.091);
  --muted-foreground: oklch(0.365 0.009 16.407);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.144 0.031 20.23);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.131 0.027 19.834);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.274 0.034 18.394);
  --primary-foreground: oklch(0.801 0.034 16.74);
  --secondary: oklch(0.903 0.008 16.131);
  --secondary-foreground: oklch(0.385 0.024 17.122);
  --accent: oklch(0.832 0.021 16.42);
  --accent-foreground: oklch(0.306 0.028 17.678);
  --destructive: oklch(0.366 0.121 33.757);
  --destructive-foreground: oklch(0.856 0.067 32.898);
  --ring: oklch(0.274 0.034 18.394);
  --chart-1: oklch(0.274 0.034 18.394);
  --chart-2: oklch(0.903 0.008 16.131);
  --chart-3: oklch(0.832 0.021 16.42);
  --chart-4: oklch(0.927 0.006 16.088);
  --chart-5: oklch(0.272 0.038 18.759);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.119 0.021 19.062);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.232 0.009 16.645);
  --muted-foreground: oklch(0.801 0.007 16.133);
  --popover: oklch(0.119 0.021 19.062);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.132 0.024 19.336);
  --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.274 0.034 18.394);
  --primary-foreground: oklch(0.801 0.034 16.74);
  --secondary: oklch(0.296 0.007 16.378);
  --secondary-foreground: oklch(0.825 0.006 16.108);
  --accent: oklch(0.367 0.023 17.106);
  --accent-foreground: oklch(0.886 0.009 16.162);
  --destructive: oklch(0.659 0.188 34.145);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.274 0.034 18.394);
  --chart-1: oklch(0.274 0.034 18.394);
  --chart-2: oklch(0.296 0.007 16.378);
  --chart-3: oklch(0.367 0.023 17.106);
  --chart-4: oklch(0.326 0.008 16.392);
  --chart-5: oklch(0.272 0.038 18.759);
}