Die for shadcn/ui

Die is a shadcn/ui theme built around a neutral gray primary color (#dedede) with neutral gray accents (#dedede). The light mode uses a neutral background (#fefbfb). Dark mode keeps the neutral gray primary (#dedede) on a red-tinted background (#0b0404).

Color palette

TokenLightDark
Background
#fefbfbsnow
#0b0404black
Foreground
#040101black
#fbf9f9snow
Card
#fdf7f7snow
#0f0505black
Card foreground
#000000black
#fdfcfcsnow
Popover
#fdf7f7snow
#0f0505black
Popover foreground
#000000black
#fdfcfcsnow
Primary
#dededegainsboro
#dededegainsboro
Primary foreground
#454545darkslategray
#454545darkslategray
Secondary
#dededegainsboro
#dededegainsboro
Secondary foreground
#454545darkslategray
#454545darkslategray
Muted
#e4d8d8gainsboro
#271b1bblack
Muted foreground
#635f5fdimgray
#a09c9cdarkgray
Accent
#dededegainsboro
#dededegainsboro
Accent foreground
#454545darkslategray
#454545darkslategray
Destructive
#ae2a0ffirebrick
#eb3814orangered
Destructive foreground
#fef3f1seashell
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#dededegainsboro
#dededegainsboro

Contrast

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

Light mode
Text on background20.19:1AAA
Text on card19.81:1AAA
Primary button7.11:1AAA
Secondary button7.11:1AAA
Muted text4.52:1AA
Accent7.11:1AAA
Destructive6.18:1AA
Dark mode
Text on background19.36:1AAA
Text on card19.60:1AAA
Primary button7.11:1AAA
Secondary button7.11:1AAA
Muted text6.12:1AA
Accent7.11:1AAA
Destructive4.12:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.003 17.211);
  --foreground: oklch(0.082 0.014 20.688);
  --muted: oklch(0.891 0.013 17.404);
  --muted-foreground: oklch(0.489 0.005 17.326);
  --popover: oklch(0.981 0.006 17.265);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.981 0.006 17.265);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.9 0 188.746);
  --primary-foreground: oklch(0.39 0 165.964);
  --secondary: oklch(0.9 0 188.746);
  --secondary-foreground: oklch(0.39 0 165.964);
  --accent: oklch(0.9 0 188.746);
  --accent-foreground: oklch(0.39 0 165.964);
  --destructive: oklch(0.493 0.172 32.781);
  --destructive-foreground: oklch(0.972 0.012 31.068);
  --ring: oklch(0.9 0 188.746);
  --chart-1: oklch(0.9 0 188.746);
  --chart-2: oklch(0.9 0 188.746);
  --chart-3: oklch(0.9 0 188.746);
  --chart-4: oklch(0.923 0 153.435);
  --chart-5: oklch(0.899 0.002 17.198);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.121 0.017 19.883);
  --foreground: oklch(0.983 0.002 17.195);
  --muted: oklch(0.238 0.019 18.581);
  --muted-foreground: oklch(0.697 0.005 17.265);
  --popover: oklch(0.134 0.02 20.029);
  --popover-foreground: oklch(0.992 0.001 17.176);
  --card: oklch(0.134 0.02 20.029);
  --card-foreground: oklch(0.992 0.001 17.176);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.9 0 188.746);
  --primary-foreground: oklch(0.39 0 165.964);
  --secondary: oklch(0.9 0 188.746);
  --secondary-foreground: oklch(0.39 0 165.964);
  --accent: oklch(0.9 0 188.746);
  --accent-foreground: oklch(0.39 0 165.964);
  --destructive: oklch(0.615 0.219 32.63);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.9 0 188.746);
  --chart-1: oklch(0.9 0 188.746);
  --chart-2: oklch(0.9 0 188.746);
  --chart-3: oklch(0.9 0 188.746);
  --chart-4: oklch(0.923 0 153.435);
  --chart-5: oklch(0.899 0.002 17.198);
}