mono white for shadcn/ui

mono white is a shadcn/ui theme built around a near-black primary color (#0f0f0f) with neutral gray accents (#c9c9c9). The light mode uses a neutral background (#f0f0f0). Dark mode keeps the near-black primary (#0f0f0f) on a neutral background (#f0f0f0).

Color palette

TokenLightDark
Background
#f0f0f0whitesmoke
#f0f0f0whitesmoke
Foreground
#0f0f0fblack
#0f0f0fblack
Card
#ebebeblinen
#ebebeblinen
Card foreground
#030303black
#030303black
Popover
#e8e8e8lavender
#e8e8e8lavender
Popover foreground
#000000black
#000000black
Primary
#0f0f0fblack
#0f0f0fblack
Primary foreground
#a8a8a8darkgray
#a8a8a8darkgray
Secondary
#bfbfbfsilver
#bfbfbfsilver
Secondary foreground
#262626darkslategray
#262626darkslategray
Muted
#e9e2e2gainsboro
#e9e2e2gainsboro
Muted foreground
#564343darkslategray
#564343darkslategray
Accent
#c9c9c9silver
#c9c9c9silver
Accent foreground
#303030darkslategray
#303030darkslategray
Destructive
#cf0f0cfirebrick
#cf0f0cfirebrick
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e3e3e3gainsboro
#e3e3e3gainsboro
Input
#dbdbdbgainsboro
#dbdbdbgainsboro
Ring
#0f0f0fblack
#0f0f0fblack

Contrast

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

Light mode
Text on background16.77:1AAA
Text on card17.23:1AAA
Primary button8.04:1AAA
Secondary button8.25:1AAA
Muted text7.22:1AAA
Accent8.00:1AAA
Destructive5.62:1AA
Dark mode
Text on background16.77:1AAA
Text on card17.23:1AAA
Primary button8.04:1AAA
Secondary button8.25:1AAA
Muted text7.22:1AAA
Accent8.00:1AAA
Destructive5.62:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.954 0 180);
  --foreground: oklch(0.17 0 180);
  --muted: oklch(0.919 0.007 17.278);
  --muted-foreground: oklch(0.404 0.025 18.259);
  --popover: oklch(0.931 0 180);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.939 0 180);
  --card-foreground: oklch(0.092 0 180);
  --border: oklch(0.916 0 180);
  --input: oklch(0.892 0 180);
  --primary: oklch(0.17 0 180);
  --primary-foreground: oklch(0.733 0 180);
  --secondary: oklch(0.805 0 169.695);
  --secondary-foreground: oklch(0.27 0 180);
  --accent: oklch(0.837 0 171.254);
  --accent-foreground: oklch(0.311 0 180);
  --destructive: oklch(0.541 0.216 28.959);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.17 0 180);
  --chart-1: oklch(0.17 0 180);
  --chart-2: oklch(0.805 0 169.695);
  --chart-3: oklch(0.837 0 171.254);
  --chart-4: oklch(0.829 0 180);
  --chart-5: oklch(0.169 0.002 17.308);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.954 0 180);
  --foreground: oklch(0.17 0 180);
  --muted: oklch(0.919 0.007 17.278);
  --muted-foreground: oklch(0.404 0.025 18.259);
  --popover: oklch(0.931 0 180);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.939 0 180);
  --card-foreground: oklch(0.092 0 180);
  --border: oklch(0.916 0 180);
  --input: oklch(0.892 0 180);
  --primary: oklch(0.17 0 180);
  --primary-foreground: oklch(0.733 0 180);
  --secondary: oklch(0.805 0 169.695);
  --secondary-foreground: oklch(0.27 0 180);
  --accent: oklch(0.837 0 171.254);
  --accent-foreground: oklch(0.311 0 180);
  --destructive: oklch(0.541 0.216 28.959);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.17 0 180);
  --chart-1: oklch(0.17 0 180);
  --chart-2: oklch(0.805 0 169.695);
  --chart-3: oklch(0.837 0 171.254);
  --chart-4: oklch(0.829 0 180);
  --chart-5: oklch(0.169 0.002 17.308);
}