Immaculate for shadcn/ui

Immaculate is a shadcn/ui theme built around a deep blue primary color (#060e18) with muted light blue accents (#b7c3d1). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep blue primary (#060e18) on a blue-tinted background (#060a0e).

Color palette

TokenLightDark
Background
#ffffffwhite
#060a0eblack
Foreground
#000000black
#ffffffwhite
Card
#fcfcfcsnow
#080c12black
Card foreground
#000000black
#ffffffwhite
Popover
#ffffffwhite
#060a0eblack
Popover foreground
#000000black
#ffffffwhite
Primary
#060e18black
#060e18black
Primary foreground
#74a1dccornflowerblue
#74a1dccornflowerblue
Secondary
#d3d8degainsboro
#161718black
Secondary foreground
#373f49darkslategray
#aeb0b2darkgray
Muted
#dce4eflavender
#101823black
Muted foreground
#444b55darkslategray
#aab1bbdarkgray
Accent
#b7c3d1lightsteelblue
#262b31darkslategray
Accent foreground
#222a35darkslategray
#bdc3ccsilver
Destructive
#9f2c0fbrown
#ea441aorangered
Destructive foreground
#fce8e3mistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#060e18black
#060e18black

Contrast

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

Light mode
Text on background21.00:1AAA
Text on card20.54:1AAA
Primary button7.25:1AAA
Secondary button7.44:1AAA
Muted text6.88:1AA
Accent8.07:1AAA
Destructive6.29:1AA
Dark mode
Text on background19.87:1AAA
Text on card19.59:1AAA
Primary button7.25:1AAA
Secondary button8.25:1AAA
Muted text8.24:1AAA
Accent8.08:1AAA
Destructive3.94: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 0 0);
  --muted: oklch(0.917 0.017 255.048);
  --muted-foreground: oklch(0.411 0.019 255.151);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.992 0 161.565);
  --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.162 0.026 254.088);
  --primary-foreground: oklch(0.701 0.1 255.453);
  --secondary: oklch(0.881 0.01 255.012);
  --secondary-foreground: oklch(0.363 0.02 255.187);
  --accent: oklch(0.812 0.024 255.094);
  --accent-foreground: oklch(0.282 0.023 255.263);
  --destructive: oklch(0.468 0.156 34.33);
  --destructive-foreground: oklch(0.946 0.023 34.298);
  --ring: oklch(0.162 0.026 254.088);
  --chart-1: oklch(0.162 0.026 254.088);
  --chart-2: oklch(0.881 0.01 255.012);
  --chart-3: oklch(0.812 0.024 255.094);
  --chart-4: oklch(0.905 0.008 255);
  --chart-5: oklch(0.161 0.027 253.832);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.141 0.012 251.856);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.207 0.025 255.37);
  --muted-foreground: oklch(0.759 0.016 255.058);
  --popover: oklch(0.141 0.012 251.856);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.153 0.014 254.426);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.162 0.026 254.088);
  --primary-foreground: oklch(0.701 0.1 255.453);
  --secondary: oklch(0.204 0.002 255.001);
  --secondary-foreground: oklch(0.755 0.004 254.986);
  --accent: oklch(0.285 0.014 255.16);
  --accent-foreground: oklch(0.816 0.014 255.042);
  --destructive: oklch(0.624 0.209 34.287);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.162 0.026 254.088);
  --chart-1: oklch(0.162 0.026 254.088);
  --chart-2: oklch(0.204 0.002 255.001);
  --chart-3: oklch(0.285 0.014 255.16);
  --chart-4: oklch(0.237 0.002 255.006);
  --chart-5: oklch(0.161 0.027 253.832);
}