Immaculate for shadcn/ui

Immaculate is a shadcn/ui theme built around a deep red primary color (#1c0d0f) with deep teal accents (#0d1c1a). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep red primary (#1c0d0f) on a neutral background (#040102).

Color palette

TokenLightDark
Background
#ffffffwhite
#040102black
Foreground
#120205black
#fdfcfcsnow
Card
#ffffffwhite
#040102black
Card foreground
#120205black
#fdfcfcsnow
Popover
#ffffffwhite
#040102black
Popover foreground
#120205black
#fdfcfcsnow
Primary
#1c0d0fblack
#1c0d0fblack
Primary foreground
#cc8e99rosybrown
#cc8e99rosybrown
Secondary
#0d1c1ablack
#0d1c1ablack
Secondary foreground
#4ca999cadetblue
#4ca999cadetblue
Muted
#e4e7e7gainsboro
#181b1bblack
Muted foreground
#566c68dimgray
#93a9a5darkgray
Accent
#0d1c1ablack
#0d1c1ablack
Accent foreground
#4ca999cadetblue
#4ca999cadetblue
Destructive
#831707maroon
#ed2a0corangered
Destructive foreground
#fcc8c0pink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#1c0d0fblack
#1c0d0fblack

Contrast

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

Light mode
Text on background20.25:1AAA
Text on card20.25:1AAA
Primary button7.09:1AAA
Secondary button6.20:1AA
Muted text4.51:1AA
Accent6.20:1AA
Destructive6.77:1AA
Dark mode
Text on background20.27:1AAA
Text on card20.27:1AAA
Primary button7.09:1AAA
Secondary button6.20:1AA
Muted text6.97:1AA
Accent6.20:1AA
Destructive4.23:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.129 0.035 8.023);
  --muted: oklch(0.926 0.004 185.339);
  --muted-foreground: oklch(0.511 0.026 184.061);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.129 0.035 8.023);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.129 0.035 8.023);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.181 0.027 9.334);
  --primary-foreground: oklch(0.712 0.076 8.196);
  --secondary: oklch(0.212 0.022 182.348);
  --secondary-foreground: oklch(0.674 0.092 180.904);
  --accent: oklch(0.212 0.022 182.348);
  --accent-foreground: oklch(0.674 0.092 180.904);
  --destructive: oklch(0.396 0.144 31.577);
  --destructive-foreground: oklch(0.876 0.06 28.443);
  --ring: oklch(0.181 0.027 9.334);
  --chart-1: oklch(0.181 0.027 9.334);
  --chart-2: oklch(0.212 0.022 182.348);
  --chart-3: oklch(0.212 0.022 182.348);
  --chart-4: oklch(0.252 0.028 181.99);
  --chart-5: oklch(0.181 0.029 9.69);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.084 0.012 5.932);
  --foreground: oklch(0.991 0.002 5.489);
  --muted: oklch(0.219 0.006 184.782);
  --muted-foreground: oklch(0.716 0.024 184.541);
  --popover: oklch(0.084 0.012 5.932);
  --popover-foreground: oklch(0.991 0.002 5.489);
  --card: oklch(0.084 0.012 5.932);
  --card-foreground: oklch(0.991 0.002 5.489);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.181 0.027 9.334);
  --primary-foreground: oklch(0.712 0.076 8.196);
  --secondary: oklch(0.212 0.022 182.348);
  --secondary-foreground: oklch(0.674 0.092 180.904);
  --accent: oklch(0.212 0.022 182.348);
  --accent-foreground: oklch(0.674 0.092 180.904);
  --destructive: oklch(0.61 0.23 31.251);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.181 0.027 9.334);
  --chart-1: oklch(0.181 0.027 9.334);
  --chart-2: oklch(0.212 0.022 182.348);
  --chart-3: oklch(0.212 0.022 182.348);
  --chart-4: oklch(0.252 0.028 181.99);
  --chart-5: oklch(0.181 0.029 9.69);
}