Muted for shadcn/ui

Muted is a shadcn/ui theme built around a yellow primary color (#9c7c1c) with blue accents (#1c3c9c). The light mode uses a neutral background (#fefdfb). Dark mode keeps the yellow primary (#9c7c1c) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fefdfbsnow
#000000black
Foreground
#131006black
#f8f8f7whitesmoke
Card
#fefdfbsnow
#000000black
Card foreground
#131006black
#f8f8f7whitesmoke
Popover
#fefdfbsnow
#000000black
Popover foreground
#131006black
#f8f8f7whitesmoke
Primary
#9c7c1cdarkgoldenrod
#9c7c1cdarkgoldenrod
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#1c3c9cdarkslateblue
#1c3c9cdarkslateblue
Secondary foreground
#eef1fcaliceblue
#eef1fcaliceblue
Muted
#e0e3eblavender
#14171fblack
Muted foreground
#42454cdarkslategray
#b3b5bdsilver
Accent
#1c3c9cdarkslateblue
#1c3c9cdarkslateblue
Accent foreground
#eef1fcaliceblue
#eef1fcaliceblue
Destructive
#87340dsaddlebrown
#df5616chocolate
Destructive foreground
#fadbccbisque
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#9c7c1cdarkgoldenrod
#9c7c1cdarkgoldenrod

Contrast

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

Light mode
Text on background18.74:1AAA
Text on card18.74:1AAA
Primary button3.95:1AA Large
Secondary button8.59:1AAA
Muted text7.45:1AAA
Accent8.59:1AAA
Destructive6.38:1AA
Dark mode
Text on background19.76:1AAA
Text on card19.76:1AAA
Primary button3.95:1AA Large
Secondary button8.59:1AAA
Muted text8.78:1AAA
Accent8.59:1AAA
Destructive3.84:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.995 0.004 91.44);
  --foreground: oklch(0.173 0.02 92.463);
  --muted: oklch(0.915 0.012 271.28);
  --muted-foreground: oklch(0.391 0.013 271.069);
  --popover: oklch(0.995 0.004 91.44);
  --popover-foreground: oklch(0.173 0.02 92.463);
  --card: oklch(0.995 0.004 91.44);
  --card-foreground: oklch(0.173 0.02 92.463);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.601 0.114 88.729);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.398 0.161 265.315);
  --secondary-foreground: oklch(0.959 0.015 271.26);
  --accent: oklch(0.398 0.161 265.315);
  --accent-foreground: oklch(0.959 0.015 271.26);
  --destructive: oklch(0.436 0.123 41.554);
  --destructive-foreground: oklch(0.912 0.04 46.411);
  --ring: oklch(0.601 0.114 88.729);
  --chart-1: oklch(0.601 0.114 88.729);
  --chart-2: oklch(0.398 0.161 265.315);
  --chart-3: oklch(0.398 0.161 265.315);
  --chart-4: oklch(0.42 0.172 265.258);
  --chart-5: oklch(0.607 0.117 88.381);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.978 0.002 91.425);
  --muted: oklch(0.204 0.018 270.369);
  --muted-foreground: oklch(0.774 0.011 271.274);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.978 0.002 91.425);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.978 0.002 91.425);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.601 0.114 88.729);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.398 0.161 265.315);
  --secondary-foreground: oklch(0.959 0.015 271.26);
  --accent: oklch(0.398 0.161 265.315);
  --accent-foreground: oklch(0.959 0.015 271.26);
  --destructive: oklch(0.626 0.184 40.763);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.601 0.114 88.729);
  --chart-1: oklch(0.601 0.114 88.729);
  --chart-2: oklch(0.398 0.161 265.315);
  --chart-3: oklch(0.398 0.161 265.315);
  --chart-4: oklch(0.42 0.172 265.258);
  --chart-5: oklch(0.607 0.117 88.381);
}