Mean for shadcn/ui

Mean is a shadcn/ui theme built around a muted purple primary color (#b998b1) with muted cyan accents (#98b1b9). The light mode uses a neutral background (#fdf6fc). Dark mode keeps the muted purple primary (#b998b1) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fdf6fcsnow
#000000black
Foreground
#10050dblack
#ffffffwhite
Card
#fdf6fcsnow
#000000black
Card foreground
#10050dblack
#ffffffwhite
Popover
#fdf6fcsnow
#000000black
Popover foreground
#10050dblack
#ffffffwhite
Primary
#b998b1darkgray
#b998b1darkgray
Primary foreground
#120c11black
#120c11black
Secondary
#b1b998darkgray
#b1b998darkgray
Secondary foreground
#11120cblack
#11120cblack
Muted
#e0e5d2gainsboro
#282d1adarkslategray
Muted foreground
#474841darkslategray
#bcbeb7silver
Accent
#98b1b9darkgray
#98b1b9darkgray
Accent foreground
#0c1112black
#0c1112black
Destructive
#c30909firebrick
#f63737crimson
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#b998b1darkgray
#b998b1darkgray

Contrast

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

Light mode
Text on background18.88:1AAA
Text on card18.88:1AAA
Primary button7.51:1AAA
Secondary button9.17:1AAA
Muted text7.15:1AAA
Accent8.40:1AAA
Destructive6.25:1AA
Dark mode
Text on background21.00:1AAA
Text on card21.00:1AAA
Primary button7.51:1AAA
Secondary button9.17:1AAA
Muted text7.54:1AAA
Accent8.40:1AAA
Destructive3.80:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.981 0.01 334.054);
  --foreground: oklch(0.137 0.028 335.977);
  --muted: oklch(0.912 0.025 118.316);
  --muted-foreground: oklch(0.399 0.012 118.337);
  --popover: oklch(0.981 0.01 334.054);
  --popover-foreground: oklch(0.137 0.028 335.977);
  --card: oklch(0.981 0.01 334.054);
  --card-foreground: oklch(0.137 0.028 335.977);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.717 0.052 335.044);
  --primary-foreground: oklch(0.166 0.013 335.155);
  --secondary: oklch(0.77 0.046 118.9);
  --secondary-foreground: oklch(0.179 0.012 118.997);
  --accent: oklch(0.743 0.03 219.893);
  --accent-foreground: oklch(0.172 0.008 219.942);
  --destructive: oklch(0.516 0.208 28.825);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.717 0.052 335.044);
  --chart-1: oklch(0.717 0.052 335.044);
  --chart-2: oklch(0.77 0.046 118.9);
  --chart-3: oklch(0.743 0.03 219.893);
  --chart-4: oklch(0.791 0.042 118.773);
  --chart-5: oklch(0.715 0.06 335.225);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.287 0.033 119.91);
  --muted-foreground: oklch(0.797 0.01 118.041);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0 0 0);
  --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.717 0.052 335.044);
  --primary-foreground: oklch(0.166 0.013 335.155);
  --secondary: oklch(0.77 0.046 118.9);
  --secondary-foreground: oklch(0.179 0.012 118.997);
  --accent: oklch(0.743 0.03 219.893);
  --accent-foreground: oklch(0.172 0.008 219.942);
  --destructive: oklch(0.636 0.225 26.487);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.717 0.052 335.044);
  --chart-1: oklch(0.717 0.052 335.044);
  --chart-2: oklch(0.77 0.046 118.9);
  --chart-3: oklch(0.743 0.03 219.893);
  --chart-4: oklch(0.791 0.042 118.773);
  --chart-5: oklch(0.715 0.06 335.225);
}