Immaterial for shadcn/ui

Immaterial is a shadcn/ui theme built around a vivid purple primary color (#ea80ef) with vivid teal accents (#80efea). The light mode uses a neutral background (#fdfbfe). Dark mode keeps the vivid purple primary (#ea80ef) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fdfbfewhite
#000000black
Foreground
#080208black
#fbf9fbsnow
Card
#fdfbfewhite
#000000black
Card foreground
#080208black
#fbf9fbsnow
Popover
#fdfbfewhite
#000000black
Popover foreground
#080208black
#fbf9fbsnow
Primary
#ea80efviolet
#ea80efviolet
Primary foreground
#340736midnightblue
#340736midnightblue
Secondary
#efea80khaki
#efea80khaki
Secondary foreground
#363407darkgreen
#363407darkgreen
Muted
#f2f2edwhitesmoke
#12120dblack
Muted foreground
#656458dimgray
#a7a79adarkgray
Accent
#80efeaaquamarine
#80efeaaquamarine
Accent foreground
#073634darkslategray
#073634darkslategray
Destructive
#ae4609saddlebrown
#f4772ftomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#ea80efviolet
#ea80efviolet

Contrast

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

Light mode
Text on background20.00:1AAA
Text on card20.00:1AAA
Primary button7.17:1AAA
Secondary button10.13:1AAA
Muted text5.32:1AA
Accent9.75:1AAA
Destructive5.70:1AA
Dark mode
Text on background20.04:1AAA
Text on card20.04:1AAA
Primary button7.17:1AAA
Secondary button10.13:1AAA
Muted text7.73:1AAA
Accent9.75:1AAA
Destructive7.52:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.004 324.152);
  --foreground: oklch(0.107 0.029 326.061);
  --muted: oklch(0.96 0.007 104.095);
  --muted-foreground: oklch(0.501 0.019 104.611);
  --popover: oklch(0.991 0.004 324.152);
  --popover-foreground: oklch(0.107 0.029 326.061);
  --card: oklch(0.991 0.004 324.152);
  --card-foreground: oklch(0.107 0.029 326.061);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.755 0.188 325.384);
  --primary-foreground: oklch(0.238 0.096 325.859);
  --secondary: oklch(0.919 0.128 105.987);
  --secondary-foreground: oklch(0.318 0.062 106.356);
  --accent: oklch(0.886 0.103 191.199);
  --accent-foreground: oklch(0.304 0.048 189.835);
  --destructive: oklch(0.527 0.15 43.531);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.755 0.188 325.384);
  --chart-1: oklch(0.755 0.188 325.384);
  --chart-2: oklch(0.919 0.128 105.987);
  --chart-3: oklch(0.886 0.103 191.199);
  --chart-4: oklch(0.927 0.117 105.832);
  --chart-5: oklch(0.755 0.195 325.418);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.984 0.004 324.152);
  --muted: oklch(0.18 0.01 104.905);
  --muted-foreground: oklch(0.724 0.018 104.384);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.984 0.004 324.152);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.984 0.004 324.152);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.755 0.188 325.384);
  --primary-foreground: oklch(0.238 0.096 325.859);
  --secondary: oklch(0.919 0.128 105.987);
  --secondary-foreground: oklch(0.318 0.062 106.356);
  --accent: oklch(0.886 0.103 191.199);
  --accent-foreground: oklch(0.304 0.048 189.835);
  --destructive: oklch(0.705 0.174 46.762);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.755 0.188 325.384);
  --chart-1: oklch(0.755 0.188 325.384);
  --chart-2: oklch(0.919 0.128 105.987);
  --chart-3: oklch(0.886 0.103 191.199);
  --chart-4: oklch(0.927 0.117 105.832);
  --chart-5: oklch(0.755 0.195 325.418);
}