Deficient for shadcn/ui

Deficient is a shadcn/ui theme built around a red primary color (#964549) with orange accents (#966a45). The light mode uses a neutral background (#fcf8f8). Dark mode keeps the red primary (#964549) on a red-tinted background (#0a0505).

Color palette

TokenLightDark
Background
#fcf8f8snow
#0a0505black
Foreground
#110404black
#f9f6f6whitesmoke
Card
#faf5f5whitesmoke
#0e0607black
Card foreground
#0c0303black
#fbf9f9snow
Popover
#faf5f5whitesmoke
#0e0607black
Popover foreground
#0c0303black
#fbf9f9snow
Primary
#964549sienna
#964549sienna
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#964572dimgray
#964572dimgray
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#e8d8e1gainsboro
#27171fblack
Muted foreground
#473940darkslategray
#c6b8c0silver
Accent
#966a45sienna
#966a45sienna
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#822c08saddlebrown
#f3672btomato
Destructive foreground
#fbd2c0peachpuff
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#964549sienna
#964549sienna

Contrast

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

Light mode
Text on background19.10:1AAA
Text on card18.83:1AAA
Primary button6.46:1AA
Secondary button6.18:1AA
Muted text7.99:1AAA
Accent4.73:1AA
Destructive6.50:1AA
Dark mode
Text on background18.84:1AAA
Text on card19.07:1AAA
Primary button6.46:1AA
Secondary button6.18:1AA
Muted text8.99:1AAA
Accent4.73:1AA
Destructive6.76:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.982 0.004 13.686);
  --foreground: oklch(0.131 0.028 17.045);
  --muted: oklch(0.899 0.021 343.181);
  --muted-foreground: oklch(0.361 0.023 344.133);
  --popover: oklch(0.973 0.006 13.728);
  --popover-foreground: oklch(0.117 0.024 16.542);
  --card: oklch(0.973 0.006 13.728);
  --card-foreground: oklch(0.117 0.024 16.542);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.496 0.109 18.828);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.509 0.121 348.104);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.561 0.077 59.612);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.418 0.126 39.624);
  --destructive-foreground: oklch(0.895 0.053 44.484);
  --ring: oklch(0.496 0.109 18.828);
  --chart-1: oklch(0.496 0.109 18.828);
  --chart-2: oklch(0.509 0.121 348.104);
  --chart-3: oklch(0.561 0.077 59.612);
  --chart-4: oklch(0.534 0.128 348.145);
  --chart-5: oklch(0.495 0.118 19.379);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.124 0.013 14.92);
  --foreground: oklch(0.975 0.003 13.667);
  --muted: oklch(0.228 0.03 345.602);
  --muted-foreground: oklch(0.797 0.019 343.194);
  --popover: oklch(0.137 0.015 15.218);
  --popover-foreground: oklch(0.983 0.002 13.647);
  --card: oklch(0.137 0.015 15.218);
  --card-foreground: oklch(0.983 0.002 13.647);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.496 0.109 18.828);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.509 0.121 348.104);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.561 0.077 59.612);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.68 0.186 41.134);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.496 0.109 18.828);
  --chart-1: oklch(0.496 0.109 18.828);
  --chart-2: oklch(0.509 0.121 348.104);
  --chart-3: oklch(0.561 0.077 59.612);
  --chart-4: oklch(0.534 0.128 348.145);
  --chart-5: oklch(0.495 0.118 19.379);
}