Depressive for shadcn/ui

Depressive is a shadcn/ui theme built around a near-black primary color (#0a0a0b) with near-black accents (#0a0b0a). The light mode uses a neutral background (#ffffff). Dark mode keeps the near-black primary (#0a0a0b) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#0b0316black
#ffffffwhite
Card
#fcfcfcsnow
#030303black
Card foreground
#090312black
#ffffffwhite
Popover
#fcfcfcsnow
#030303black
Popover foreground
#090312black
#ffffffwhite
Primary
#0a0a0bblack
#0a0a0bblack
Primary foreground
#a29ea9darkgray
#a29ea9darkgray
Secondary
#0b0a0ablack
#0b0a0ablack
Secondary foreground
#a9a29edarkgray
#a9a29edarkgray
Muted
#e2d8d0gainsboro
#2f251ddarkslategray
Muted foreground
#665d57dimgray
#a8a099darkgray
Accent
#0a0b0ablack
#0a0b0ablack
Accent foreground
#9ea9a2darkgray
#9ea9a2darkgray
Destructive
#71250amaroon
#eb5119orangered
Destructive foreground
#f8c6b4peachpuff
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#0a0a0bblack
#0a0a0bblack

Contrast

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

Light mode
Text on background20.21:1AAA
Text on card19.88:1AAA
Primary button7.55:1AAA
Secondary button7.86:1AAA
Muted text4.56:1AA
Accent8.13:1AAA
Destructive6.97:1AA
Dark mode
Text on background21.00:1AAA
Text on card20.67:1AAA
Primary button7.55:1AAA
Secondary button7.86:1AAA
Muted text5.80:1AA
Accent8.13:1AAA
Destructive3.66:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.132 0.046 303.387);
  --muted: oklch(0.887 0.016 60.039);
  --muted-foreground: oklch(0.486 0.015 59.853);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0.121 0.041 305.294);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.121 0.041 305.294);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.144 0.003 305.619);
  --primary-foreground: oklch(0.706 0.017 305.425);
  --secondary: oklch(0.146 0.002 60.498);
  --secondary-foreground: oklch(0.718 0.01 60.092);
  --accent: oklch(0.147 0.003 161.539);
  --accent-foreground: oklch(0.723 0.015 161.29);
  --destructive: oklch(0.377 0.113 38.275);
  --destructive-foreground: oklch(0.867 0.063 40.926);
  --ring: oklch(0.144 0.003 305.619);
  --chart-1: oklch(0.144 0.003 305.619);
  --chart-2: oklch(0.146 0.002 60.498);
  --chart-3: oklch(0.147 0.003 161.539);
  --chart-4: oklch(0.182 0.003 60.077);
  --chart-5: oklch(0.143 0.004 305.587);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.274 0.021 59.136);
  --muted-foreground: oklch(0.71 0.014 60.018);
  --popover: oklch(0.092 0 180);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.092 0 180);
  --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.144 0.003 305.619);
  --primary-foreground: oklch(0.706 0.017 305.425);
  --secondary: oklch(0.146 0.002 60.498);
  --secondary-foreground: oklch(0.718 0.01 60.092);
  --accent: oklch(0.147 0.003 161.539);
  --accent-foreground: oklch(0.723 0.015 161.29);
  --destructive: oklch(0.64 0.199 37.688);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.144 0.003 305.619);
  --chart-1: oklch(0.144 0.003 305.619);
  --chart-2: oklch(0.146 0.002 60.498);
  --chart-3: oklch(0.147 0.003 161.539);
  --chart-4: oklch(0.182 0.003 60.077);
  --chart-5: oklch(0.143 0.004 305.587);
}