Deathwatch for shadcn/ui

Deathwatch is a shadcn/ui theme built around a neutral gray primary color (#292426) with neutral gray accents (#242926). The light mode uses a neutral background (#fdfcfd). Dark mode keeps the neutral gray primary (#292426) on a neutral background (#080205).

Color palette

TokenLightDark
Background
#fdfcfdwhite
#080205black
Foreground
#11030bblack
#fbf9fasnow
Card
#fdfcfdwhite
#080205black
Card foreground
#11030bblack
#fbf9fasnow
Popover
#fdfcfdwhite
#080205black
Popover foreground
#11030bblack
#fbf9fasnow
Primary
#292426darkslategray
#292426darkslategray
Primary foreground
#c3bbc0silver
#c3bbc0silver
Secondary
#242926darkslategray
#242926darkslategray
Secondary foreground
#bbc3bfsilver
#bbc3bfsilver
Muted
#ebf4efwhitesmoke
#0b140fblack
Muted foreground
#575b59dimgray
#a4a8a6darkgray
Accent
#242926darkslategray
#242926darkslategray
Accent foreground
#bbc3bfsilver
#bbc3bfsilver
Destructive
#8b0604darkred
#ea0a06red
Destructive foreground
#fdc4c3pink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#292426darkslategray
#292426darkslategray

Contrast

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

Light mode
Text on background19.66:1AAA
Text on card19.66:1AAA
Primary button8.15:1AAA
Secondary button8.25:1AAA
Muted text6.15:1AA
Accent8.25:1AAA
Destructive6.51:1AA
Dark mode
Text on background19.58:1AAA
Text on card19.58:1AAA
Primary button8.15:1AAA
Secondary button8.25:1AAA
Muted text7.80:1AAA
Accent8.25:1AAA
Destructive4.63:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.992 0.002 342.667);
  --foreground: oklch(0.134 0.034 345.055);
  --muted: oklch(0.959 0.011 162.333);
  --muted-foreground: oklch(0.467 0.005 162.326);
  --popover: oklch(0.992 0.002 342.667);
  --popover-foreground: oklch(0.134 0.034 345.055);
  --card: oklch(0.992 0.002 342.667);
  --card-foreground: oklch(0.134 0.034 345.055);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.266 0.008 343.358);
  --primary-foreground: oklch(0.801 0.01 342.933);
  --secondary: oklch(0.274 0.008 161.875);
  --secondary-foreground: oklch(0.81 0.01 162.303);
  --accent: oklch(0.274 0.008 161.875);
  --accent-foreground: oklch(0.81 0.01 162.303);
  --destructive: oklch(0.403 0.162 29.165);
  --destructive-foreground: oklch(0.872 0.066 19.619);
  --ring: oklch(0.266 0.008 343.358);
  --chart-1: oklch(0.266 0.008 343.358);
  --chart-2: oklch(0.274 0.008 161.875);
  --chart-3: oklch(0.274 0.008 161.875);
  --chart-4: oklch(0.305 0.009 161.841);
  --chart-5: oklch(0.265 0.012 343.726);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.107 0.019 342.587);
  --foreground: oklch(0.984 0.002 342.667);
  --muted: oklch(0.179 0.016 160.139);
  --muted-foreground: oklch(0.727 0.005 162.451);
  --popover: oklch(0.107 0.019 342.587);
  --popover-foreground: oklch(0.984 0.002 342.667);
  --card: oklch(0.107 0.019 342.587);
  --card-foreground: oklch(0.984 0.002 342.667);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.266 0.008 343.358);
  --primary-foreground: oklch(0.801 0.01 342.933);
  --secondary: oklch(0.274 0.008 161.875);
  --secondary-foreground: oklch(0.81 0.01 162.303);
  --accent: oklch(0.274 0.008 161.875);
  --accent-foreground: oklch(0.81 0.01 162.303);
  --destructive: oklch(0.59 0.239 29.195);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.266 0.008 343.358);
  --chart-1: oklch(0.266 0.008 343.358);
  --chart-2: oklch(0.274 0.008 161.875);
  --chart-3: oklch(0.274 0.008 161.875);
  --chart-4: oklch(0.305 0.009 161.841);
  --chart-5: oklch(0.265 0.012 343.726);
}