Mature Black Chasm for shadcn/ui

Mature Black Chasm is a shadcn/ui theme built around a deep cyan primary color (#122c30) with deep green accents (#2c3012). The light mode uses a neutral background (#fbfdfd). Dark mode keeps the deep cyan primary (#122c30) on a neutral background (#010304).

Color palette

TokenLightDark
Background
#fbfdfdwhite
#010304black
Foreground
#010809black
#fcfdfdwhite
Card
#fbfdfdwhite
#010304black
Card foreground
#010809black
#fcfdfdwhite
Popover
#fbfdfdwhite
#010304black
Popover foreground
#010809black
#fcfdfdwhite
Primary
#122c30darkslategray
#122c30darkslategray
Primary foreground
#9ad1dalightblue
#9ad1dalightblue
Secondary
#30122cblack
#30122cblack
Secondary foreground
#da9ad1plum
#da9ad1plum
Muted
#e1d1dfgainsboro
#2e1e2cdarkslategray
Muted foreground
#584655darkslategray
#b9a7b6darkgray
Accent
#2c3012black
#2c3012black
Accent foreground
#b0be50darkkhaki
#b0be50darkkhaki
Destructive
#930d0bdarkred
#da1410crimson
Destructive foreground
#fcd5d4mistyrose
#ffffffwhite
Border
#e4e7e7gainsboro
#242829darkslategray
Input
#e4e7e7gainsboro
#242829darkslategray
Ring
#122c30darkslategray
#122c30darkslategray

Contrast

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

Light mode
Text on background19.82:1AAA
Text on card19.82:1AAA
Primary button8.72:1AAA
Secondary button7.61:1AAA
Muted text5.92:1AA
Accent6.67:1AA
Destructive6.77:1AA
Dark mode
Text on background20.24:1AAA
Text on card20.24:1AAA
Primary button8.72:1AAA
Secondary button7.61:1AAA
Muted text6.90:1AA
Accent6.67:1AA
Destructive5.13:1AA

CSS variables

Paste this into your globals.css to use Mature Black Chasm in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.993 0.002 207.925);
  --foreground: oklch(0.124 0.017 203.919);
  --muted: oklch(0.877 0.026 330.039);
  --muted-foreground: oklch(0.419 0.033 330.625);
  --popover: oklch(0.993 0.002 207.925);
  --popover-foreground: oklch(0.124 0.017 203.919);
  --card: oklch(0.993 0.002 207.925);
  --card-foreground: oklch(0.124 0.017 203.919);
  --border: oklch(0.925 0.003 207.917);
  --input: oklch(0.925 0.003 207.917);
  --primary: oklch(0.276 0.033 208.571);
  --primary-foreground: oklch(0.827 0.058 207.91);
  --secondary: oklch(0.24 0.064 332.676);
  --secondary-foreground: oklch(0.766 0.104 331.248);
  --accent: oklch(0.299 0.049 115.723);
  --accent-foreground: oklch(0.769 0.136 116.055);
  --destructive: oklch(0.422 0.165 28.618);
  --destructive-foreground: oklch(0.906 0.044 19.137);
  --ring: oklch(0.276 0.033 208.571);
  --chart-1: oklch(0.276 0.033 208.571);
  --chart-2: oklch(0.24 0.064 332.676);
  --chart-3: oklch(0.299 0.049 115.723);
  --chart-4: oklch(0.272 0.076 332.825);
  --chart-5: oklch(0.278 0.035 208.699);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.096 0.008 205.476);
  --foreground: oklch(0.993 0.002 207.926);
  --muted: oklch(0.262 0.035 331.205);
  --muted-foreground: oklch(0.749 0.029 330.15);
  --popover: oklch(0.096 0.008 205.476);
  --popover-foreground: oklch(0.993 0.002 207.926);
  --card: oklch(0.096 0.008 205.476);
  --card-foreground: oklch(0.993 0.002 207.926);
  --border: oklch(0.273 0.007 207.851);
  --input: oklch(0.273 0.007 207.851);
  --primary: oklch(0.276 0.033 208.571);
  --primary-foreground: oklch(0.827 0.058 207.91);
  --secondary: oklch(0.24 0.064 332.676);
  --secondary-foreground: oklch(0.766 0.104 331.248);
  --accent: oklch(0.299 0.049 115.723);
  --accent-foreground: oklch(0.769 0.136 116.055);
  --destructive: oklch(0.564 0.224 28.855);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.276 0.033 208.571);
  --chart-1: oklch(0.276 0.033 208.571);
  --chart-2: oklch(0.24 0.064 332.676);
  --chart-3: oklch(0.299 0.049 115.723);
  --chart-4: oklch(0.272 0.076 332.825);
  --chart-5: oklch(0.278 0.035 208.699);
}