Sailor Nightingale for shadcn/ui

Sailor Nightingale is a shadcn/ui theme built around a muted blue primary color (#445479) with muted deep blue accents (#283248). The light mode uses a blue-tinted background (#0d1017). Dark mode keeps the muted blue primary (#445479) on a blue-tinted background (#0d1017).

Color palette

TokenLightDark
Background
#0d1017black
#0d1017black
Foreground
#bfbdb5silver
#bfbdb5silver
Card
#090b10black
#090b10black
Card foreground
#cbc9c3silver
#cbc9c3silver
Popover
#07090dblack
#07090dblack
Popover foreground
#d7d5d1lightgrey
#d7d5d1lightgrey
Primary
#445479darkslateblue
#445479darkslateblue
Primary foreground
#f5f6f9whitesmoke
#f5f6f9whitesmoke
Secondary
#b4bbcbsilver
#b4bbcbsilver
Secondary foreground
#1f232ddarkslategray
#1f232ddarkslategray
Muted
#22242bdarkslategray
#22242bdarkslategray
Muted foreground
#9ba1b0darkgray
#9ba1b0darkgray
Accent
#283248darkslategray
#283248darkslategray
Accent foreground
#c4ccdelightgrey
#c4ccdelightgrey
Destructive
#fe1010red
#fe1010red
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#191c24black
#191c24black
Input
#1f232ddarkslategray
#1f232ddarkslategray
Ring
#445479darkslateblue
#445479darkslateblue

Contrast

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

Light mode
Text on background10.12:1AAA
Text on card11.86:1AAA
Primary button6.98:1AA
Secondary button8.13:1AAA
Muted text5.97:1AA
Accent7.96:1AAA
Destructive3.96:1AA Large
Dark mode
Text on background10.12:1AAA
Text on card11.86:1AAA
Primary button6.98:1AA
Secondary button8.13:1AAA
Muted text5.97:1AA
Accent7.96:1AAA
Destructive3.96:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.173 0.015 266.68);
  --foreground: oklch(0.798 0.011 94.007);
  --muted: oklch(0.262 0.013 267.07);
  --muted-foreground: oklch(0.71 0.023 267.202);
  --popover: oklch(0.14 0.009 264.969);
  --popover-foreground: oklch(0.874 0.007 93.946);
  --card: oklch(0.151 0.011 266.677);
  --card-foreground: oklch(0.836 0.009 93.975);
  --border: oklch(0.228 0.016 266.88);
  --input: oklch(0.258 0.019 266.832);
  --primary: oklch(0.448 0.064 266.08);
  --primary-foreground: oklch(0.974 0.004 267.395);
  --secondary: oklch(0.791 0.024 267.218);
  --secondary-foreground: oklch(0.258 0.019 266.832);
  --accent: oklch(0.318 0.042 266.224);
  --accent-foreground: oklch(0.845 0.026 267.211);
  --destructive: oklch(0.629 0.253 28.799);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.448 0.064 266.08);
  --chart-1: oklch(0.448 0.064 266.08);
  --chart-2: oklch(0.791 0.024 267.218);
  --chart-3: oklch(0.318 0.042 266.224);
  --chart-4: oklch(0.816 0.021 267.254);
  --chart-5: oklch(0.445 0.071 265.884);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.173 0.015 266.68);
  --foreground: oklch(0.798 0.011 94.007);
  --muted: oklch(0.262 0.013 267.07);
  --muted-foreground: oklch(0.71 0.023 267.202);
  --popover: oklch(0.14 0.009 264.969);
  --popover-foreground: oklch(0.874 0.007 93.946);
  --card: oklch(0.151 0.011 266.677);
  --card-foreground: oklch(0.836 0.009 93.975);
  --border: oklch(0.228 0.016 266.88);
  --input: oklch(0.258 0.019 266.832);
  --primary: oklch(0.448 0.064 266.08);
  --primary-foreground: oklch(0.974 0.004 267.395);
  --secondary: oklch(0.791 0.024 267.218);
  --secondary-foreground: oklch(0.258 0.019 266.832);
  --accent: oklch(0.318 0.042 266.224);
  --accent-foreground: oklch(0.845 0.026 267.211);
  --destructive: oklch(0.629 0.253 28.799);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.448 0.064 266.08);
  --chart-1: oklch(0.448 0.064 266.08);
  --chart-2: oklch(0.791 0.024 267.218);
  --chart-3: oklch(0.318 0.042 266.224);
  --chart-4: oklch(0.816 0.021 267.254);
  --chart-5: oklch(0.445 0.071 265.884);
}