Neglected for shadcn/ui

Neglected is a shadcn/ui theme built around a muted purple primary color (#c1b4c5) with muted purple accents (#c5b4c1). The light mode uses a neutral background (#fbf7fd). Dark mode keeps the muted purple primary (#c1b4c5) on a neutral background (#030104).

Color palette

TokenLightDark
Background
#fbf7fdghostwhite
#030104black
Foreground
#0d0510black
#fdfcfdwhite
Card
#faf3fcghostwhite
#060307black
Card foreground
#0a040cblack
#ffffffwhite
Popover
#faf3fcghostwhite
#060307black
Popover foreground
#0a040cblack
#ffffffwhite
Primary
#c1b4c5silver
#c1b4c5silver
Primary foreground
#261f28darkslategray
#261f28darkslategray
Secondary
#b9b4c5silver
#b9b4c5silver
Secondary foreground
#221f28black
#221f28black
Muted
#f2f2f3whitesmoke
#0c0c0dblack
Muted foreground
#5d5770dimgray
#968fa8darkgray
Accent
#c5b4c1silver
#c5b4c1silver
Accent foreground
#281f26black
#281f26black
Destructive
#671a04maroon
#e13809orangered
Destructive foreground
#fbb5a2lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#c1b4c5silver
#c1b4c5silver

Contrast

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

Light mode
Text on background18.96:1AAA
Text on card18.62:1AAA
Primary button8.11:1AAA
Secondary button8.03:1AAA
Muted text6.11:1AA
Accent8.13:1AAA
Destructive7.10:1AAA
Dark mode
Text on background20.27:1AAA
Text on card20.50:1AAA
Primary button8.11:1AAA
Secondary button8.03:1AAA
Muted text6.31:1AA
Accent8.13:1AAA
Destructive4.39:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.981 0.009 318.321);
  --foreground: oklch(0.135 0.029 318.923);
  --muted: oklch(0.961 0.002 298.535);
  --muted-foreground: oklch(0.472 0.042 296.983);
  --popover: oklch(0.972 0.013 318.317);
  --popover-foreground: oklch(0.122 0.025 319.869);
  --card: oklch(0.972 0.013 318.317);
  --card-foreground: oklch(0.122 0.025 319.869);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.786 0.028 318.295);
  --primary-foreground: oklch(0.252 0.02 318.249);
  --secondary: oklch(0.779 0.025 298.012);
  --secondary-foreground: oklch(0.246 0.018 297.293);
  --accent: oklch(0.788 0.026 335.097);
  --accent-foreground: oklch(0.253 0.019 335.767);
  --destructive: oklch(0.343 0.114 35.357);
  --destructive-foreground: oklch(0.834 0.086 36.064);
  --ring: oklch(0.786 0.028 318.295);
  --chart-1: oklch(0.786 0.028 318.295);
  --chart-2: oklch(0.779 0.025 298.012);
  --chart-3: oklch(0.788 0.026 335.097);
  --chart-4: oklch(0.805 0.022 298.096);
  --chart-5: oklch(0.784 0.035 318.286);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.086 0.014 319.735);
  --foreground: oklch(0.992 0.002 318.328);
  --muted: oklch(0.156 0.003 298.261);
  --muted-foreground: oklch(0.663 0.039 297.542);
  --popover: oklch(0.108 0.017 319.735);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.108 0.017 319.735);
  --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.786 0.028 318.295);
  --primary-foreground: oklch(0.252 0.02 318.249);
  --secondary: oklch(0.779 0.025 298.012);
  --secondary-foreground: oklch(0.246 0.018 297.293);
  --accent: oklch(0.788 0.026 335.097);
  --accent-foreground: oklch(0.253 0.019 335.767);
  --destructive: oklch(0.598 0.211 33.999);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.786 0.028 318.295);
  --chart-1: oklch(0.786 0.028 318.295);
  --chart-2: oklch(0.779 0.025 298.012);
  --chart-3: oklch(0.788 0.026 335.097);
  --chart-4: oklch(0.805 0.022 298.096);
  --chart-5: oklch(0.784 0.035 318.286);
}