Dungeon for shadcn/ui

Dungeon is a shadcn/ui theme built around a vivid red primary color (#b71018) with vivid teal accents (#10b7af). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid red primary (#b71018) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#040101black
#fdfcfcsnow
Card
#ffffffwhite
#000000black
Card foreground
#040101black
#fdfcfcsnow
Popover
#ffffffwhite
#000000black
Popover foreground
#040101black
#fdfcfcsnow
Primary
#b71018firebrick
#b71018firebrick
Primary foreground
#fffafbsnow
#fffafbsnow
Secondary
#10b7aflightseagreen
#10b7aflightseagreen
Secondary foreground
#000000black
#000000black
Muted
#e7eeeelavender
#111818black
Muted foreground
#526060dimgray
#9fadacdarkgray
Accent
#10b7aflightseagreen
#10b7aflightseagreen
Accent foreground
#000000black
#000000black
Destructive
#8c3208saddlebrown
#f37135tomato
Destructive foreground
#fcdacabisque
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#b71018firebrick
#b71018firebrick

Contrast

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

Light mode
Text on background20.79:1AAA
Text on card20.79:1AAA
Primary button6.55:1AA
Secondary button8.41:1AAA
Muted text5.58:1AA
Accent8.41:1AAA
Destructive6.23:1AA
Dark mode
Text on background20.50:1AAA
Text on card20.50:1AAA
Primary button6.55:1AA
Secondary button8.41:1AAA
Muted text7.74:1AAA
Accent8.41:1AAA
Destructive7.22:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.079 0.019 17.162);
  --muted: oklch(0.944 0.008 193.443);
  --muted-foreground: oklch(0.478 0.018 192.882);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.079 0.019 17.162);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.079 0.019 17.162);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.495 0.195 26.901);
  --primary-foreground: oklch(0.989 0.005 13.699);
  --secondary: oklch(0.704 0.12 188.96);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.704 0.12 188.96);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.442 0.131 40.563);
  --destructive-foreground: oklch(0.912 0.044 46.377);
  --ring: oklch(0.495 0.195 26.901);
  --chart-1: oklch(0.495 0.195 26.901);
  --chart-2: oklch(0.704 0.12 188.96);
  --chart-3: oklch(0.704 0.12 188.96);
  --chart-4: oklch(0.744 0.127 188.934);
  --chart-5: oklch(0.5 0.198 27.255);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.992 0.001 13.621);
  --muted: oklch(0.202 0.011 192.53);
  --muted-foreground: oklch(0.736 0.016 193.177);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.992 0.001 13.621);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.992 0.001 13.621);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.495 0.195 26.901);
  --primary-foreground: oklch(0.989 0.005 13.699);
  --secondary: oklch(0.704 0.12 188.96);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.704 0.12 188.96);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.695 0.176 43.053);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.495 0.195 26.901);
  --chart-1: oklch(0.495 0.195 26.901);
  --chart-2: oklch(0.704 0.12 188.96);
  --chart-3: oklch(0.704 0.12 188.96);
  --chart-4: oklch(0.744 0.127 188.934);
  --chart-5: oklch(0.5 0.198 27.255);
}