Cemetery for shadcn/ui

Cemetery is a shadcn/ui theme built around a deep red primary color (#2a0e11) with deep indigo accents (#0e112a). The light mode uses a neutral background (#fefbfb). Dark mode keeps the deep red primary (#2a0e11) on a neutral background (#040202).

Color palette

TokenLightDark
Background
#fefbfbsnow
#040202black
Foreground
#100506black
#ffffffwhite
Card
#fcf7f8snow
#070303black
Card foreground
#0c0404black
#ffffffwhite
Popover
#fcf7f8snow
#070303black
Popover foreground
#0c0404black
#ffffffwhite
Primary
#2a0e11black
#2a0e11black
Primary foreground
#d99197rosybrown
#d99197rosybrown
Secondary
#112a0eblack
#112a0eblack
Secondary foreground
#4fbf45limegreen
#4fbf45limegreen
Muted
#dcebdbgainsboro
#152414black
Muted foreground
#4f5b4ddarkslategray
#a5b2a4darkgray
Accent
#0e112ablack
#0e112ablack
Accent foreground
#9197d9mediumpurple
#9197d9mediumpurple
Destructive
#b72110firebrick
#eb321eorangered
Destructive foreground
#fffbfasnow
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#2a0e11black
#2a0e11black

Contrast

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

Light mode
Text on background19.51:1AAA
Text on card19.18:1AAA
Primary button7.22:1AAA
Secondary button6.53:1AA
Muted text5.78:1AA
Accent6.75:1AA
Destructive6.31:1AA
Dark mode
Text on background20.75:1AAA
Text on card20.51:1AAA
Primary button7.22:1AAA
Secondary button6.53:1AA
Muted text7.31:1AAA
Accent6.75:1AA
Destructive4.17:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.003 11.31);
  --foreground: oklch(0.133 0.022 13.51);
  --muted: oklch(0.925 0.028 142.993);
  --muted-foreground: oklch(0.456 0.026 142.86);
  --popover: oklch(0.981 0.005 11.372);
  --popover-foreground: oklch(0.12 0.019 12.922);
  --card: oklch(0.981 0.005 11.372);
  --card-foreground: oklch(0.12 0.019 12.922);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.21 0.046 16.735);
  --primary-foreground: oklch(0.73 0.088 14.006);
  --secondary: oklch(0.256 0.058 142.083);
  --secondary-foreground: oklch(0.715 0.191 141.955);
  --accent: oklch(0.19 0.05 276.552);
  --accent-foreground: oklch(0.697 0.097 279.543);
  --destructive: oklch(0.504 0.187 30.52);
  --destructive-foreground: oklch(0.99 0.004 25.024);
  --ring: oklch(0.21 0.046 16.735);
  --chart-1: oklch(0.21 0.046 16.735);
  --chart-2: oklch(0.256 0.058 142.083);
  --chart-3: oklch(0.19 0.05 276.552);
  --chart-4: oklch(0.296 0.071 142.04);
  --chart-5: oklch(0.209 0.049 17.165);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.085 0.01 12.366);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.243 0.038 142.393);
  --muted-foreground: oklch(0.749 0.023 142.987);
  --popover: oklch(0.108 0.013 12.366);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.108 0.013 12.366);
  --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.21 0.046 16.735);
  --primary-foreground: oklch(0.73 0.088 14.006);
  --secondary: oklch(0.256 0.058 142.083);
  --secondary-foreground: oklch(0.715 0.191 141.955);
  --accent: oklch(0.19 0.05 276.552);
  --accent-foreground: oklch(0.697 0.097 279.543);
  --destructive: oklch(0.612 0.222 30.499);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.21 0.046 16.735);
  --chart-1: oklch(0.21 0.046 16.735);
  --chart-2: oklch(0.256 0.058 142.083);
  --chart-3: oklch(0.19 0.05 276.552);
  --chart-4: oklch(0.296 0.071 142.04);
  --chart-5: oklch(0.209 0.049 17.165);
}