Zeroth Dingy Dungeon for shadcn/ui

Zeroth Dingy Dungeon is a shadcn/ui theme built around a red primary color (#c62f52) with muted deep blue accents (#313945). The light mode uses a blue-tinted background (#111418). Dark mode keeps the red primary (#c62f52) on a blue-tinted background (#111418).

Color palette

TokenLightDark
Background
#111418black
#111418black
Foreground
#c3c6cbsilver
#c3c6cbsilver
Card
#0d0f12black
#0d0f12black
Card foreground
#d1d3d7lightgrey
#d1d3d7lightgrey
Popover
#0b0c0fblack
#0b0c0fblack
Popover foreground
#dee0e3gainsboro
#dee0e3gainsboro
Primary
#c62f52crimson
#c62f52crimson
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#d2acb5silver
#d2acb5silver
Secondary foreground
#321b20black
#321b20black
Muted
#22262bdarkslategray
#22262bdarkslategray
Muted foreground
#9ba4b0darkgray
#9ba4b0darkgray
Accent
#313945darkslategray
#313945darkslategray
Accent foreground
#ccd3dblightgrey
#ccd3dblightgrey
Destructive
#e62b0forangered
#e62b0forangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#1f2123black
#1f2123black
Input
#26282cdarkslategray
#26282cdarkslategray
Ring
#c62f52crimson
#c62f52crimson

Contrast

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

Light mode
Text on background10.78:1AAA
Text on card12.81:1AAA
Primary button5.34:1AA
Secondary button7.86:1AAA
Muted text6.06:1AA
Accent7.70:1AAA
Destructive4.44:1AA Large
Dark mode
Text on background10.78:1AAA
Text on card12.81:1AAA
Primary button5.34:1AA
Secondary button7.86:1AAA
Muted text6.06:1AA
Accent7.70:1AAA
Destructive4.44:1AA Large

CSS variables

Paste this into your globals.css to use Zeroth Dingy Dungeon in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.19 0.009 255.164);
  --foreground: oklch(0.825 0.008 261.51);
  --muted: oklch(0.265 0.011 255.143);
  --muted-foreground: oklch(0.716 0.021 255.091);
  --popover: oklch(0.156 0.006 255.131);
  --popover-foreground: oklch(0.906 0.004 261.513);
  --card: oklch(0.167 0.007 255.144);
  --card-foreground: oklch(0.866 0.006 261.512);
  --border: oklch(0.246 0.006 255.07);
  --input: oklch(0.277 0.007 255.076);
  --primary: oklch(0.551 0.187 12.947);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.781 0.046 2.559);
  --secondary-foreground: oklch(0.254 0.037 4.945);
  --accent: oklch(0.343 0.023 255.221);
  --accent-foreground: oklch(0.863 0.013 255.034);
  --destructive: oklch(0.597 0.223 31.346);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.551 0.187 12.947);
  --chart-1: oklch(0.551 0.187 12.947);
  --chart-2: oklch(0.781 0.046 2.559);
  --chart-3: oklch(0.343 0.023 255.221);
  --chart-4: oklch(0.808 0.04 2.31);
  --chart-5: oklch(0.554 0.194 13.673);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.19 0.009 255.164);
  --foreground: oklch(0.825 0.008 261.51);
  --muted: oklch(0.265 0.011 255.143);
  --muted-foreground: oklch(0.716 0.021 255.091);
  --popover: oklch(0.156 0.006 255.131);
  --popover-foreground: oklch(0.906 0.004 261.513);
  --card: oklch(0.167 0.007 255.144);
  --card-foreground: oklch(0.866 0.006 261.512);
  --border: oklch(0.246 0.006 255.07);
  --input: oklch(0.277 0.007 255.076);
  --primary: oklch(0.551 0.187 12.947);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.781 0.046 2.559);
  --secondary-foreground: oklch(0.254 0.037 4.945);
  --accent: oklch(0.343 0.023 255.221);
  --accent-foreground: oklch(0.863 0.013 255.034);
  --destructive: oklch(0.597 0.223 31.346);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.551 0.187 12.947);
  --chart-1: oklch(0.551 0.187 12.947);
  --chart-2: oklch(0.781 0.046 2.559);
  --chart-3: oklch(0.343 0.023 255.221);
  --chart-4: oklch(0.808 0.04 2.31);
  --chart-5: oklch(0.554 0.194 13.673);
}