Catacomb for shadcn/ui

Catacomb is a shadcn/ui theme built around a deep blue primary color (#232f67) with deep violet accents (#382367). The light mode uses a neutral background (#fbfcfe). Dark mode keeps the deep blue primary (#232f67) on a blue-tinted background (#06070f).

Color palette

TokenLightDark
Background
#fbfcfewhite
#06070fblack
Foreground
#010309black
#f6f6f9whitesmoke
Card
#fbfcfewhite
#06070fblack
Card foreground
#010309black
#f6f6f9whitesmoke
Popover
#fbfcfewhite
#06070fblack
Popover foreground
#010309black
#f6f6f9whitesmoke
Primary
#232f67midnightblue
#232f67midnightblue
Primary foreground
#ced4eegainsboro
#ced4eegainsboro
Secondary
#235167darkslategray
#235167darkslategray
Secondary foreground
#cee4eegainsboro
#cee4eegainsboro
Muted
#e0e7eblavender
#141b1fblack
Muted foreground
#525252darkslategray
#adadaddarkgray
Accent
#382367midnightblue
#382367midnightblue
Accent foreground
#d8ceeegainsboro
#d8ceeegainsboro
Destructive
#9e4110saddlebrown
#ea6d2achocolate
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#232f67midnightblue
#232f67midnightblue

Contrast

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

Light mode
Text on background20.05:1AAA
Text on card20.05:1AAA
Primary button8.49:1AAA
Secondary button6.51:1AA
Muted text6.27:1AA
Accent8.70:1AAA
Destructive6.51:1AA
Dark mode
Text on background18.62:1AAA
Text on card18.62:1AAA
Primary button8.49:1AAA
Secondary button6.51:1AA
Muted text7.72:1AAA
Accent8.70:1AAA
Destructive6.70:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.003 276.13);
  --foreground: oklch(0.096 0.022 266.037);
  --muted: oklch(0.925 0.009 226.979);
  --muted-foreground: oklch(0.437 0 180);
  --popover: oklch(0.99 0.003 276.13);
  --popover-foreground: oklch(0.096 0.022 266.037);
  --card: oklch(0.99 0.003 276.13);
  --card-foreground: oklch(0.096 0.022 266.037);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.329 0.098 270.671);
  --primary-foreground: oklch(0.872 0.037 275.57);
  --secondary: oklch(0.413 0.062 230.893);
  --secondary-foreground: oklch(0.905 0.028 227.267);
  --accent: oklch(0.324 0.113 293.704);
  --accent-foreground: oklch(0.869 0.046 299.899);
  --destructive: oklch(0.494 0.136 43.77);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.329 0.098 270.671);
  --chart-1: oklch(0.329 0.098 270.671);
  --chart-2: oklch(0.413 0.062 230.893);
  --chart-3: oklch(0.324 0.113 293.704);
  --chart-4: oklch(0.444 0.067 230.998);
  --chart-5: oklch(0.327 0.103 270.224);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.132 0.018 271.601);
  --foreground: oklch(0.974 0.004 276.116);
  --muted: oklch(0.218 0.013 227.756);
  --muted-foreground: oklch(0.749 0 158.199);
  --popover: oklch(0.132 0.018 271.601);
  --popover-foreground: oklch(0.974 0.004 276.116);
  --card: oklch(0.132 0.018 271.601);
  --card-foreground: oklch(0.974 0.004 276.116);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.329 0.098 270.671);
  --primary-foreground: oklch(0.872 0.037 275.57);
  --secondary: oklch(0.413 0.062 230.893);
  --secondary-foreground: oklch(0.905 0.028 227.267);
  --accent: oklch(0.324 0.113 293.704);
  --accent-foreground: oklch(0.869 0.046 299.899);
  --destructive: oklch(0.675 0.173 45.079);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.329 0.098 270.671);
  --chart-1: oklch(0.329 0.098 270.671);
  --chart-2: oklch(0.413 0.062 230.893);
  --chart-3: oklch(0.324 0.113 293.704);
  --chart-4: oklch(0.444 0.067 230.998);
  --chart-5: oklch(0.327 0.103 270.224);
}