Harmonia is a shadcn/ui theme built around a deep pink primary color (#6f154b) with deep red accents (#6f151e). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep pink primary (#6f154b) on a pink-tinted background (#0a0508).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #0a0508black |
| Foreground | #090106black | #f8f6f8whitesmoke |
| Card | #ffffffwhite | #0a0508black |
| Card foreground | #090106black | #f8f6f8whitesmoke |
| Popover | #ffffffwhite | #0a0508black |
| Popover foreground | #090106black | #f8f6f8whitesmoke |
| Primary | #6f154bpurple | #6f154bpurple |
| Primary foreground | #f4c3e0pink | #f4c3e0pink |
| Secondary | #66156fpurple | #66156fpurple |
| Secondary foreground | #efc3f4thistle | #efc3f4thistle |
| Muted | #e9d5ebgainsboro | #27142ablack |
| Muted foreground | #434243darkslategray | #bdbcbdsilver |
| Accent | #6f151emaroon | #6f151emaroon |
| Accent foreground | #f4c3c8pink | #f4c3c8pink |
| Destructive | #610805maroon | #e4130cred |
| Destructive foreground | #faa19elightsalmon | #ffffffwhite |
| Border | #eeecedwhitesmoke | #262224black |
| Input | #eeecedwhitesmoke | #262224black |
| Ring | #6f154bpurple | #6f154bpurple |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.61:1 | AAA |
| Text on card | 20.61:1 | AAA |
| Primary button | 7.25:1 | AAA |
| Secondary button | 7.21:1 | AAA |
| Muted text | 7.25:1 | AAA |
| Accent | 7.45:1 | AAA |
| Destructive | 6.89:1 | AA |
| Text on background | 18.80:1 | AAA |
| Text on card | 18.80:1 | AAA |
| Primary button | 7.25:1 | AAA |
| Secondary button | 7.21:1 | AAA |
| Muted text | 9.10:1 | AAA |
| Accent | 7.45:1 | AAA |
| Destructive | 4.78:1 | AA |
Paste this into your globals.css to use Harmonia in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.104 0.028 340.421);
--muted: oklch(0.897 0.037 322.788);
--muted-foreground: oklch(0.379 0.003 322.656);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.104 0.028 340.421);
--card: oklch(1 0 180);
--card-foreground: oklch(0.104 0.028 340.421);
--border: oklch(0.945 0.003 340.302);
--input: oklch(0.945 0.003 340.302);
--primary: oklch(0.373 0.134 349.072);
--primary-foreground: oklch(0.868 0.067 341.896);
--secondary: oklch(0.378 0.156 323.494);
--secondary-foreground: oklch(0.87 0.081 322.983);
--accent: oklch(0.358 0.123 21.16);
--accent-foreground: oklch(0.861 0.056 11.561);
--destructive: oklch(0.315 0.121 29.042);
--destructive-foreground: oklch(0.797 0.106 21.868);
--ring: oklch(0.373 0.134 349.072);
--chart-1: oklch(0.373 0.134 349.072);
--chart-2: oklch(0.378 0.156 323.494);
--chart-3: oklch(0.358 0.123 21.16);
--chart-4: oklch(0.407 0.17 323.479);
--chart-5: oklch(0.375 0.138 349.475);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.126 0.015 340.331);
--foreground: oklch(0.976 0.002 340.29);
--muted: oklch(0.228 0.05 323.378);
--muted-foreground: oklch(0.797 0.002 322.638);
--popover: oklch(0.126 0.015 340.331);
--popover-foreground: oklch(0.976 0.002 340.29);
--card: oklch(0.126 0.015 340.331);
--card-foreground: oklch(0.976 0.002 340.29);
--border: oklch(0.256 0.008 340.925);
--input: oklch(0.256 0.008 340.925);
--primary: oklch(0.373 0.134 349.072);
--primary-foreground: oklch(0.868 0.067 341.896);
--secondary: oklch(0.378 0.156 323.494);
--secondary-foreground: oklch(0.87 0.081 322.983);
--accent: oklch(0.358 0.123 21.16);
--accent-foreground: oklch(0.861 0.056 11.561);
--destructive: oklch(0.581 0.232 29.236);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.373 0.134 349.072);
--chart-1: oklch(0.373 0.134 349.072);
--chart-2: oklch(0.378 0.156 323.494);
--chart-3: oklch(0.358 0.123 21.16);
--chart-4: oklch(0.407 0.17 323.479);
--chart-5: oklch(0.375 0.138 349.475);
}