Material Neutral for shadcn/ui

Material Neutral is a shadcn/ui theme built around a muted cyan primary color (#455d68) with muted blue accents (#445964). The light mode uses a blue-tinted background (#253137). Dark mode keeps the muted cyan primary (#455d68) on a blue-tinted background (#253137).

Color palette

TokenLightDark
Background
#253137darkslategray
#253137darkslategray
Foreground
#b2ccd7lightsteelblue
#b2ccd7lightsteelblue
Card
#212b31darkslategray
#212b31darkslategray
Card foreground
#c3d7dflightgrey
#c3d7dflightgrey
Popover
#1f292edarkslategray
#1f292edarkslategray
Popover foreground
#d4e2e8gainsboro
#d4e2e8gainsboro
Primary
#455d68darkslategray
#455d68darkslategray
Primary foreground
#edf1f3whitesmoke
#edf1f3whitesmoke
Secondary
#b9c2c6silver
#b9c2c6silver
Secondary foreground
#22282adarkslategray
#22282adarkslategray
Muted
#313a3fdarkslategray
#313a3fdarkslategray
Muted foreground
#afbac0silver
#afbac0silver
Accent
#445964darkslategray
#445964darkslategray
Accent foreground
#eaeef1lavender
#eaeef1lavender
Destructive
#f0120ared
#f0120ared
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#353c40darkslategray
#353c40darkslategray
Input
#3c4448darkslategray
#3c4448darkslategray
Ring
#455d68darkslategray
#455d68darkslategray

Contrast

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

Light mode
Text on background7.96:1AAA
Text on card9.66:1AAA
Primary button6.11:1AA
Secondary button8.22:1AAA
Muted text5.84:1AA
Accent6.25:1AA
Destructive4.38:1AA Large
Dark mode
Text on background7.96:1AAA
Text on card9.66:1AAA
Primary button6.11:1AA
Secondary button8.22:1AAA
Muted text5.84:1AA
Accent6.25:1AA
Destructive4.38:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.304 0.019 229.767);
  --foreground: oklch(0.83 0.032 223.59);
  --muted: oklch(0.343 0.014 229.374);
  --muted-foreground: oklch(0.783 0.015 229.013);
  --popover: oklch(0.272 0.016 229.712);
  --popover-foreground: oklch(0.904 0.018 223.341);
  --card: oklch(0.283 0.017 229.732);
  --card-foreground: oklch(0.867 0.025 223.453);
  --border: oklch(0.353 0.011 229.207);
  --input: oklch(0.382 0.012 229.219);
  --primary: oklch(0.464 0.034 228.069);
  --primary-foreground: oklch(0.955 0.005 226.923);
  --secondary: oklch(0.807 0.011 227.031);
  --secondary-foreground: oklch(0.271 0.009 227.296);
  --accent: oklch(0.452 0.031 229.918);
  --accent-foreground: oklch(0.947 0.006 228.83);
  --destructive: oklch(0.604 0.242 29.284);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.464 0.034 228.069);
  --chart-1: oklch(0.464 0.034 228.069);
  --chart-2: oklch(0.807 0.011 227.031);
  --chart-3: oklch(0.452 0.031 229.918);
  --chart-4: oklch(0.831 0.01 227.004);
  --chart-5: oklch(0.465 0.038 228.31);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.304 0.019 229.767);
  --foreground: oklch(0.83 0.032 223.59);
  --muted: oklch(0.343 0.014 229.374);
  --muted-foreground: oklch(0.783 0.015 229.013);
  --popover: oklch(0.272 0.016 229.712);
  --popover-foreground: oklch(0.904 0.018 223.341);
  --card: oklch(0.283 0.017 229.732);
  --card-foreground: oklch(0.867 0.025 223.453);
  --border: oklch(0.353 0.011 229.207);
  --input: oklch(0.382 0.012 229.219);
  --primary: oklch(0.464 0.034 228.069);
  --primary-foreground: oklch(0.955 0.005 226.923);
  --secondary: oklch(0.807 0.011 227.031);
  --secondary-foreground: oklch(0.271 0.009 227.296);
  --accent: oklch(0.452 0.031 229.918);
  --accent-foreground: oklch(0.947 0.006 228.83);
  --destructive: oklch(0.604 0.242 29.284);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.464 0.034 228.069);
  --chart-1: oklch(0.464 0.034 228.069);
  --chart-2: oklch(0.807 0.011 227.031);
  --chart-3: oklch(0.452 0.031 229.918);
  --chart-4: oklch(0.831 0.01 227.004);
  --chart-5: oklch(0.465 0.038 228.31);
}