Immaculate for shadcn/ui

Immaculate is a shadcn/ui theme built around a green primary color (#60dc87) with purple accents (#dc60b5). The light mode uses a neutral background (#fbfefc). Dark mode keeps the green primary (#60dc87) on a neutral background (#010402).

Color palette

TokenLightDark
Background
#fbfefcwhite
#010402black
Foreground
#000000black
#f9fbf9mintcream
Card
#fbfefcwhite
#010402black
Card foreground
#000000black
#f9fbf9mintcream
Popover
#fbfefcwhite
#010402black
Popover foreground
#000000black
#f9fbf9mintcream
Primary
#60dc87mediumaquamarine
#60dc87mediumaquamarine
Primary foreground
#020804black
#020804black
Secondary
#dc60b5hotpink
#dc60b5hotpink
Secondary foreground
#080206black
#080206black
Muted
#e8dee5gainsboro
#21171eblack
Muted foreground
#656164dimgray
#9e9a9cdarkgray
Accent
#dc60b5hotpink
#dc60b5hotpink
Accent foreground
#080206black
#080206black
Destructive
#752900saddlebrown
#ff600aorangered
Destructive foreground
#ffc7a8navajowhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#60dc87mediumaquamarine
#60dc87mediumaquamarine

Contrast

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

Light mode
Text on background20.67:1AAA
Text on card20.67:1AAA
Primary button11.64:1AAA
Secondary button6.25:1AA
Muted text4.64:1AA
Accent6.25:1AA
Destructive6.72:1AA
Dark mode
Text on background19.81:1AAA
Text on card19.81:1AAA
Primary button11.64:1AAA
Secondary button6.25:1AA
Muted text6.26:1AA
Accent6.25:1AA
Destructive6.92:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.004 156.479);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.91 0.014 336.864);
  --muted-foreground: oklch(0.499 0.007 336.814);
  --popover: oklch(0.994 0.004 156.479);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.994 0.004 156.479);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.804 0.164 151.367);
  --primary-foreground: oklch(0.124 0.021 156.098);
  --secondary: oklch(0.67 0.182 341.526);
  --secondary-foreground: oklch(0.106 0.026 337.096);
  --accent: oklch(0.67 0.182 341.526);
  --accent-foreground: oklch(0.106 0.026 337.096);
  --destructive: oklch(0.39 0.116 42.521);
  --destructive-foreground: oklch(0.871 0.076 49.629);
  --ring: oklch(0.804 0.164 151.367);
  --chart-1: oklch(0.804 0.164 151.367);
  --chart-2: oklch(0.67 0.182 341.526);
  --chart-3: oklch(0.67 0.182 341.526);
  --chart-4: oklch(0.692 0.168 340.968);
  --chart-5: oklch(0.81 0.17 151.139);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.097 0.013 156.201);
  --foreground: oklch(0.986 0.004 156.489);
  --muted: oklch(0.22 0.02 338.279);
  --muted-foreground: oklch(0.689 0.006 336.73);
  --popover: oklch(0.097 0.013 156.201);
  --popover-foreground: oklch(0.986 0.004 156.489);
  --card: oklch(0.097 0.013 156.201);
  --card-foreground: oklch(0.986 0.004 156.489);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.804 0.164 151.367);
  --primary-foreground: oklch(0.124 0.021 156.098);
  --secondary: oklch(0.67 0.182 341.526);
  --secondary-foreground: oklch(0.106 0.026 337.096);
  --accent: oklch(0.67 0.182 341.526);
  --accent-foreground: oklch(0.106 0.026 337.096);
  --destructive: oklch(0.688 0.208 41.133);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.804 0.164 151.367);
  --chart-1: oklch(0.804 0.164 151.367);
  --chart-2: oklch(0.67 0.182 341.526);
  --chart-3: oklch(0.67 0.182 341.526);
  --chart-4: oklch(0.692 0.168 340.968);
  --chart-5: oklch(0.81 0.17 151.139);
}