Yam for shadcn/ui

Yam is a shadcn/ui theme built around a muted blue primary color (#b3b5c1) with muted violet accents (#b8b3c1). The light mode uses a neutral background (#f7f8fd). Dark mode keeps the muted blue primary (#b3b5c1) on a blue-tinted background (#05050b).

Color palette

TokenLightDark
Background
#f7f8fdghostwhite
#05050bblack
Foreground
#040610black
#f9f9fbghostwhite
Card
#f7f8fdghostwhite
#05050bblack
Card foreground
#040610black
#f9f9fbghostwhite
Popover
#f7f8fdghostwhite
#05050bblack
Popover foreground
#040610black
#f9f9fbghostwhite
Primary
#b3b5c1silver
#b3b5c1silver
Primary foreground
#1e1f24black
#1e1f24black
Secondary
#b3bcc1silver
#b3bcc1silver
Secondary foreground
#1e2224black
#1e2224black
Muted
#edf0f3whitesmoke
#0c1012black
Muted foreground
#525e66dimgray
#99a6addarkgray
Accent
#b8b3c1silver
#b8b3c1silver
Accent foreground
#201e24black
#201e24black
Destructive
#921d02darkred
#fc4a22orangered
Destructive foreground
#fed2c8peachpuff
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#b3b5c1silver
#b3b5c1silver

Contrast

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

Light mode
Text on background19.02:1AAA
Text on card19.02:1AAA
Primary button8.07:1AAA
Secondary button8.31:1AAA
Muted text5.83:1AA
Accent8.08:1AAA
Destructive6.39:1AA
Dark mode
Text on background19.31:1AAA
Text on card19.31:1AAA
Primary button8.07:1AAA
Secondary button8.31:1AAA
Muted text7.65:1AAA
Accent8.08:1AAA
Destructive3.42:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.979 0.007 279.233);
  --foreground: oklch(0.126 0.024 273.271);
  --muted: oklch(0.954 0.005 232.651);
  --muted-foreground: oklch(0.475 0.02 233.228);
  --popover: oklch(0.979 0.007 279.233);
  --popover-foreground: oklch(0.126 0.024 273.271);
  --card: oklch(0.979 0.007 279.233);
  --card-foreground: oklch(0.126 0.024 273.271);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.776 0.017 279.003);
  --primary-foreground: oklch(0.24 0.011 278.606);
  --secondary: oklch(0.79 0.012 232.799);
  --secondary-foreground: oklch(0.249 0.008 233.044);
  --accent: oklch(0.776 0.02 302.534);
  --accent-foreground: oklch(0.24 0.013 302.103);
  --destructive: oklch(0.429 0.156 33.102);
  --destructive-foreground: oklch(0.898 0.052 32.794);
  --ring: oklch(0.776 0.017 279.003);
  --chart-1: oklch(0.776 0.017 279.003);
  --chart-2: oklch(0.79 0.012 232.799);
  --chart-3: oklch(0.776 0.02 302.534);
  --chart-4: oklch(0.814 0.011 232.767);
  --chart-5: oklch(0.772 0.022 278.893);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.12 0.014 275.347);
  --foreground: oklch(0.983 0.002 279.314);
  --muted: oklch(0.17 0.007 233.256);
  --muted-foreground: oklch(0.717 0.018 232.951);
  --popover: oklch(0.12 0.014 275.347);
  --popover-foreground: oklch(0.983 0.002 279.314);
  --card: oklch(0.12 0.014 275.347);
  --card-foreground: oklch(0.983 0.002 279.314);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.776 0.017 279.003);
  --primary-foreground: oklch(0.24 0.011 278.606);
  --secondary: oklch(0.79 0.012 232.799);
  --secondary-foreground: oklch(0.249 0.008 233.044);
  --accent: oklch(0.776 0.02 302.534);
  --accent-foreground: oklch(0.24 0.013 302.103);
  --destructive: oklch(0.66 0.22 33.699);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.776 0.017 279.003);
  --chart-1: oklch(0.776 0.017 279.003);
  --chart-2: oklch(0.79 0.012 232.799);
  --chart-3: oklch(0.776 0.02 302.534);
  --chart-4: oklch(0.814 0.011 232.767);
  --chart-5: oklch(0.772 0.022 278.893);
}