Vibrissae for shadcn/ui

Vibrissae is a shadcn/ui theme built around a muted pink primary color (#98718b) with muted red accents (#987178). The light mode uses a neutral background (#fcf8fb). Dark mode keeps the muted pink primary (#98718b) on a pink-tinted background (#0c0409).

Color palette

TokenLightDark
Background
#fcf8fbsnow
#0c0409black
Foreground
#10050cblack
#fdfcfdwhite
Card
#fcf8fbsnow
#0c0409black
Card foreground
#10050cblack
#fdfcfdwhite
Popover
#fcf8fbsnow
#0c0409black
Popover foreground
#10050cblack
#fdfcfdwhite
Primary
#98718bgray
#98718bgray
Primary foreground
#000000black
#000000black
Secondary
#927198gray
#927198gray
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#eae5eblavender
#19141ablack
Muted foreground
#5c565ddimgray
#a8a2a9darkgray
Accent
#987178gray
#987178gray
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#e30202red
#fd0d0dred
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#98718bgray
#98718bgray

Contrast

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

Light mode
Text on background19.01:1AAA
Text on card19.01:1AAA
Primary button5.07:1AA
Secondary button4.17:1AA Large
Muted text5.73:1AA
Accent4.22:1AA Large
Destructive4.90:1AA
Dark mode
Text on background19.82:1AAA
Text on card19.82:1AAA
Primary button5.07:1AA
Secondary button4.17:1AA Large
Muted text7.27:1AAA
Accent4.22:1AA Large
Destructive4.02:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.983 0.005 337.374);
  --foreground: oklch(0.137 0.028 339.429);
  --muted: oklch(0.927 0.01 320.549);
  --muted-foreground: oklch(0.46 0.014 320.577);
  --popover: oklch(0.983 0.005 337.374);
  --popover-foreground: oklch(0.137 0.028 339.429);
  --card: oklch(0.983 0.005 337.374);
  --card-foreground: oklch(0.137 0.028 339.429);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.596 0.061 339.221);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.594 0.07 320.695);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.59 0.05 7.623);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.576 0.236 29.16);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.596 0.061 339.221);
  --chart-1: oklch(0.596 0.061 339.221);
  --chart-2: oklch(0.594 0.07 320.695);
  --chart-3: oklch(0.59 0.05 7.623);
  --chart-4: oklch(0.621 0.065 320.68);
  --chart-5: oklch(0.594 0.073 339.58);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.123 0.023 337.874);
  --foreground: oklch(0.992 0.001 337.291);
  --muted: oklch(0.199 0.015 320.644);
  --muted-foreground: oklch(0.72 0.012 320.558);
  --popover: oklch(0.123 0.023 337.874);
  --popover-foreground: oklch(0.992 0.001 337.291);
  --card: oklch(0.123 0.023 337.874);
  --card-foreground: oklch(0.992 0.001 337.291);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.596 0.061 339.221);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.594 0.07 320.695);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.59 0.05 7.623);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.626 0.253 28.913);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.596 0.061 339.221);
  --chart-1: oklch(0.596 0.061 339.221);
  --chart-2: oklch(0.594 0.07 320.695);
  --chart-3: oklch(0.59 0.05 7.623);
  --chart-4: oklch(0.621 0.065 320.68);
  --chart-5: oklch(0.594 0.073 339.58);
}