Harmonica is a shadcn/ui theme built around a vivid cyan primary color (#05a2eb) with vivid blue accents (#052feb). The light mode uses a neutral background (#f6fbfd). Dark mode keeps the vivid cyan primary (#05a2eb) on a neutral background (#010304).
| Token | Light | Dark |
|---|---|---|
| Background | #f6fbfdghostwhite | #010304black |
| Foreground | #050c10black | #f4f8fawhitesmoke |
| Card | #f6fbfdghostwhite | #010304black |
| Card foreground | #050c10black | #f4f8fawhitesmoke |
| Popover | #f6fbfdghostwhite | #010304black |
| Popover foreground | #050c10black | #f4f8fawhitesmoke |
| Primary | #05a2ebdeepskyblue | #05a2ebdeepskyblue |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #05ebc1darkturquoise | #05ebc1darkturquoise |
| Secondary foreground | #01231dblack | #01231dblack |
| Muted | #dae7e4gainsboro | #182523black |
| Muted foreground | #465351darkslategray | #acb9b7darkgray |
| Accent | #052febblue | #052febblue |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #9c3502saddlebrown | #ec5104orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #05a2ebdeepskyblue | #05a2ebdeepskyblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.91:1 | AAA |
| Text on card | 18.91:1 | AAA |
| Primary button | 2.84:1 | Fail |
| Secondary button | 10.83:1 | AAA |
| Muted text | 6.31:1 | AA |
| Accent | 8.04:1 | AAA |
| Destructive | 7.17:1 | AAA |
| Text on background | 19.33:1 | AAA |
| Text on card | 19.33:1 | AAA |
| Primary button | 2.84:1 | Fail |
| Secondary button | 10.83:1 | AAA |
| Muted text | 7.81:1 | AAA |
| Accent | 8.04:1 | AAA |
| Destructive | 3.65:1 | AA Large |
Paste this into your globals.css to use Harmonica in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.986 0.006 226.929);
--foreground: oklch(0.149 0.016 225.314);
--muted: oklch(0.917 0.014 183.898);
--muted-foreground: oklch(0.431 0.018 183.168);
--popover: oklch(0.986 0.006 226.929);
--popover-foreground: oklch(0.149 0.016 225.314);
--card: oklch(0.986 0.006 226.929);
--card-foreground: oklch(0.149 0.016 225.314);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.678 0.153 239.322);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.838 0.16 173.369);
--secondary-foreground: oklch(0.23 0.041 177.882);
--accent: oklch(0.457 0.272 264.429);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.474 0.146 40.479);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.678 0.153 239.322);
--chart-1: oklch(0.678 0.153 239.322);
--chart-2: oklch(0.838 0.16 173.369);
--chart-3: oklch(0.457 0.272 264.429);
--chart-4: oklch(0.878 0.168 173.309);
--chart-5: oklch(0.683 0.156 239.825);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.093 0.01 220.838);
--foreground: oklch(0.978 0.005 226.918);
--muted: oklch(0.252 0.018 182.198);
--muted-foreground: oklch(0.776 0.016 183.765);
--popover: oklch(0.093 0.01 220.838);
--popover-foreground: oklch(0.978 0.005 226.918);
--card: oklch(0.093 0.01 220.838);
--card-foreground: oklch(0.978 0.005 226.918);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.678 0.153 239.322);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.838 0.16 173.369);
--secondary-foreground: oklch(0.23 0.041 177.882);
--accent: oklch(0.457 0.272 264.429);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.641 0.202 39.39);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.678 0.153 239.322);
--chart-1: oklch(0.678 0.153 239.322);
--chart-2: oklch(0.838 0.16 173.369);
--chart-3: oklch(0.457 0.272 264.429);
--chart-4: oklch(0.878 0.168 173.309);
--chart-5: oklch(0.683 0.156 239.825);
}