Neglected for shadcn/ui

Neglected is a shadcn/ui theme built around a muted deep green primary color (#0f110e) with muted deep violet accents (#100e11). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted deep green primary (#0f110e) on a neutral background (#040802).

Color palette

TokenLightDark
Background
#ffffffwhite
#040802black
Foreground
#050d02black
#ffffffwhite
Card
#fcfcfcsnow
#060c03black
Card foreground
#030901black
#ffffffwhite
Popover
#fcfcfcsnow
#060c03black
Popover foreground
#030901black
#ffffffwhite
Primary
#0f110eblack
#0f110eblack
Primary foreground
#a5b0a0darkgray
#a5b0a0darkgray
Secondary
#100e11black
#100e11black
Secondary foreground
#aca0b0darkgray
#aca0b0darkgray
Muted
#eadceflavender
#1e1023black
Muted foreground
#605365dimgray
#a79aacdarkgray
Accent
#100e11black
#100e11black
Accent foreground
#aca0b0darkgray
#aca0b0darkgray
Destructive
#631c03maroon
#ef4406orangered
Destructive foreground
#fcb59cburlywood
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#0f110eblack
#0f110eblack

Contrast

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

Light mode
Text on background19.72:1AAA
Text on card19.69:1AAA
Primary button8.43:1AAA
Secondary button7.69:1AAA
Muted text5.45:1AA
Accent7.69:1AAA
Destructive7.16:1AAA
Dark mode
Text on background20.17:1AAA
Text on card19.78:1AAA
Primary button8.43:1AAA
Secondary button7.69:1AAA
Muted text6.82:1AA
Accent7.69:1AAA
Destructive3.82:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.146 0.032 135.249);
  --muted: oklch(0.911 0.031 317.112);
  --muted-foreground: oklch(0.461 0.034 317.022);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0.127 0.028 135.031);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.127 0.028 135.031);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.173 0.006 137.279);
  --primary-foreground: oklch(0.744 0.025 137.271);
  --secondary: oklch(0.167 0.007 317.1);
  --secondary-foreground: oklch(0.722 0.026 317.108);
  --accent: oklch(0.167 0.007 317.1);
  --accent-foreground: oklch(0.722 0.026 317.108);
  --destructive: oklch(0.34 0.108 38.104);
  --destructive-foreground: oklch(0.835 0.091 40.826);
  --ring: oklch(0.173 0.006 137.279);
  --chart-1: oklch(0.173 0.006 137.279);
  --chart-2: oklch(0.167 0.007 317.1);
  --chart-3: oklch(0.167 0.007 317.1);
  --chart-4: oklch(0.201 0.009 317.083);
  --chart-5: oklch(0.174 0.009 137.31);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.125 0.022 135.457);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.202 0.044 316.603);
  --muted-foreground: oklch(0.704 0.03 317.091);
  --popover: oklch(0.143 0.025 135.569);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.143 0.025 135.569);
  --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.173 0.006 137.279);
  --primary-foreground: oklch(0.744 0.025 137.271);
  --secondary: oklch(0.167 0.007 317.1);
  --secondary-foreground: oklch(0.722 0.026 317.108);
  --accent: oklch(0.167 0.007 317.1);
  --accent-foreground: oklch(0.722 0.026 317.108);
  --destructive: oklch(0.632 0.215 35.87);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.173 0.006 137.279);
  --chart-1: oklch(0.173 0.006 137.279);
  --chart-2: oklch(0.167 0.007 317.1);
  --chart-3: oklch(0.167 0.007 317.1);
  --chart-4: oklch(0.201 0.009 317.083);
  --chart-5: oklch(0.174 0.009 137.31);
}