Immaculate for shadcn/ui

Immaculate is a shadcn/ui theme built around a vivid red primary color (#dc182f) with muted light red accents (#ccb7ba). The light mode uses a neutral background (#fdf7f7). Dark mode keeps the vivid red primary (#dc182f) on a red-tinted background (#100406).

Color palette

TokenLightDark
Background
#fdf7f7snow
#100406black
Foreground
#0d0203black
#f9f6f6whitesmoke
Card
#fdf7f7snow
#100406black
Card foreground
#0d0203black
#f9f6f6whitesmoke
Popover
#fdf7f7snow
#100406black
Popover foreground
#0d0203black
#f9f6f6whitesmoke
Primary
#dc182fcrimson
#dc182fcrimson
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#d2cbcclightgrey
#151414black
Secondary foreground
#393233darkslategray
#afacacdarkgray
Muted
#e8d3d6gainsboro
#2c1719black
Muted foreground
#625b5bdimgray
#a49d9edarkgray
Accent
#ccb7basilver
#312627darkslategray
Accent foreground
#302223darkslategray
#cbbdbfsilver
Destructive
#5e1608maroon
#ed4c2ctomato
Destructive foreground
#f7afa1lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#dc182fcrimson
#dc182fcrimson

Contrast

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

Light mode
Text on background19.27:1AAA
Text on card19.27:1AAA
Primary button4.96:1AA
Secondary button7.84:1AAA
Muted text4.65:1AA
Accent8.04:1AAA
Destructive7.26:1AAA
Dark mode
Text on background18.73:1AAA
Text on card18.73:1AAA
Primary button4.96:1AA
Secondary button8.16:1AAA
Muted text6.37:1AA
Accent8.05:1AAA
Destructive3.71:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.98 0.007 9.077);
  --foreground: oklch(0.115 0.029 11.045);
  --muted: oklch(0.886 0.024 9.544);
  --muted-foreground: oklch(0.477 0.01 9.397);
  --popover: oklch(0.98 0.007 9.077);
  --popover-foreground: oklch(0.115 0.029 11.045);
  --card: oklch(0.98 0.007 9.077);
  --card-foreground: oklch(0.115 0.029 11.045);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.572 0.221 23.828);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.848 0.008 9.122);
  --secondary-foreground: oklch(0.325 0.011 9.698);
  --accent: oklch(0.799 0.024 9.618);
  --accent-foreground: oklch(0.269 0.021 10.807);
  --destructive: oklch(0.322 0.106 33.136);
  --destructive-foreground: oklch(0.819 0.087 31.625);
  --ring: oklch(0.572 0.221 23.828);
  --chart-1: oklch(0.572 0.221 23.828);
  --chart-2: oklch(0.848 0.008 9.122);
  --chart-3: oklch(0.799 0.024 9.618);
  --chart-4: oklch(0.873 0.006 9.082);
  --chart-5: oklch(0.577 0.226 24.382);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.132 0.026 11.17);
  --foreground: oklch(0.975 0.003 8.986);
  --muted: oklch(0.233 0.035 12.556);
  --muted-foreground: oklch(0.702 0.009 9.209);
  --popover: oklch(0.132 0.026 11.17);
  --popover-foreground: oklch(0.975 0.003 8.986);
  --card: oklch(0.132 0.026 11.17);
  --card-foreground: oklch(0.975 0.003 8.986);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.572 0.221 23.828);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.192 0.001 9.073);
  --secondary-foreground: oklch(0.746 0.004 9.029);
  --accent: oklch(0.282 0.016 10.232);
  --accent-foreground: oklch(0.811 0.016 9.377);
  --destructive: oklch(0.638 0.202 33.172);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.572 0.221 23.828);
  --chart-1: oklch(0.572 0.221 23.828);
  --chart-2: oklch(0.192 0.001 9.073);
  --chart-3: oklch(0.282 0.016 10.232);
  --chart-4: oklch(0.226 0.002 9.094);
  --chart-5: oklch(0.577 0.226 24.382);
}