Damage for shadcn/ui

Damage is a shadcn/ui theme built around a neutral gray primary color (#272825) with neutral gray accents (#252528). The light mode uses a neutral background (#fcfdf7). Dark mode keeps the neutral gray primary (#272825) on a neutral background (#070802).

Color palette

TokenLightDark
Background
#fcfdf7snow
#070802black
Foreground
#0e1005black
#fbfcf8snow
Card
#fcfdf7snow
#070802black
Card foreground
#0e1005black
#fbfcf8snow
Popover
#fcfdf7snow
#070802black
Popover foreground
#0e1005black
#fbfcf8snow
Primary
#272825darkslategray
#272825darkslategray
Primary foreground
#c1c2bdsilver
#c1c2bdsilver
Secondary
#252528darkslategray
#252528darkslategray
Secondary foreground
#bebdc2silver
#bebdc2silver
Muted
#d9d7e5gainsboro
#1d1a28black
Muted foreground
#454158darkslategray
#aba7bedarkgray
Accent
#252528darkslategray
#252528darkslategray
Accent foreground
#bebdc2silver
#bebdc2silver
Destructive
#8a1f0fdarkred
#eb5842tomato
Destructive foreground
#fad6d1bisque
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#272825darkslategray
#272825darkslategray

Contrast

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

Light mode
Text on background18.69:1AAA
Text on card18.69:1AAA
Primary button8.28:1AAA
Secondary button8.20:1AAA
Muted text6.88:1AA
Accent8.20:1AAA
Destructive6.80:1AA
Dark mode
Text on background19.50:1AAA
Text on card19.50:1AAA
Primary button8.28:1AAA
Secondary button8.20:1AAA
Muted text7.30:1AAA
Accent8.20:1AAA
Destructive6.02:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.007 114.958);
  --foreground: oklch(0.166 0.024 116.771);
  --muted: oklch(0.885 0.019 294.422);
  --muted-foreground: oklch(0.389 0.039 292.911);
  --popover: oklch(0.991 0.007 114.958);
  --popover-foreground: oklch(0.166 0.024 116.771);
  --card: oklch(0.991 0.007 114.958);
  --card-foreground: oklch(0.166 0.024 116.771);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.274 0.006 115.2);
  --primary-foreground: oklch(0.811 0.007 114.986);
  --secondary: oklch(0.265 0.006 294.425);
  --secondary-foreground: oklch(0.8 0.007 294.657);
  --accent: oklch(0.265 0.006 294.425);
  --accent-foreground: oklch(0.8 0.007 294.657);
  --destructive: oklch(0.418 0.145 31.648);
  --destructive-foreground: oklch(0.906 0.041 28.229);
  --ring: oklch(0.274 0.006 115.2);
  --chart-1: oklch(0.274 0.006 115.2);
  --chart-2: oklch(0.265 0.006 294.425);
  --chart-3: oklch(0.265 0.006 294.425);
  --chart-4: oklch(0.296 0.007 294.406);
  --chart-5: oklch(0.278 0.01 115.468);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.13 0.019 115.532);
  --foreground: oklch(0.988 0.004 114.905);
  --muted: oklch(0.228 0.027 292.545);
  --muted-foreground: oklch(0.739 0.033 293.987);
  --popover: oklch(0.13 0.019 115.532);
  --popover-foreground: oklch(0.988 0.004 114.905);
  --card: oklch(0.13 0.019 115.532);
  --card-foreground: oklch(0.988 0.004 114.905);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.274 0.006 115.2);
  --primary-foreground: oklch(0.811 0.007 114.986);
  --secondary: oklch(0.265 0.006 294.425);
  --secondary-foreground: oklch(0.8 0.007 294.657);
  --accent: oklch(0.265 0.006 294.425);
  --accent-foreground: oklch(0.8 0.007 294.657);
  --destructive: oklch(0.652 0.186 31.268);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.274 0.006 115.2);
  --chart-1: oklch(0.274 0.006 115.2);
  --chart-2: oklch(0.265 0.006 294.425);
  --chart-3: oklch(0.265 0.006 294.425);
  --chart-4: oklch(0.296 0.007 294.406);
  --chart-5: oklch(0.278 0.01 115.468);
}