Harpsichord for shadcn/ui

Harpsichord is a shadcn/ui theme built around a muted light blue primary color (#bfcbd9) with muted light green accents (#cbd9bf). The light mode uses a neutral background (#fbfcfe). Dark mode keeps the muted light blue primary (#bfcbd9) on a blue-tinted background (#050a0f).

Color palette

TokenLightDark
Background
#fbfcfewhite
#050a0fblack
Foreground
#010205black
#f9fafbghostwhite
Card
#fbfcfewhite
#050a0fblack
Card foreground
#010205black
#f9fafbghostwhite
Popover
#fbfcfewhite
#050a0fblack
Popover foreground
#010205black
#f9fafbghostwhite
Primary
#bfcbd9lightsteelblue
#bfcbd9lightsteelblue
Primary foreground
#263240darkslategray
#263240darkslategray
Secondary
#d9bfcbthistle
#d9bfcbthistle
Secondary foreground
#402632darkslategray
#402632darkslategray
Muted
#f1e4ealinen
#1b0e14black
Muted foreground
#5e5559dimgray
#aaa1a5darkgray
Accent
#cbd9bflightgrey
#cbd9bflightgrey
Accent foreground
#324026darkslategray
#324026darkslategray
Destructive
#971511darkred
#e6251ecrimson
Destructive foreground
#fbe0dfmistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#bfcbd9lightsteelblue
#bfcbd9lightsteelblue

Contrast

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

Light mode
Text on background20.25:1AAA
Text on card20.25:1AAA
Primary button7.92:1AAA
Secondary button7.96:1AAA
Muted text5.83:1AA
Accent7.48:1AAA
Destructive6.89:1AA
Dark mode
Text on background19.01:1AAA
Text on card19.01:1AAA
Primary button7.92:1AAA
Secondary button7.96:1AAA
Muted text7.46:1AAA
Accent7.48:1AAA
Destructive4.52:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.992 0.003 251.472);
  --foreground: oklch(0.086 0.014 239.67);
  --muted: oklch(0.931 0.017 347.388);
  --muted-foreground: oklch(0.459 0.013 347.675);
  --popover: oklch(0.992 0.003 251.472);
  --popover-foreground: oklch(0.086 0.014 239.67);
  --card: oklch(0.992 0.003 251.472);
  --card-foreground: oklch(0.086 0.014 239.67);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.838 0.023 251.661);
  --primary-foreground: oklch(0.313 0.029 252.109);
  --secondary: oklch(0.83 0.033 347.946);
  --secondary-foreground: oklch(0.306 0.043 350.41);
  --accent: oklch(0.867 0.037 130.225);
  --accent-foreground: oklch(0.351 0.046 131.238);
  --destructive: oklch(0.436 0.165 28.621);
  --destructive-foreground: oklch(0.928 0.031 20.086);
  --ring: oklch(0.838 0.023 251.661);
  --chart-1: oklch(0.838 0.023 251.661);
  --chart-2: oklch(0.83 0.033 347.946);
  --chart-3: oklch(0.867 0.037 130.225);
  --chart-4: oklch(0.856 0.028 347.76);
  --chart-5: oklch(0.837 0.026 251.685);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.141 0.015 247.702);
  --foreground: oklch(0.984 0.002 251.469);
  --muted: oklch(0.184 0.026 350.4);
  --muted-foreground: oklch(0.719 0.012 347.348);
  --popover: oklch(0.141 0.015 247.702);
  --popover-foreground: oklch(0.984 0.002 251.469);
  --card: oklch(0.141 0.015 247.702);
  --card-foreground: oklch(0.984 0.002 251.469);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.838 0.023 251.661);
  --primary-foreground: oklch(0.313 0.029 252.109);
  --secondary: oklch(0.83 0.033 347.946);
  --secondary-foreground: oklch(0.306 0.043 350.41);
  --accent: oklch(0.867 0.037 130.225);
  --accent-foreground: oklch(0.351 0.046 131.238);
  --destructive: oklch(0.594 0.225 28.682);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.838 0.023 251.661);
  --chart-1: oklch(0.838 0.023 251.661);
  --chart-2: oklch(0.83 0.033 347.946);
  --chart-3: oklch(0.867 0.037 130.225);
  --chart-4: oklch(0.856 0.028 347.76);
  --chart-5: oklch(0.837 0.026 251.685);
}