Deficient for shadcn/ui

Deficient is a shadcn/ui theme built around a neutral gray primary color (#a1979b) with neutral gray accents (#979ba1). The light mode uses a neutral background (#ffffff). Dark mode keeps the neutral gray primary (#a1979b) on a neutral background (#030203).

Color palette

TokenLightDark
Background
#ffffffwhite
#030203black
Foreground
#090105black
#fcf8fasnow
Card
#ffffffwhite
#030203black
Card foreground
#090105black
#fcf8fasnow
Popover
#ffffffwhite
#030203black
Popover foreground
#090105black
#fcf8fasnow
Primary
#a1979bdarkgray
#a1979bdarkgray
Primary foreground
#030203black
#030203black
Secondary
#9ba197darkgray
#9ba197darkgray
Secondary foreground
#030302black
#030302black
Muted
#edefeblinen
#121410black
Muted foreground
#474d42darkslategray
#b7bdb2silver
Accent
#979ba1darkgray
#979ba1darkgray
Accent foreground
#020303black
#020303black
Destructive
#9b1203darkred
#fb3d28orangered
Destructive foreground
#fed6d2bisque
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#a1979bdarkgray
#a1979bdarkgray

Contrast

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

Light mode
Text on background20.62:1AAA
Text on card20.62:1AAA
Primary button7.27:1AAA
Secondary button7.77:1AAA
Muted text7.55:1AAA
Accent7.40:1AAA
Destructive6.34:1AA
Dark mode
Text on background19.68:1AAA
Text on card19.68:1AAA
Primary button7.27:1AAA
Secondary button7.77:1AAA
Muted text9.65:1AAA
Accent7.40:1AAA
Destructive3.62:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.102 0.029 345.682);
  --muted: oklch(0.95 0.006 129.194);
  --muted-foreground: oklch(0.412 0.02 129.654);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.102 0.029 345.682);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.102 0.029 345.682);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.685 0.014 346.534);
  --primary-foreground: oklch(0.091 0.001 345.999);
  --secondary: oklch(0.7 0.015 129.36);
  --secondary-foreground: oklch(0.093 0.001 129.006);
  --accent: oklch(0.688 0.009 249.776);
  --accent-foreground: oklch(0.092 0.001 248.948);
  --destructive: oklch(0.44 0.17 30.623);
  --destructive-foreground: oklch(0.91 0.045 25.47);
  --ring: oklch(0.685 0.014 346.534);
  --chart-1: oklch(0.685 0.014 346.534);
  --chart-2: oklch(0.7 0.015 129.36);
  --chart-3: oklch(0.688 0.009 249.776);
  --chart-4: oklch(0.724 0.014 129.333);
  --chart-5: oklch(0.682 0.022 346.844);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.088 0.008 345.902);
  --foreground: oklch(0.983 0.004 346.137);
  --muted: oklch(0.187 0.009 129.657);
  --muted-foreground: oklch(0.791 0.017 129.357);
  --popover: oklch(0.088 0.008 345.902);
  --popover-foreground: oklch(0.983 0.004 346.137);
  --card: oklch(0.088 0.008 345.902);
  --card-foreground: oklch(0.983 0.004 346.137);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.685 0.014 346.534);
  --primary-foreground: oklch(0.091 0.001 345.999);
  --secondary: oklch(0.7 0.015 129.36);
  --secondary-foreground: oklch(0.093 0.001 129.006);
  --accent: oklch(0.688 0.009 249.776);
  --accent-foreground: oklch(0.092 0.001 248.948);
  --destructive: oklch(0.648 0.228 30.413);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.685 0.014 346.534);
  --chart-1: oklch(0.685 0.014 346.534);
  --chart-2: oklch(0.7 0.015 129.36);
  --chart-3: oklch(0.688 0.009 249.776);
  --chart-4: oklch(0.724 0.014 129.333);
  --chart-5: oklch(0.682 0.022 346.844);
}