Bathrobe for shadcn/ui

Bathrobe is a shadcn/ui theme built around a muted purple primary color (#bfb3c2) with muted pink accents (#c2b3bd). The light mode uses a neutral background (#fbf8fc). Dark mode keeps the muted purple primary (#bfb3c2) on a purple-tinted background (#0a040c).

Color palette

TokenLightDark
Background
#fbf8fcghostwhite
#0a040cblack
Foreground
#040104black
#fdfcfdwhite
Card
#f9f5faghostwhite
#0e050fblack
Card foreground
#000000black
#ffffffwhite
Popover
#f9f5faghostwhite
#0e050fblack
Popover foreground
#000000black
#ffffffwhite
Primary
#bfb3c2silver
#bfb3c2silver
Primary foreground
#241e25black
#241e25black
Secondary
#b8b3c2silver
#b8b3c2silver
Secondary foreground
#201e25black
#201e25black
Muted
#dfdce5gainsboro
#1d1a23black
Muted foreground
#4f495adarkslategray
#aba5b6darkgray
Accent
#c2b3bdsilver
#c2b3bdsilver
Accent foreground
#251e22black
#251e22black
Destructive
#8f3305saddlebrown
#f65809orangered
Destructive foreground
#fddac9bisque
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#bfb3c2silver
#bfb3c2silver

Contrast

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

Light mode
Text on background19.73:1AAA
Text on card19.44:1AAA
Primary button8.08:1AAA
Secondary button8.02:1AAA
Muted text6.36:1AA
Accent8.10:1AAA
Destructive6.08:1AA
Dark mode
Text on background19.83:1AAA
Text on card20.05:1AAA
Primary button8.08:1AAA
Secondary button8.02:1AAA
Muted text7.17:1AAA
Accent8.10:1AAA
Destructive3.32:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.983 0.005 320.54);
  --foreground: oklch(0.083 0.024 322.875);
  --muted: oklch(0.899 0.013 301.264);
  --muted-foreground: oklch(0.419 0.028 300.426);
  --popover: oklch(0.974 0.008 320.545);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.974 0.008 320.545);
  --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.781 0.025 320.581);
  --primary-foreground: oklch(0.243 0.016 320.632);
  --secondary: oklch(0.774 0.022 301.036);
  --secondary-foreground: oklch(0.239 0.014 300.533);
  --accent: oklch(0.781 0.022 337.826);
  --accent-foreground: oklch(0.243 0.014 338.406);
  --destructive: oklch(0.448 0.134 41.184);
  --destructive-foreground: oklch(0.914 0.045 48.201);
  --ring: oklch(0.781 0.025 320.581);
  --chart-1: oklch(0.781 0.025 320.581);
  --chart-2: oklch(0.774 0.022 301.036);
  --chart-3: oklch(0.781 0.022 337.826);
  --chart-4: oklch(0.8 0.019 301.104);
  --chart-5: oklch(0.778 0.032 320.595);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.123 0.025 321.993);
  --foreground: oklch(0.991 0.003 320.536);
  --muted: oklch(0.225 0.018 300.189);
  --muted-foreground: oklch(0.732 0.024 300.965);
  --popover: oklch(0.136 0.029 321.355);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.136 0.029 321.355);
  --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.781 0.025 320.581);
  --primary-foreground: oklch(0.243 0.016 320.632);
  --secondary: oklch(0.774 0.022 301.036);
  --secondary-foreground: oklch(0.239 0.014 300.533);
  --accent: oklch(0.781 0.022 337.826);
  --accent-foreground: oklch(0.243 0.014 338.406);
  --destructive: oklch(0.665 0.206 39.94);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.781 0.025 320.581);
  --chart-1: oklch(0.781 0.025 320.581);
  --chart-2: oklch(0.774 0.022 301.036);
  --chart-3: oklch(0.781 0.022 337.826);
  --chart-4: oklch(0.8 0.019 301.104);
  --chart-5: oklch(0.778 0.032 320.595);
}