Mama for shadcn/ui

Mama is a shadcn/ui theme built around a neutral gray primary color (#727973) with neutral gray accents (#797278). The light mode uses a neutral background (#f6fdf8). Dark mode keeps the neutral gray primary (#727973) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#f6fdf8mintcream
#000000black
Foreground
#020d04black
#f9fafaghostwhite
Card
#f2fdf4honeydew
#030303black
Card foreground
#020903black
#fcfdfcwhite
Popover
#f2fdf4honeydew
#030303black
Popover foreground
#020903black
#fcfdfcwhite
Primary
#727973gray
#727973gray
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#797278gray
#797278gray
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#edd9ealavender
#261223black
Muted foreground
#474346darkslategray
#bcb8bbsilver
Accent
#797278gray
#797278gray
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#9d2d0bsaddlebrown
#f15e32tomato
Destructive foreground
#fde5demistyrose
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#727973gray
#727973gray

Contrast

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

Light mode
Text on background19.20:1AAA
Text on card19.26:1AAA
Primary button4.48:1AA Large
Secondary button4.69:1AA
Muted text7.25:1AAA
Accent4.69:1AA
Destructive6.17:1AA
Dark mode
Text on background20.08:1AAA
Text on card20.28:1AAA
Primary button4.48:1AA Large
Secondary button4.69:1AA
Muted text8.98:1AAA
Accent4.69:1AA
Destructive6.39:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.988 0.011 151.251);
  --foreground: oklch(0.143 0.029 150.089);
  --muted: oklch(0.906 0.032 331.899);
  --muted-foreground: oklch(0.387 0.008 331.693);
  --popover: oklch(0.983 0.016 151.171);
  --popover-foreground: oklch(0.124 0.025 150.267);
  --card: oklch(0.983 0.016 151.171);
  --card-foreground: oklch(0.124 0.025 150.267);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.568 0.012 151.098);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.56 0.012 331.714);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.56 0.012 331.714);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.467 0.154 35.65);
  --destructive-foreground: oklch(0.939 0.028 37.63);
  --ring: oklch(0.568 0.012 151.098);
  --chart-1: oklch(0.568 0.012 151.098);
  --chart-2: oklch(0.56 0.012 331.714);
  --chart-3: oklch(0.56 0.012 331.714);
  --chart-4: oklch(0.585 0.013 331.716);
  --chart-5: oklch(0.572 0.024 150.788);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.985 0.002 151.383);
  --muted: oklch(0.218 0.045 334.081);
  --muted-foreground: oklch(0.787 0.007 331.526);
  --popover: oklch(0.092 0 180);
  --popover-foreground: oklch(0.993 0.001 151.395);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(0.993 0.001 151.395);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.568 0.012 151.098);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.56 0.012 331.714);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.56 0.012 331.714);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.667 0.19 37.004);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.568 0.012 151.098);
  --chart-1: oklch(0.568 0.012 151.098);
  --chart-2: oklch(0.56 0.012 331.714);
  --chart-3: oklch(0.56 0.012 331.714);
  --chart-4: oklch(0.585 0.013 331.716);
  --chart-5: oklch(0.572 0.024 150.788);
}