Killer for shadcn/ui

Killer is a shadcn/ui theme built around a muted deep green primary color (#0b100a) with muted deep red accents (#100a0b). The light mode uses a neutral background (#f8fcf8). Dark mode keeps the muted deep green primary (#0b100a) on a green-tinted background (#050c04).

Color palette

TokenLightDark
Background
#f8fcf8mintcream
#050c04black
Foreground
#060f05black
#f9fbf9mintcream
Card
#f8fcf8mintcream
#050c04black
Card foreground
#060f05black
#f9fbf9mintcream
Popover
#f8fcf8mintcream
#050c04black
Popover foreground
#060f05black
#f9fbf9mintcream
Primary
#0b100ablack
#0b100ablack
Primary foreground
#96ba91darkseagreen
#96ba91darkseagreen
Secondary
#0a0b10black
#0a0b10black
Secondary foreground
#9196badarkgray
#9196badarkgray
Muted
#dedfe8gainsboro
#171821black
Muted foreground
#3d3e48darkslategray
#b7b9c2silver
Accent
#100a0bblack
#100a0bblack
Accent foreground
#ba9196rosybrown
#ba9196rosybrown
Destructive
#6c0d04maroon
#f84a3atomato
Destructive foreground
#fcaea6lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#0b100ablack
#0b100ablack

Contrast

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

Light mode
Text on background18.81:1AAA
Text on card18.81:1AAA
Primary button8.92:1AAA
Secondary button6.82:1AA
Muted text7.97:1AAA
Accent7.09:1AAA
Destructive6.91:1AA
Dark mode
Text on background19.07:1AAA
Text on card19.07:1AAA
Primary button8.92:1AAA
Secondary button6.82:1AA
Muted text9.02:1AAA
Accent7.09:1AAA
Destructive3.48:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.987 0.007 142.088);
  --foreground: oklch(0.156 0.027 140.786);
  --muted: oklch(0.905 0.013 280.106);
  --muted-foreground: oklch(0.367 0.016 279.608);
  --popover: oklch(0.987 0.007 142.088);
  --popover-foreground: oklch(0.156 0.027 140.786);
  --card: oklch(0.987 0.007 142.088);
  --card-foreground: oklch(0.156 0.027 140.786);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.164 0.015 141.809);
  --primary-foreground: oklch(0.752 0.07 141.792);
  --secondary: oklch(0.149 0.011 279.056);
  --secondary-foreground: oklch(0.682 0.054 278.981);
  --accent: oklch(0.152 0.01 10.543);
  --accent-foreground: oklch(0.697 0.05 10.606);
  --destructive: oklch(0.342 0.129 30.446);
  --destructive-foreground: oklch(0.822 0.093 25.047);
  --ring: oklch(0.164 0.015 141.809);
  --chart-1: oklch(0.164 0.015 141.809);
  --chart-2: oklch(0.149 0.011 279.056);
  --chart-3: oklch(0.152 0.01 10.543);
  --chart-4: oklch(0.18 0.017 278.663);
  --chart-5: oklch(0.164 0.016 141.733);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.141 0.025 140.507);
  --foreground: oklch(0.986 0.003 142.101);
  --muted: oklch(0.212 0.019 278.803);
  --muted-foreground: oklch(0.786 0.013 280.063);
  --popover: oklch(0.141 0.025 140.507);
  --popover-foreground: oklch(0.986 0.003 142.101);
  --card: oklch(0.141 0.025 140.507);
  --card-foreground: oklch(0.986 0.003 142.101);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.164 0.015 141.809);
  --primary-foreground: oklch(0.752 0.07 141.792);
  --secondary: oklch(0.149 0.011 279.056);
  --secondary-foreground: oklch(0.682 0.054 278.981);
  --accent: oklch(0.152 0.01 10.543);
  --accent-foreground: oklch(0.697 0.05 10.606);
  --destructive: oklch(0.656 0.213 29.263);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.164 0.015 141.809);
  --chart-1: oklch(0.164 0.015 141.809);
  --chart-2: oklch(0.149 0.011 279.056);
  --chart-3: oklch(0.152 0.01 10.543);
  --chart-4: oklch(0.18 0.017 278.663);
  --chart-5: oklch(0.164 0.016 141.733);
}