Dead for shadcn/ui

Dead is a shadcn/ui theme built around a light violet primary color (#e4c3f3) with light purple accents (#f3c3ea). The light mode uses a neutral background (#fbf7fd). Dark mode keeps the light violet primary (#e4c3f3) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fbf7fdghostwhite
#000000black
Foreground
#000000black
#ffffffwhite
Card
#fbf7fdghostwhite
#000000black
Card foreground
#000000black
#ffffffwhite
Popover
#fbf7fdghostwhite
#000000black
Popover foreground
#000000black
#ffffffwhite
Primary
#e4c3f3thistle
#e4c3f3thistle
Primary foreground
#53166findigo
#53166findigo
Secondary
#ccc3f3thistle
#ccc3f3thistle
Secondary foreground
#26166fmidnightblue
#26166fmidnightblue
Muted
#ddd9edgainsboro
#161226black
Muted foreground
#4a465ddarkslategray
#a6a2b9darkgray
Accent
#f3c3eathistle
#f3c3eathistle
Accent foreground
#6f165epurple
#6f165epurple
Destructive
#dd1608red
#f83e30tomato
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#e4c3f3thistle
#e4c3f3thistle

Contrast

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

Light mode
Text on background19.81:1AAA
Text on card19.81:1AAA
Primary button7.84:1AAA
Secondary button8.90:1AAA
Muted text6.53:1AA
Accent7.09:1AAA
Destructive4.98:1AA
Dark mode
Text on background21.00:1AAA
Text on card21.00:1AAA
Primary button7.84:1AAA
Secondary button8.90:1AAA
Muted text7.39:1AAA
Accent7.09:1AAA
Destructive3.68:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.981 0.009 315.389);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.894 0.028 294.246);
  --muted-foreground: oklch(0.408 0.038 293.036);
  --popover: oklch(0.981 0.009 315.389);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.981 0.009 315.389);
  --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.861 0.074 315.066);
  --primary-foreground: oklch(0.347 0.147 312.256);
  --secondary: oklch(0.841 0.067 293.317);
  --secondary-foreground: oklch(0.292 0.142 281.438);
  --accent: oklch(0.872 0.074 332.565);
  --accent-foreground: oklch(0.381 0.146 336.777);
  --destructive: oklch(0.57 0.226 29.76);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.861 0.074 315.066);
  --chart-1: oklch(0.861 0.074 315.066);
  --chart-2: oklch(0.841 0.067 293.317);
  --chart-3: oklch(0.872 0.074 332.565);
  --chart-4: oklch(0.875 0.052 293.707);
  --chart-5: oklch(0.86 0.077 315.049);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.198 0.04 290.705);
  --muted-foreground: oklch(0.723 0.033 293.967);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0 0 0);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.861 0.074 315.066);
  --primary-foreground: oklch(0.347 0.147 312.256);
  --secondary: oklch(0.841 0.067 293.317);
  --secondary-foreground: oklch(0.292 0.142 281.438);
  --accent: oklch(0.872 0.074 332.565);
  --accent-foreground: oklch(0.381 0.146 336.777);
  --destructive: oklch(0.643 0.223 29.018);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.861 0.074 315.066);
  --chart-1: oklch(0.861 0.074 315.066);
  --chart-2: oklch(0.841 0.067 293.317);
  --chart-3: oklch(0.872 0.074 332.565);
  --chart-4: oklch(0.875 0.052 293.707);
  --chart-5: oklch(0.86 0.077 315.049);
}