Muted for shadcn/ui

Muted is a shadcn/ui theme built around a pink primary color (#e1336a) with teal accents (#33e1aa). The light mode uses a neutral background (#ffffff). Dark mode keeps the pink primary (#e1336a) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#100408black
#ffffffwhite
Card
#fcfcfcsnow
#030303black
Card foreground
#0c0306black
#ffffffwhite
Popover
#ffffffwhite
#000000black
Popover foreground
#100408black
#ffffffwhite
Primary
#e1336aindianred
#e1336aindianred
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#33e1aaturquoise
#33e1aaturquoise
Secondary foreground
#093e2ddarkslategray
#093e2ddarkslategray
Muted
#d0e7dfgainsboro
#182f28darkslategray
Muted foreground
#455953darkslategray
#a6bab4darkgray
Accent
#33e1aaturquoise
#33e1aaturquoise
Accent foreground
#093e2ddarkslategray
#093e2ddarkslategray
Destructive
#a82610firebrick
#eb4628chocolate
Destructive foreground
#fdefecseashell
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#e1336aindianred
#e1336aindianred

Contrast

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

Light mode
Text on background20.13:1AAA
Text on card19.92:1AAA
Primary button4.31:1AA Large
Secondary button7.15:1AAA
Muted text5.75:1AA
Accent7.15:1AAA
Destructive6.33:1AA
Dark mode
Text on background21.00:1AAA
Text on card20.67:1AAA
Primary button4.31:1AA Large
Secondary button7.15:1AAA
Muted text6.96:1AA
Accent7.15:1AAA
Destructive3.86:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.133 0.028 357.119);
  --muted: oklch(0.908 0.026 174.754);
  --muted-foreground: oklch(0.446 0.027 173.687);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.133 0.028 357.119);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.12 0.024 355.581);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.605 0.21 7.873);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.811 0.157 166.013);
  --secondary-foreground: oklch(0.326 0.061 166.66);
  --accent: oklch(0.811 0.157 166.013);
  --accent-foreground: oklch(0.326 0.061 166.66);
  --destructive: oklch(0.48 0.169 32.192);
  --destructive-foreground: oklch(0.962 0.016 29.531);
  --ring: oklch(0.605 0.21 7.873);
  --chart-1: oklch(0.605 0.21 7.873);
  --chart-2: oklch(0.811 0.157 166.013);
  --chart-3: oklch(0.811 0.157 166.013);
  --chart-4: oklch(0.819 0.151 167.012);
  --chart-5: oklch(0.608 0.215 8.486);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.284 0.032 171.644);
  --muted-foreground: oklch(0.772 0.024 174.664);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.092 0 180);
  --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.605 0.21 7.873);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.811 0.157 166.013);
  --secondary-foreground: oklch(0.326 0.061 166.66);
  --accent: oklch(0.811 0.157 166.013);
  --accent-foreground: oklch(0.326 0.061 166.66);
  --destructive: oklch(0.629 0.207 32.373);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.605 0.21 7.873);
  --chart-1: oklch(0.605 0.21 7.873);
  --chart-2: oklch(0.811 0.157 166.013);
  --chart-3: oklch(0.811 0.157 166.013);
  --chart-4: oklch(0.819 0.151 167.012);
  --chart-5: oklch(0.608 0.215 8.486);
}