Harpsichord for shadcn/ui

Harpsichord is a shadcn/ui theme built around a vivid deep teal primary color (#0b665f) with vivid deep blue accents (#0b3e66). The light mode uses a neutral background (#f7fcfc). Dark mode keeps the vivid deep teal primary (#0b665f) on a teal-tinted background (#050a0a).

Color palette

TokenLightDark
Background
#f7fcfcmintcream
#050a0ablack
Foreground
#000000black
#f8fbfbghostwhite
Card
#f4fbfbmintcream
#070d0dblack
Card foreground
#000000black
#fcfdfdwhite
Popover
#f4fbfbmintcream
#070d0dblack
Popover foreground
#000000black
#fcfdfdwhite
Primary
#0b665fteal
#0b665fteal
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#0b6632forestgreen
#0b6632forestgreen
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#eef1efwhitesmoke
#0e110fblack
Muted foreground
#575c59dimgray
#a3a8a5darkgray
Accent
#0b3e66midnightblue
#0b3e66midnightblue
Accent foreground
#acd6f6lightblue
#acd6f6lightblue
Destructive
#d14415chocolate
#d54515chocolate
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#0b665fteal
#0b665fteal

Contrast

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

Light mode
Text on background20.35:1AAA
Text on card20.03:1AAA
Primary button6.85:1AA
Secondary button7.13:1AAA
Muted text6.00:1AA
Accent7.22:1AAA
Destructive4.62:1AA
Dark mode
Text on background19.14:1AAA
Text on card19.19:1AAA
Primary button6.85:1AA
Secondary button7.13:1AAA
Muted text7.87:1AAA
Accent7.22:1AAA
Destructive4.45:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.988 0.005 192.313);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.956 0.004 161.707);
  --muted-foreground: oklch(0.469 0.008 161.376);
  --popover: oklch(0.983 0.008 192.255);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.983 0.008 192.255);
  --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.46 0.077 187.518);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.447 0.114 151.593);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.354 0.086 247.264);
  --accent-foreground: oklch(0.857 0.063 241.396);
  --destructive: oklch(0.582 0.185 36.71);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.46 0.077 187.518);
  --chart-1: oklch(0.46 0.077 187.518);
  --chart-2: oklch(0.447 0.114 151.593);
  --chart-3: oklch(0.354 0.086 247.264);
  --chart-4: oklch(0.489 0.126 151.383);
  --chart-5: oklch(0.465 0.079 187.39);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.138 0.009 191.813);
  --foreground: oklch(0.987 0.003 192.363);
  --muted: oklch(0.173 0.006 160.937);
  --muted-foreground: oklch(0.728 0.007 161.56);
  --popover: oklch(0.153 0.01 191.252);
  --popover-foreground: oklch(0.993 0.002 192.395);
  --card: oklch(0.153 0.01 191.252);
  --card-foreground: oklch(0.993 0.002 192.395);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.46 0.077 187.518);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.447 0.114 151.593);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.354 0.086 247.264);
  --accent-foreground: oklch(0.857 0.063 241.396);
  --destructive: oklch(0.591 0.189 36.689);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.46 0.077 187.518);
  --chart-1: oklch(0.46 0.077 187.518);
  --chart-2: oklch(0.447 0.114 151.593);
  --chart-3: oklch(0.354 0.086 247.264);
  --chart-4: oklch(0.489 0.126 151.383);
  --chart-5: oklch(0.465 0.079 187.39);
}