Mushy for shadcn/ui

Mushy is a shadcn/ui theme built around a deep pink primary color (#5a3045) with neutral gray accents (#e1e0e0). The light mode uses a neutral background (#fdfcfc). Dark mode keeps the deep pink primary (#5a3045) on a neutral background (#080205).

Color palette

TokenLightDark
Background
#fdfcfcsnow
#080205black
Foreground
#15040dblack
#fdfcfcsnow
Card
#fbf8fasnow
#0c0408black
Card foreground
#11030ablack
#ffffffwhite
Popover
#fdfcfcsnow
#080205black
Popover foreground
#15040dblack
#fdfcfcsnow
Primary
#5a3045darkslategray
#5a3045darkslategray
Primary foreground
#e8d4degainsboro
#e8d4degainsboro
Secondary
#e1e0e0gainsboro
#372f33darkslategray
Secondary foreground
#494647darkslategray
#d0c8cclightgrey
Muted
#ead7e0gainsboro
#28151fblack
Muted foreground
#5b5759dimgray
#a8a4a6darkgray
Accent
#e1e0e0gainsboro
#372f33darkslategray
Accent foreground
#494647darkslategray
#d0c8cclightgrey
Destructive
#da5407chocolate
#f86c1bchocolate
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#5a3045darkslategray
#5a3045darkslategray

Contrast

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

Light mode
Text on background19.41:1AAA
Text on card19.17:1AAA
Primary button7.69:1AAA
Secondary button7.07:1AAA
Muted text5.17:1AA
Accent7.07:1AAA
Destructive4.00:1AA Large
Dark mode
Text on background20.04:1AAA
Text on card20.29:1AAA
Primary button7.69:1AAA
Secondary button7.93:1AAA
Muted text7.00:1AAA
Accent7.93:1AAA
Destructive7.16:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.992 0.002 345.194);
  --foreground: oklch(0.146 0.038 349.191);
  --muted: oklch(0.897 0.025 345.861);
  --muted-foreground: oklch(0.462 0.005 345.446);
  --popover: oklch(0.992 0.002 345.194);
  --popover-foreground: oklch(0.146 0.038 349.191);
  --card: oklch(0.983 0.004 345.245);
  --card-foreground: oklch(0.133 0.034 347.385);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.369 0.069 349.653);
  --primary-foreground: oklch(0.888 0.026 345.905);
  --secondary: oklch(0.907 0.002 345.189);
  --secondary-foreground: oklch(0.397 0.004 345.436);
  --accent: oklch(0.907 0.002 345.189);
  --accent-foreground: oklch(0.397 0.004 345.436);
  --destructive: oklch(0.615 0.182 42.341);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.369 0.069 349.653);
  --chart-1: oklch(0.369 0.069 349.653);
  --chart-2: oklch(0.907 0.002 345.189);
  --chart-3: oklch(0.907 0.002 345.189);
  --chart-4: oklch(0.931 0.001 345.177);
  --chart-5: oklch(0.369 0.075 350.098);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.107 0.018 344.975);
  --foreground: oklch(0.992 0.001 345.171);
  --muted: oklch(0.226 0.036 348.979);
  --muted-foreground: oklch(0.722 0.005 345.317);
  --popover: oklch(0.107 0.018 344.975);
  --popover-foreground: oklch(0.992 0.001 345.171);
  --card: oklch(0.123 0.021 345.183);
  --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.369 0.069 349.653);
  --primary-foreground: oklch(0.888 0.026 345.905);
  --secondary: oklch(0.315 0.014 346.239);
  --secondary-foreground: oklch(0.84 0.011 345.471);
  --accent: oklch(0.315 0.014 346.239);
  --accent-foreground: oklch(0.84 0.011 345.471);
  --destructive: oklch(0.694 0.19 44.679);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.369 0.069 349.653);
  --chart-1: oklch(0.369 0.069 349.653);
  --chart-2: oklch(0.315 0.014 346.239);
  --chart-3: oklch(0.315 0.014 346.239);
  --chart-4: oklch(0.344 0.015 346.271);
  --chart-5: oklch(0.369 0.075 350.098);
}