Depressive for shadcn/ui

Depressive is a shadcn/ui theme built around a red primary color (#6d3b31) with yellow accents (#6d5931). The light mode uses a neutral background (#fefcfb). Dark mode keeps the red primary (#6d3b31) on a neutral background (#070404).

Color palette

TokenLightDark
Background
#fefcfbsnow
#070404black
Foreground
#0c0403black
#fdfcfcsnow
Card
#fefcfbsnow
#070404black
Card foreground
#0c0403black
#fdfcfcsnow
Popover
#fefcfbsnow
#070404black
Popover foreground
#0c0403black
#fdfcfcsnow
Primary
#6d3b31saddlebrown
#6d3b31saddlebrown
Primary foreground
#f1e2dfmistyrose
#f1e2dfmistyrose
Secondary
#6d3145saddlebrown
#6d3145saddlebrown
Secondary foreground
#f1dfe5mistyrose
#f1dfe5mistyrose
Muted
#ecdfe3gainsboro
#201317black
Muted foreground
#4c383fdarkslategray
#c7b3b9silver
Accent
#6d5931darkolivegreen
#6d5931darkolivegreen
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#8b3609saddlebrown
#f16b22chocolate
Destructive foreground
#fcdccabisque
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#6d3b31saddlebrown
#6d3b31saddlebrown

Contrast

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

Light mode
Text on background19.80:1AAA
Text on card19.80:1AAA
Primary button7.18:1AAA
Secondary button7.54:1AAA
Muted text8.34:1AAA
Accent6.71:1AA
Destructive6.15:1AA
Dark mode
Text on background19.95:1AAA
Text on card19.95:1AAA
Primary button7.18:1AAA
Secondary button7.54:1AAA
Muted text9.06:1AAA
Accent6.71:1AA
Destructive6.85:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.992 0.002 31.048);
  --foreground: oklch(0.124 0.019 38.103);
  --muted: oklch(0.915 0.016 355.075);
  --muted-foreground: oklch(0.366 0.03 356.846);
  --popover: oklch(0.992 0.002 31.048);
  --popover-foreground: oklch(0.124 0.019 38.103);
  --card: oklch(0.992 0.002 31.048);
  --card-foreground: oklch(0.124 0.019 38.103);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.412 0.073 32.309);
  --primary-foreground: oklch(0.924 0.016 31.083);
  --secondary: oklch(0.4 0.088 0.821);
  --secondary-foreground: oklch(0.92 0.021 355.223);
  --accent: oklch(0.475 0.063 83.488);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.447 0.126 43.113);
  --destructive-foreground: oklch(0.915 0.043 50.097);
  --ring: oklch(0.412 0.073 32.309);
  --chart-1: oklch(0.412 0.073 32.309);
  --chart-2: oklch(0.4 0.088 0.821);
  --chart-3: oklch(0.475 0.063 83.488);
  --chart-4: oklch(0.426 0.095 0.914);
  --chart-5: oklch(0.412 0.079 32.45);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.112 0.007 33.859);
  --foreground: oklch(0.992 0.001 31.046);
  --muted: oklch(0.206 0.023 357.678);
  --muted-foreground: oklch(0.785 0.024 355.47);
  --popover: oklch(0.112 0.007 33.859);
  --popover-foreground: oklch(0.992 0.001 31.046);
  --card: oklch(0.112 0.007 33.859);
  --card-foreground: oklch(0.992 0.001 31.046);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.412 0.073 32.309);
  --primary-foreground: oklch(0.924 0.016 31.083);
  --secondary: oklch(0.4 0.088 0.821);
  --secondary-foreground: oklch(0.92 0.021 355.223);
  --accent: oklch(0.475 0.063 83.488);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.682 0.183 44.251);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.412 0.073 32.309);
  --chart-1: oklch(0.412 0.073 32.309);
  --chart-2: oklch(0.4 0.088 0.821);
  --chart-3: oklch(0.475 0.063 83.488);
  --chart-4: oklch(0.426 0.095 0.914);
  --chart-5: oklch(0.412 0.079 32.45);
}