Nightingale for shadcn/ui

Nightingale is a shadcn/ui theme built around a purple primary color (#6b386b) with muted purple accents (#c9acc9). The light mode uses a neutral background (#fdf7fd). Dark mode keeps the purple primary (#6b386b) on a purple-tinted background (#100510).

Color palette

TokenLightDark
Background
#fdf7fdsnow
#100510black
Foreground
#080308black
#fcf8fcsnow
Card
#fdf7fdsnow
#100510black
Card foreground
#080308black
#fcf8fcsnow
Popover
#fdf7fdsnow
#100510black
Popover foreground
#080308black
#fcf8fcsnow
Primary
#6b386brebeccapurple
#6b386brebeccapurple
Primary foreground
#f1e4f1lavender
#f1e4f1lavender
Secondary
#d6c7d6thistle
#1e1a1eblack
Secondary foreground
#3e2e3edarkslategray
#b9b1b9silver
Muted
#efe1eflavender
#1e101eblack
Muted foreground
#4a454adarkslategray
#bab5basilver
Accent
#c9acc9silver
#352735darkslategray
Accent foreground
#281a28black
#cfbecfthistle
Destructive
#9c0d02darkred
#fc3a2corangered
Destructive foreground
#fed5d2bisque
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#6b386brebeccapurple
#6b386brebeccapurple

Contrast

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

Light mode
Text on background19.39:1AAA
Text on card19.39:1AAA
Primary button7.10:1AAA
Secondary button7.81:1AAA
Muted text7.45:1AAA
Accent8.03:1AAA
Destructive6.35:1AA
Dark mode
Text on background19.02:1AAA
Text on card19.02:1AAA
Primary button7.10:1AAA
Secondary button8.21:1AAA
Muted text9.06:1AAA
Accent7.99:1AAA
Destructive3.63:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.982 0.009 325.643);
  --foreground: oklch(0.109 0.022 326.972);
  --muted: oklch(0.925 0.023 325.76);
  --muted-foreground: oklch(0.396 0.012 325.803);
  --popover: oklch(0.982 0.009 325.643);
  --popover-foreground: oklch(0.109 0.022 326.972);
  --card: oklch(0.982 0.009 325.643);
  --card-foreground: oklch(0.109 0.022 326.972);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.425 0.101 327.171);
  --primary-foreground: oklch(0.933 0.022 325.749);
  --secondary: oklch(0.847 0.025 325.799);
  --secondary-foreground: oklch(0.324 0.036 326.359);
  --accent: oklch(0.778 0.052 326.06);
  --accent-foreground: oklch(0.242 0.033 326.535);
  --destructive: oklch(0.439 0.174 30.022);
  --destructive-foreground: oklch(0.907 0.047 22.864);
  --ring: oklch(0.425 0.101 327.171);
  --chart-1: oklch(0.425 0.101 327.171);
  --chart-2: oklch(0.847 0.025 325.799);
  --chart-3: oklch(0.778 0.052 326.06);
  --chart-4: oklch(0.871 0.021 325.758);
  --chart-5: oklch(0.426 0.11 327.29);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.139 0.031 327.083);
  --foreground: oklch(0.983 0.006 325.618);
  --muted: oklch(0.199 0.033 326.725);
  --muted-foreground: oklch(0.779 0.01 325.674);
  --popover: oklch(0.139 0.031 327.083);
  --popover-foreground: oklch(0.983 0.006 325.618);
  --card: oklch(0.139 0.031 327.083);
  --card-foreground: oklch(0.983 0.006 325.618);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.425 0.101 327.171);
  --primary-foreground: oklch(0.933 0.022 325.749);
  --secondary: oklch(0.225 0.008 325.847);
  --secondary-foreground: oklch(0.769 0.016 325.731);
  --accent: oklch(0.294 0.031 326.334);
  --accent-foreground: oklch(0.822 0.03 325.843);
  --destructive: oklch(0.647 0.23 29.212);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.425 0.101 327.171);
  --chart-1: oklch(0.425 0.101 327.171);
  --chart-2: oklch(0.225 0.008 325.847);
  --chart-3: oklch(0.294 0.031 326.334);
  --chart-4: oklch(0.257 0.01 325.867);
  --chart-5: oklch(0.426 0.11 327.29);
}