Musty for shadcn/ui

Musty is a shadcn/ui theme built around a pink primary color (#8e1a68) with red accents (#8e1a2d). The light mode uses a neutral background (#fcf7fb). Dark mode keeps the pink primary (#8e1a68) on a pink-tinted background (#0b0509).

Color palette

TokenLightDark
Background
#fcf7fbsnow
#0b0509black
Foreground
#000000black
#ffffffwhite
Card
#fcf7fbsnow
#0b0509black
Card foreground
#000000black
#ffffffwhite
Popover
#fcf7fbsnow
#0b0509black
Popover foreground
#000000black
#ffffffwhite
Primary
#8e1a68purple
#8e1a68purple
Primary foreground
#f9e1f1lavenderblush
#f9e1f1lavenderblush
Secondary
#7b1a8epurple
#7b1a8epurple
Secondary foreground
#f5e1f9lavender
#f5e1f9lavender
Muted
#e2cbe7gainsboro
#301834darkslategray
Muted foreground
#695b6bdimgray
#a194a4darkgray
Accent
#8e1a2dbrown
#8e1a2dbrown
Accent foreground
#f9e1e5mistyrose
#f9e1e5mistyrose
Destructive
#952f09saddlebrown
#f26836tomato
Destructive foreground
#fcdfd4antiquewhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#8e1a68purple
#8e1a68purple

Contrast

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

Light mode
Text on background19.90:1AAA
Text on card19.90:1AAA
Primary button6.82:1AA
Secondary button7.14:1AAA
Muted text4.19:1AA Large
Accent7.23:1AAA
Destructive6.22:1AA
Dark mode
Text on background20.23:1AAA
Text on card20.23:1AAA
Primary button6.82:1AA
Secondary button7.14:1AAA
Muted text5.58:1AA
Accent7.23:1AAA
Destructive6.81:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.982 0.007 337.403);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.869 0.046 320.612);
  --muted-foreground: oklch(0.491 0.03 320.623);
  --popover: oklch(0.982 0.007 337.403);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.982 0.007 337.403);
  --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.444 0.168 345.492);
  --primary-foreground: oklch(0.934 0.034 337.991);
  --secondary: oklch(0.435 0.186 320.094);
  --secondary-foreground: oklch(0.933 0.039 320.596);
  --accent: oklch(0.425 0.15 18.056);
  --accent-foreground: oklch(0.93 0.028 6.209);
  --destructive: oklch(0.453 0.143 37.427);
  --destructive-foreground: oklch(0.924 0.036 41.056);
  --ring: oklch(0.444 0.168 345.492);
  --chart-1: oklch(0.444 0.168 345.492);
  --chart-2: oklch(0.435 0.186 320.094);
  --chart-3: oklch(0.425 0.15 18.056);
  --chart-4: oklch(0.463 0.199 320.065);
  --chart-5: oklch(0.447 0.172 345.841);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.126 0.016 337.556);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.255 0.06 320.76);
  --muted-foreground: oklch(0.682 0.028 320.593);
  --popover: oklch(0.126 0.016 337.556);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.126 0.016 337.556);
  --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.444 0.168 345.492);
  --primary-foreground: oklch(0.934 0.034 337.991);
  --secondary: oklch(0.435 0.186 320.094);
  --secondary-foreground: oklch(0.933 0.039 320.596);
  --accent: oklch(0.425 0.15 18.056);
  --accent-foreground: oklch(0.93 0.028 6.209);
  --destructive: oklch(0.681 0.182 39.363);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.444 0.168 345.492);
  --chart-1: oklch(0.444 0.168 345.492);
  --chart-2: oklch(0.435 0.186 320.094);
  --chart-3: oklch(0.425 0.15 18.056);
  --chart-4: oklch(0.463 0.199 320.065);
  --chart-5: oklch(0.447 0.172 345.841);
}