Minor Black Pool for shadcn/ui

Minor Black Pool is a shadcn/ui theme built around a neutral gray primary color (#525752) with muted light green accents (#d7e0d7). The light mode uses a neutral background (#ffffff). Dark mode keeps the neutral gray primary (#525752) on a neutral background (#010401).

Color palette

TokenLightDark
Background
#ffffffwhite
#010401black
Foreground
#020d02black
#f7f8f7whitesmoke
Card
#fcfcfcsnow
#030802black
Card foreground
#020901black
#f9faf9snow
Popover
#fcfcfcsnow
#030802black
Popover foreground
#020901black
#f9faf9snow
Primary
#525752darkslategray
#525752darkslategray
Primary foreground
#edeeedwhitesmoke
#edeeedwhitesmoke
Secondary
#d7e0d7gainsboro
#1c261cblack
Secondary foreground
#3b4b3adarkslategray
#b0c5afsilver
Muted
#eff6eewhitesmoke
#091109black
Muted foreground
#505350darkslategray
#acafacdarkgray
Accent
#d7e0d7gainsboro
#1c261cblack
Accent foreground
#3b4b3adarkslategray
#b0c5afsilver
Destructive
#cd1e0efirebrick
#f03524orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e9ede9linen
#171c17black
Input
#e9ede9linen
#171c17black
Ring
#525752darkslategray
#525752darkslategray

Contrast

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

Light mode
Text on background19.79:1AAA
Text on card19.71:1AAA
Primary button6.37:1AA
Secondary button6.89:1AA
Muted text7.09:1AAA
Accent6.89:1AA
Destructive5.53:1AA
Dark mode
Text on background19.35:1AAA
Text on card19.32:1AAA
Primary button6.37:1AA
Secondary button8.48:1AAA
Muted text8.66:1AAA
Accent8.48:1AAA
Destructive4.01:1AA Large

CSS variables

Paste this into your globals.css to use Minor Black Pool in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.144 0.036 141.862);
  --muted: oklch(0.966 0.013 144.051);
  --muted-foreground: oklch(0.439 0.007 144.042);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0.124 0.031 141.837);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.124 0.031 141.837);
  --border: oklch(0.941 0.007 144.088);
  --input: oklch(0.941 0.007 144.088);
  --primary: oklch(0.45 0.01 143.998);
  --primary-foreground: oklch(0.947 0.002 144.119);
  --secondary: oklch(0.897 0.016 144.028);
  --secondary-foreground: oklch(0.393 0.035 143.586);
  --accent: oklch(0.897 0.016 144.028);
  --accent-foreground: oklch(0.393 0.035 143.586);
  --destructive: oklch(0.543 0.208 30.093);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.45 0.01 143.998);
  --chart-1: oklch(0.45 0.01 143.998);
  --chart-2: oklch(0.897 0.016 144.028);
  --chart-3: oklch(0.897 0.016 144.028);
  --chart-4: oklch(0.919 0.012 144.052);
  --chart-5: oklch(0.453 0.02 143.866);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.097 0.018 142.5);
  --foreground: oklch(0.978 0.003 144.113);
  --muted: oklch(0.165 0.02 143.317);
  --muted-foreground: oklch(0.751 0.006 144.085);
  --popover: oklch(0.122 0.023 142.5);
  --popover-foreground: oklch(0.985 0.002 144.119);
  --card: oklch(0.122 0.023 142.5);
  --card-foreground: oklch(0.985 0.002 144.119);
  --border: oklch(0.22 0.012 143.799);
  --input: oklch(0.22 0.012 143.799);
  --primary: oklch(0.45 0.01 143.998);
  --primary-foreground: oklch(0.947 0.002 144.119);
  --secondary: oklch(0.257 0.024 143.561);
  --secondary-foreground: oklch(0.802 0.038 143.847);
  --accent: oklch(0.257 0.024 143.561);
  --accent-foreground: oklch(0.802 0.038 143.847);
  --destructive: oklch(0.622 0.224 29.904);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.45 0.01 143.998);
  --chart-1: oklch(0.45 0.01 143.998);
  --chart-2: oklch(0.257 0.024 143.561);
  --chart-3: oklch(0.257 0.024 143.561);
  --chart-4: oklch(0.291 0.029 143.529);
  --chart-5: oklch(0.453 0.02 143.866);
}