Harmonious is a shadcn/ui theme built around a light orange primary color (#f6eae4) with light violet accents (#eae4f6). The light mode uses a neutral background (#fcf9f8). Dark mode keeps the light orange primary (#f6eae4) on a neutral background (#070403).
| Token | Light | Dark |
|---|---|---|
| Background | #fcf9f8snow | #070403black |
| Foreground | #000000black | #faf7f5whitesmoke |
| Card | #fcf9f8snow | #070403black |
| Card foreground | #000000black | #faf7f5whitesmoke |
| Popover | #fcf9f8snow | #070403black |
| Popover foreground | #000000black | #faf7f5whitesmoke |
| Primary | #f6eae4linen | #f6eae4linen |
| Primary foreground | #7f4729saddlebrown | #7f4729saddlebrown |
| Secondary | #e4f6eahoneydew | #e4f6eahoneydew |
| Secondary foreground | #10321cblack | #10321cblack |
| Muted | #e0f1e6honeydew | #0e1f14black |
| Muted foreground | #3b453edarkslategray | #bac4besilver |
| Accent | #eae4f6lavender | #eae4f6lavender |
| Accent foreground | #47297fdarkslateblue | #47297fdarkslateblue |
| Destructive | #a24310saddlebrown | #d15715chocolate |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #f6eae4linen | #f6eae4linen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.07:1 | AAA |
| Text on card | 20.07:1 | AAA |
| Primary button | 6.30:1 | AA |
| Secondary button | 12.51:1 | AAA |
| Muted text | 8.45:1 | AAA |
| Accent | 8.96:1 | AAA |
| Destructive | 6.24:1 | AA |
| Text on background | 19.11:1 | AAA |
| Text on card | 19.11:1 | AAA |
| Primary button | 6.30:1 | AA |
| Secondary button | 12.51:1 | AAA |
| Muted text | 9.53:1 | AAA |
| Accent | 8.96:1 | AAA |
| Destructive | 4.14:1 | AA Large |
Paste this into your globals.css to use Harmonious in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.985 0.004 50.613);
--foreground: oklch(0 0 0);
--muted: oklch(0.941 0.023 157.458);
--muted-foreground: oklch(0.378 0.017 156.982);
--popover: oklch(0.985 0.004 50.613);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.985 0.004 50.613);
--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.946 0.015 50.451);
--primary-foreground: oklch(0.46 0.088 47.804);
--secondary: oklch(0.957 0.025 157.432);
--secondary-foreground: oklch(0.285 0.056 152.567);
--accent: oklch(0.929 0.025 301.787);
--accent-foreground: oklch(0.37 0.138 294.865);
--destructive: oklch(0.505 0.139 43.716);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.946 0.015 50.451);
--chart-1: oklch(0.946 0.015 50.451);
--chart-2: oklch(0.957 0.025 157.432);
--chart-3: oklch(0.929 0.025 301.787);
--chart-4: oklch(0.975 0.014 157.679);
--chart-5: oklch(0.946 0.016 50.439);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.115 0.01 56.795);
--foreground: oklch(0.977 0.004 50.601);
--muted: oklch(0.222 0.032 154.471);
--muted-foreground: oklch(0.812 0.014 157.606);
--popover: oklch(0.115 0.01 56.795);
--popover-foreground: oklch(0.977 0.004 50.601);
--card: oklch(0.115 0.01 56.795);
--card-foreground: oklch(0.977 0.004 50.601);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.946 0.015 50.451);
--primary-foreground: oklch(0.46 0.088 47.804);
--secondary: oklch(0.957 0.025 157.432);
--secondary-foreground: oklch(0.285 0.056 152.567);
--accent: oklch(0.929 0.025 301.787);
--accent-foreground: oklch(0.37 0.138 294.865);
--destructive: oklch(0.605 0.17 43.285);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.946 0.015 50.451);
--chart-1: oklch(0.946 0.015 50.451);
--chart-2: oklch(0.957 0.025 157.432);
--chart-3: oklch(0.929 0.025 301.787);
--chart-4: oklch(0.975 0.014 157.679);
--chart-5: oklch(0.946 0.016 50.439);
}