Historic Sapphire Lace for shadcn/ui

Historic Sapphire Lace is a shadcn/ui theme built around a blue primary color (#295c8e) with muted light blue accents (#c3cfda). The light mode uses a neutral background (#ffffff). Dark mode keeps the blue primary (#295c8e) on a blue-tinted background (#04080b).

Color palette

TokenLightDark
Background
#ffffffwhite
#04080bblack
Foreground
#02080dblack
#f5f7fawhitesmoke
Card
#fcfcfcsnow
#060a0eblack
Card foreground
#010509black
#f8fafcghostwhite
Popover
#fcfcfcsnow
#060a0eblack
Popover foreground
#010509black
#f8fafcghostwhite
Primary
#295c8edarkslateblue
#295c8edarkslateblue
Primary foreground
#eff5faaliceblue
#eff5faaliceblue
Secondary
#dee3e7gainsboro
#1a1c1fblack
Secondary foreground
#3e4a56darkslategray
#aeb5bcsilver
Muted
#d5d9ddgainsboro
#22262adarkslategray
Muted foreground
#555c62dimgray
#9da3aadarkgray
Accent
#c3cfdalightgrey
#252b32darkslategray
Accent foreground
#293642darkslategray
#bcc4cdsilver
Destructive
#a1270cfirebrick
#e43811orangered
Destructive foreground
#fde7e3mistyrose
#ffffffwhite
Border
#e8ebedlavender
#21262cdarkslategray
Input
#e8ebedlavender
#21262cdarkslategray
Ring
#295c8edarkslateblue
#295c8edarkslateblue

Contrast

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

Light mode
Text on background20.13:1AAA
Text on card20.00:1AAA
Primary button6.34:1AA
Secondary button7.01:1AAA
Muted text4.77:1AA
Accent7.77:1AAA
Destructive6.27:1AA
Dark mode
Text on background18.74:1AAA
Text on card18.96:1AAA
Primary button6.34:1AA
Secondary button8.24:1AAA
Muted text5.96:1AA
Accent8.08:1AAA
Destructive4.32:1AA Large

CSS variables

Paste this into your globals.css to use Historic Sapphire Lace in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.127 0.019 238.478);
  --muted: oklch(0.883 0.007 247.901);
  --muted-foreground: oklch(0.471 0.013 248.108);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0.111 0.017 237.162);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.111 0.017 237.162);
  --border: oklch(0.937 0.005 247.877);
  --input: oklch(0.937 0.005 247.877);
  --primary: oklch(0.465 0.099 250.785);
  --primary-foreground: oklch(0.967 0.01 247.925);
  --secondary: oklch(0.914 0.008 247.911);
  --secondary-foreground: oklch(0.403 0.025 248.451);
  --accent: oklch(0.848 0.02 248.061);
  --accent-foreground: oklch(0.325 0.028 248.684);
  --destructive: oklch(0.469 0.162 33.399);
  --destructive-foreground: oklch(0.945 0.024 32.685);
  --ring: oklch(0.465 0.099 250.785);
  --chart-1: oklch(0.465 0.099 250.785);
  --chart-2: oklch(0.914 0.008 247.911);
  --chart-3: oklch(0.848 0.02 248.061);
  --chart-4: oklch(0.937 0.006 247.885);
  --chart-5: oklch(0.465 0.104 251.046);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.129 0.011 242.031);
  --foreground: oklch(0.976 0.005 247.874);
  --muted: oklch(0.267 0.009 248.166);
  --muted-foreground: oklch(0.713 0.012 247.994);
  --popover: oklch(0.143 0.012 245.094);
  --popover-foreground: oklch(0.984 0.003 247.856);
  --card: oklch(0.143 0.012 245.094);
  --card-foreground: oklch(0.984 0.003 247.856);
  --border: oklch(0.267 0.013 248.301);
  --input: oklch(0.267 0.013 248.301);
  --primary: oklch(0.465 0.099 250.785);
  --primary-foreground: oklch(0.967 0.01 247.925);
  --secondary: oklch(0.225 0.006 248.105);
  --secondary-foreground: oklch(0.77 0.012 247.984);
  --accent: oklch(0.287 0.015 248.351);
  --accent-foreground: oklch(0.817 0.016 248.02);
  --destructive: oklch(0.602 0.213 33.159);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.465 0.099 250.785);
  --chart-1: oklch(0.465 0.099 250.785);
  --chart-2: oklch(0.225 0.006 248.105);
  --chart-3: oklch(0.287 0.015 248.351);
  --chart-4: oklch(0.257 0.008 248.126);
  --chart-5: oklch(0.465 0.104 251.046);
}