Mama for shadcn/ui

Mama is a shadcn/ui theme built around a near-black primary color (#0b0a0a) with near-black accents (#0a0a0b). The light mode uses a neutral background (#fdfdfb). Dark mode keeps the near-black primary (#0b0a0a) on a neutral background (#070603).

Color palette

TokenLightDark
Background
#fdfdfbsnow
#070603black
Foreground
#121002black
#fdfdfcwhite
Card
#fcfbf8snow
#0a0905black
Card foreground
#0e0c02black
#ffffffwhite
Popover
#fcfbf8snow
#0a0905black
Popover foreground
#0e0c02black
#ffffffwhite
Primary
#0b0a0ablack
#0b0a0ablack
Primary foreground
#a7a6a0darkgray
#a7a6a0darkgray
Secondary
#0a0a0bblack
#0a0a0bblack
Secondary foreground
#a0a1a7darkgray
#a0a1a7darkgray
Muted
#ececeewhitesmoke
#111113black
Muted foreground
#43465bdarkslategray
#a4a7bcdarkgray
Accent
#0a0a0bblack
#0a0a0bblack
Accent foreground
#a0a1a7darkgray
#a0a1a7darkgray
Destructive
#d4310cfirebrick
#d9320dorangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#0b0a0ablack
#0b0a0ablack

Contrast

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

Light mode
Text on background18.77:1AAA
Text on card18.95:1AAA
Primary button8.09:1AAA
Secondary button7.68:1AAA
Muted text7.86:1AAA
Accent7.68:1AAA
Destructive4.94:1AA
Dark mode
Text on background19.88:1AAA
Text on card19.88:1AAA
Primary button8.09:1AAA
Secondary button7.68:1AAA
Muted text7.94:1AAA
Accent7.68:1AAA
Destructive4.76:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.002 99.374);
  --foreground: oklch(0.171 0.03 102.285);
  --muted: oklch(0.944 0.003 279.294);
  --muted-foreground: oklch(0.401 0.035 277.878);
  --popover: oklch(0.989 0.004 99.408);
  --popover-foreground: oklch(0.153 0.026 103.135);
  --card: oklch(0.989 0.004 99.408);
  --card-foreground: oklch(0.153 0.026 103.135);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.147 0.002 99.481);
  --primary-foreground: oklch(0.724 0.009 99.525);
  --secondary: oklch(0.144 0.002 279.089);
  --secondary-foreground: oklch(0.709 0.009 279.142);
  --accent: oklch(0.144 0.002 279.089);
  --accent-foreground: oklch(0.709 0.009 279.142);
  --destructive: oklch(0.569 0.204 32.997);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.147 0.002 99.481);
  --chart-1: oklch(0.147 0.002 99.481);
  --chart-2: oklch(0.144 0.002 279.089);
  --chart-3: oklch(0.144 0.002 279.089);
  --chart-4: oklch(0.179 0.003 279.125);
  --chart-5: oklch(0.148 0.003 99.633);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.123 0.009 101.535);
  --foreground: oklch(0.994 0.002 99.365);
  --muted: oklch(0.178 0.004 278.952);
  --muted-foreground: oklch(0.733 0.03 278.697);
  --popover: oklch(0.141 0.011 101.535);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.141 0.011 101.535);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.147 0.002 99.481);
  --primary-foreground: oklch(0.724 0.009 99.525);
  --secondary: oklch(0.144 0.002 279.089);
  --secondary-foreground: oklch(0.709 0.009 279.142);
  --accent: oklch(0.144 0.002 279.089);
  --accent-foreground: oklch(0.709 0.009 279.142);
  --destructive: oklch(0.578 0.207 32.98);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.147 0.002 99.481);
  --chart-1: oklch(0.147 0.002 99.481);
  --chart-2: oklch(0.144 0.002 279.089);
  --chart-3: oklch(0.144 0.002 279.089);
  --chart-4: oklch(0.179 0.003 279.125);
  --chart-5: oklch(0.148 0.003 99.633);
}