Deficient for shadcn/ui

Deficient is a shadcn/ui theme built around a neutral gray primary color (#98a49a) with neutral gray accents (#a498a3). The light mode uses a neutral background (#f8fcf8). Dark mode keeps the neutral gray primary (#98a49a) on a green-tinted background (#070e08).

Color palette

TokenLightDark
Background
#f8fcf8mintcream
#070e08black
Foreground
#020803black
#fcfdfcwhite
Card
#f4faf5whitesmoke
#09110ablack
Card foreground
#010401black
#ffffffwhite
Popover
#f8fcf8mintcream
#070e08black
Popover foreground
#020803black
#fcfdfcwhite
Primary
#98a49adarkgray
#98a49adarkgray
Primary foreground
#050505black
#050505black
Secondary
#a498a3darkgray
#a498a3darkgray
Secondary foreground
#050505black
#050505black
Muted
#eed8eblavender
#271124black
Muted foreground
#6c5669dimgray
#a993a6darkgray
Accent
#a498a3darkgray
#a498a3darkgray
Accent foreground
#050505black
#050505black
Destructive
#650b01maroon
#fe2810orangered
Destructive foreground
#fea49alightsalmon
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#98a49adarkgray
#98a49adarkgray

Contrast

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

Light mode
Text on background19.50:1AAA
Text on card19.51:1AAA
Primary button7.87:1AAA
Secondary button7.38:1AAA
Muted text4.94:1AA
Accent7.38:1AAA
Destructive6.84:1AA
Dark mode
Text on background19.19:1AAA
Text on card19.17:1AAA
Primary button7.87:1AAA
Secondary button7.38:1AAA
Muted text6.20:1AA
Accent7.38:1AAA
Destructive3.80:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.987 0.006 149.06);
  --foreground: oklch(0.123 0.024 147.787);
  --muted: oklch(0.906 0.034 329.565);
  --muted-foreground: oklch(0.482 0.04 330.06);
  --popover: oklch(0.987 0.006 149.06);
  --popover-foreground: oklch(0.123 0.024 147.787);
  --card: oklch(0.98 0.009 149.023);
  --card-foreground: oklch(0.098 0.019 147.787);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.706 0.02 148.799);
  --primary-foreground: oklch(0.116 0.002 149.005);
  --secondary: oklch(0.694 0.02 329.463);
  --secondary-foreground: oklch(0.115 0.002 329.261);
  --accent: oklch(0.694 0.02 329.463);
  --accent-foreground: oklch(0.115 0.002 329.261);
  --destructive: oklch(0.326 0.124 31.511);
  --destructive-foreground: oklch(0.805 0.11 26.655);
  --ring: oklch(0.706 0.02 148.799);
  --chart-1: oklch(0.706 0.02 148.799);
  --chart-2: oklch(0.694 0.02 329.463);
  --chart-3: oklch(0.694 0.02 329.463);
  --chart-4: oklch(0.719 0.018 329.424);
  --chart-5: oklch(0.71 0.03 148.632);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.152 0.017 148.192);
  --foreground: oklch(0.993 0.002 149.106);
  --muted: oklch(0.219 0.047 331.442);
  --muted-foreground: oklch(0.69 0.037 329.735);
  --popover: oklch(0.152 0.017 148.192);
  --popover-foreground: oklch(0.993 0.002 149.106);
  --card: oklch(0.166 0.02 147.755);
  --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.706 0.02 148.799);
  --primary-foreground: oklch(0.116 0.002 149.005);
  --secondary: oklch(0.694 0.02 329.463);
  --secondary-foreground: oklch(0.115 0.002 329.261);
  --accent: oklch(0.694 0.02 329.463);
  --accent-foreground: oklch(0.115 0.002 329.261);
  --destructive: oklch(0.638 0.245 30.453);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.706 0.02 148.799);
  --chart-1: oklch(0.706 0.02 148.799);
  --chart-2: oklch(0.694 0.02 329.463);
  --chart-3: oklch(0.694 0.02 329.463);
  --chart-4: oklch(0.719 0.018 329.424);
  --chart-5: oklch(0.71 0.03 148.632);
}