Whispered for shadcn/ui

Whispered is a shadcn/ui theme built around a red primary color (#b46478) with muted light red accents (#d6b8bf). The light mode uses a neutral background (#fcf8f9). Dark mode keeps the red primary (#b46478) on a red-tinted background (#0e0708).

Color palette

TokenLightDark
Background
#fcf8f9snow
#0e0708black
Foreground
#000000black
#ffffffwhite
Card
#fcf8f9snow
#0e0708black
Card foreground
#000000black
#ffffffwhite
Popover
#fcf8f9snow
#0e0708black
Popover foreground
#000000black
#ffffffwhite
Primary
#b46478indianred
#b46478indianred
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#e6dbdegainsboro
#211c1dblack
Secondary foreground
#543b41darkslategray
#beb1b4silver
Muted
#e5d2d6gainsboro
#2d1a1fblack
Muted foreground
#4c4345darkslategray
#bcb3b5silver
Accent
#d6b8bfsilver
#36262adarkslategray
Accent foreground
#3a2228darkslategray
#d0bdc2silver
Destructive
#971311darkred
#e93d3acrimson
Destructive foreground
#fbdfdfmistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#b46478indianred
#b46478indianred

Contrast

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

Light mode
Text on background19.94:1AAA
Text on card19.94:1AAA
Primary button4.15:1AA Large
Secondary button7.47:1AAA
Muted text6.59:1AA
Accent7.95:1AAA
Destructive6.89:1AA
Dark mode
Text on background19.97:1AAA
Text on card19.97:1AAA
Primary button4.15:1AA Large
Secondary button8.11:1AAA
Muted text8.00:1AAA
Accent8.00:1AAA
Destructive4.04:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.983 0.004 359.974);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.88 0.022 0.572);
  --muted-foreground: oklch(0.393 0.012 0.726);
  --popover: oklch(0.983 0.004 359.974);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.983 0.004 359.974);
  --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.601 0.105 4.725);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.901 0.013 0.259);
  --secondary-foreground: oklch(0.382 0.038 2.541);
  --accent: oklch(0.81 0.036 1.094);
  --accent-foreground: oklch(0.284 0.039 3.632);
  --destructive: oklch(0.435 0.166 28.251);
  --destructive-foreground: oklch(0.928 0.031 18.892);
  --ring: oklch(0.601 0.105 4.725);
  --chart-1: oklch(0.601 0.105 4.725);
  --chart-2: oklch(0.901 0.013 0.259);
  --chart-3: oklch(0.81 0.036 1.094);
  --chart-4: oklch(0.926 0.009 0.151);
  --chart-5: oklch(0.599 0.114 5.198);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.138 0.014 0.743);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.245 0.032 3.376);
  --muted-foreground: oklch(0.775 0.01 0.234);
  --popover: oklch(0.138 0.014 0.743);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.138 0.014 0.743);
  --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.601 0.105 4.725);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.233 0.009 0.928);
  --secondary-foreground: oklch(0.773 0.015 0.42);
  --accent: oklch(0.289 0.024 2.163);
  --accent-foreground: oklch(0.817 0.023 0.633);
  --destructive: oklch(0.619 0.21 26.574);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.601 0.105 4.725);
  --chart-1: oklch(0.601 0.105 4.725);
  --chart-2: oklch(0.233 0.009 0.928);
  --chart-3: oklch(0.289 0.024 2.163);
  --chart-4: oklch(0.264 0.011 1.001);
  --chart-5: oklch(0.599 0.114 5.198);
}