Immaculate for shadcn/ui

Immaculate is a shadcn/ui theme built around a light indigo primary color (#f4f3fc) with light green accents (#fafcf3). The light mode uses a neutral background (#ffffff). Dark mode keeps the light indigo primary (#f4f3fc) on an indigo-tinted background (#060510).

Color palette

TokenLightDark
Background
#ffffffwhite
#060510black
Foreground
#060411black
#f6f6f9whitesmoke
Card
#ffffffwhite
#060510black
Card foreground
#060411black
#f6f6f9whitesmoke
Popover
#ffffffwhite
#060510black
Popover foreground
#060411black
#f6f6f9whitesmoke
Primary
#f4f3fcghostwhite
#f4f3fcghostwhite
Primary foreground
#3a2895darkslateblue
#3a2895darkslateblue
Secondary
#fafcf3floralwhite
#fafcf3floralwhite
Secondary foreground
#3c4412darkolivegreen
#3c4412darkolivegreen
Muted
#dddfd2gainsboro
#2b2d20darkslategray
Muted foreground
#51524cdarkslategray
#b2b3addarkgray
Accent
#fafcf3floralwhite
#fafcf3floralwhite
Accent foreground
#3c4412darkolivegreen
#3c4412darkolivegreen
Destructive
#8e1a0bdarkred
#f15641tomato
Destructive foreground
#fbd5d0bisque
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#f4f3fcghostwhite
#f4f3fcghostwhite

Contrast

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

Light mode
Text on background20.32:1AAA
Text on card20.32:1AAA
Primary button9.94:1AAA
Secondary button9.99:1AAA
Muted text5.85:1AA
Accent9.99:1AAA
Destructive6.72:1AA
Dark mode
Text on background18.79:1AAA
Text on card18.79:1AAA
Primary button9.94:1AAA
Secondary button9.99:1AAA
Muted text6.66:1AA
Accent9.99:1AAA
Destructive6.13:1AA

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.12 0.032 291.167);
  --muted: oklch(0.899 0.018 114.43);
  --muted-foreground: oklch(0.436 0.01 114.502);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.12 0.032 291.167);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.12 0.032 291.167);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.968 0.012 293.836);
  --primary-foreground: oklch(0.375 0.168 282.191);
  --secondary: oklch(0.987 0.012 114.287);
  --secondary-foreground: oklch(0.369 0.072 118.201);
  --accent: oklch(0.987 0.012 114.287);
  --accent-foreground: oklch(0.369 0.072 118.201);
  --destructive: oklch(0.421 0.153 31.024);
  --destructive-foreground: oklch(0.903 0.044 26.842);
  --ring: oklch(0.968 0.012 293.836);
  --chart-1: oklch(0.968 0.012 293.836);
  --chart-2: oklch(0.987 0.012 114.287);
  --chart-3: oklch(0.987 0.012 114.287);
  --chart-4: oklch(1 0 180);
  --chart-5: oklch(0.967 0.012 293.824);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.124 0.028 291.644);
  --foreground: oklch(0.974 0.004 293.992);
  --muted: oklch(0.29 0.023 115.533);
  --muted-foreground: oklch(0.764 0.009 114.283);
  --popover: oklch(0.124 0.028 291.644);
  --popover-foreground: oklch(0.974 0.004 293.992);
  --card: oklch(0.124 0.028 291.644);
  --card-foreground: oklch(0.974 0.004 293.992);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.968 0.012 293.836);
  --primary-foreground: oklch(0.375 0.168 282.191);
  --secondary: oklch(0.987 0.012 114.287);
  --secondary-foreground: oklch(0.369 0.072 118.201);
  --accent: oklch(0.987 0.012 114.287);
  --accent-foreground: oklch(0.369 0.072 118.201);
  --destructive: oklch(0.658 0.194 30.465);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.968 0.012 293.836);
  --chart-1: oklch(0.968 0.012 293.836);
  --chart-2: oklch(0.987 0.012 114.287);
  --chart-3: oklch(0.987 0.012 114.287);
  --chart-4: oklch(1 0 180);
  --chart-5: oklch(0.967 0.012 293.824);
}