Meager for shadcn/ui

Meager is a shadcn/ui theme built around a neutral gray primary color (#756c72) with neutral gray accents (#6c756e). The light mode uses a neutral background (#ffffff). Dark mode keeps the neutral gray primary (#756c72) on a purple-tinted background (#0c0409).

Color palette

TokenLightDark
Background
#ffffffwhite
#0c0409black
Foreground
#0d030ablack
#ffffffwhite
Card
#ffffffwhite
#0c0409black
Card foreground
#0d030ablack
#ffffffwhite
Popover
#ffffffwhite
#0c0409black
Popover foreground
#0d030ablack
#ffffffwhite
Primary
#756c72dimgray
#756c72dimgray
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#6c756edimgray
#6c756edimgray
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#ddeee2gainsboro
#112216black
Muted foreground
#5a635cdimgray
#9ca59fdarkgray
Accent
#6c756edimgray
#6c756edimgray
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#8a0f0fdarkred
#d31717firebrick
Destructive foreground
#fad1d1pink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#756c72dimgray
#756c72dimgray

Contrast

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

Light mode
Text on background20.29:1AAA
Text on card20.29:1AAA
Primary button5.08:1AA
Secondary button4.78:1AA
Muted text5.15:1AA
Accent4.78:1AA
Destructive7.01:1AAA
Dark mode
Text on background20.29:1AAA
Text on card20.29:1AAA
Primary button5.08:1AA
Secondary button4.78:1AA
Muted text6.56:1AA
Accent4.78:1AA
Destructive5.36:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.121 0.031 336.428);
  --muted: oklch(0.933 0.024 154.711);
  --muted-foreground: oklch(0.49 0.016 154.586);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.121 0.031 336.428);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.121 0.031 336.428);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.541 0.015 335.681);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.552 0.015 154.697);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.552 0.015 154.697);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.405 0.155 27.811);
  --destructive-foreground: oklch(0.896 0.046 18.044);
  --ring: oklch(0.541 0.015 335.681);
  --chart-1: oklch(0.541 0.015 335.681);
  --chart-2: oklch(0.552 0.015 154.697);
  --chart-3: oklch(0.552 0.015 154.697);
  --chart-4: oklch(0.578 0.015 154.694);
  --chart-5: oklch(0.537 0.026 336.045);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.124 0.024 336.013);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.232 0.033 152.23);
  --muted-foreground: oklch(0.714 0.014 154.816);
  --popover: oklch(0.124 0.024 336.013);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.124 0.024 336.013);
  --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.541 0.015 335.681);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.552 0.015 154.697);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.552 0.015 154.697);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.552 0.216 28.206);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.541 0.015 335.681);
  --chart-1: oklch(0.541 0.015 335.681);
  --chart-2: oklch(0.552 0.015 154.697);
  --chart-3: oklch(0.552 0.015 154.697);
  --chart-4: oklch(0.578 0.015 154.694);
  --chart-5: oklch(0.537 0.026 336.045);
}