Immaterial for shadcn/ui

Immaterial is a shadcn/ui theme built around a neutral gray primary color (#373434) with muted light red accents (#d7c6c7). The light mode uses a neutral background (#fdf7f8). Dark mode keeps the neutral gray primary (#373434) on a neutral background (#070304).

Color palette

TokenLightDark
Background
#fdf7f8snow
#070304black
Foreground
#140607black
#ffffffwhite
Card
#fdf7f8snow
#070304black
Card foreground
#140607black
#ffffffwhite
Popover
#fdf7f8snow
#070304black
Popover foreground
#140607black
#ffffffwhite
Primary
#373434darkslategray
#373434darkslategray
Primary foreground
#d0cdcdlightgrey
#d0cdcdlightgrey
Secondary
#d7c6c7lightgrey
#221c1cblack
Secondary foreground
#3f2c2edarkslategray
#bfb0b1silver
Muted
#e9e2e2gainsboro
#1d1616black
Muted foreground
#655354dimgray
#ac9a9bdarkgray
Accent
#d7c6c7lightgrey
#221c1cblack
Accent foreground
#3f2c2edarkslategray
#bfb0b1silver
Destructive
#632109maroon
#eb5119orangered
Destructive foreground
#f7bca6lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#373434darkslategray
#373434darkslategray

Contrast

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

Light mode
Text on background18.73:1AAA
Text on card18.73:1AAA
Primary button7.80:1AAA
Secondary button7.95:1AAA
Muted text5.63:1AA
Accent7.95:1AAA
Destructive7.29:1AAA
Dark mode
Text on background20.48:1AAA
Text on card20.48:1AAA
Primary button7.80:1AAA
Secondary button8.07:1AAA
Muted text6.66:1AA
Accent8.07:1AAA
Destructive3.66:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.981 0.006 12.553);
  --foreground: oklch(0.145 0.027 15.698);
  --muted: oklch(0.918 0.008 12.604);
  --muted-foreground: oklch(0.46 0.024 13.554);
  --popover: oklch(0.981 0.006 12.553);
  --popover-foreground: oklch(0.145 0.027 15.698);
  --card: oklch(0.981 0.006 12.553);
  --card-foreground: oklch(0.145 0.027 15.698);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.328 0.005 12.717);
  --primary-foreground: oklch(0.851 0.003 12.506);
  --secondary: oklch(0.841 0.019 12.889);
  --secondary-foreground: oklch(0.317 0.027 14.265);
  --accent: oklch(0.841 0.019 12.889);
  --accent-foreground: oklch(0.317 0.027 14.265);
  --destructive: oklch(0.344 0.101 38.514);
  --destructive-foreground: oklch(0.843 0.076 40.876);
  --ring: oklch(0.328 0.005 12.717);
  --chart-1: oklch(0.328 0.005 12.717);
  --chart-2: oklch(0.841 0.019 12.889);
  --chart-3: oklch(0.841 0.019 12.889);
  --chart-4: oklch(0.867 0.015 12.8);
  --chart-5: oklch(0.325 0.009 13.021);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.109 0.01 13.412);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.209 0.012 13.605);
  --muted-foreground: oklch(0.703 0.022 13.077);
  --popover: oklch(0.109 0.01 13.412);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.109 0.01 13.412);
  --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.328 0.005 12.717);
  --primary-foreground: oklch(0.851 0.003 12.506);
  --secondary: oklch(0.232 0.01 13.302);
  --secondary-foreground: oklch(0.771 0.016 12.873);
  --accent: oklch(0.232 0.01 13.302);
  --accent-foreground: oklch(0.771 0.016 12.873);
  --destructive: oklch(0.64 0.199 37.688);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.328 0.005 12.717);
  --chart-1: oklch(0.328 0.005 12.717);
  --chart-2: oklch(0.232 0.01 13.302);
  --chart-3: oklch(0.232 0.01 13.302);
  --chart-4: oklch(0.263 0.012 13.365);
  --chart-5: oklch(0.325 0.009 13.021);
}