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).
| Token | Light | Dark |
|---|---|---|
| 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 |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.25:1 | AAA |
| Text on card | 20.25:1 | AAA |
| Primary button | 7.92:1 | AAA |
| Secondary button | 7.96:1 | AAA |
| Muted text | 5.83:1 | AA |
| Accent | 7.48:1 | AAA |
| Destructive | 6.89:1 | AA |
| Text on background | 19.01:1 | AAA |
| Text on card | 19.01:1 | AAA |
| Primary button | 7.92:1 | AAA |
| Secondary button | 7.96:1 | AAA |
| Muted text | 7.46:1 | AAA |
| Accent | 7.48:1 | AAA |
| Destructive | 4.52:1 | AA |
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);
}