Harmonious is a shadcn/ui theme built around a muted green primary color (#416c53) with muted pink accents (#6c415a). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted green primary (#416c53) on a neutral background (#020302).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #020302black |
| Foreground | #010402black | #fcfdfcwhite |
| Card | #ffffffwhite | #020302black |
| Card foreground | #010402black | #fcfdfcwhite |
| Popover | #ffffffwhite | #020302black |
| Popover foreground | #010402black | #fcfdfcwhite |
| Primary | #416c53darkslategray | #416c53darkslategray |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #6c415adimgray | #6c415adimgray |
| Secondary foreground | #f4ecf0whitesmoke | #f4ecf0whitesmoke |
| Muted | #f4f0f3whitesmoke | #0f0b0dblack |
| Muted foreground | #4d4c4ddarkslategray | #b3b2b3darkgray |
| Accent | #6c415adimgray | #6c415adimgray |
| Accent foreground | #f4ecf0whitesmoke | #f4ecf0whitesmoke |
| Destructive | #922402darkred | #fc6031tomato |
| Destructive foreground | #fed4c8peachpuff | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #416c53darkslategray | #416c53darkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.59:1 | AAA |
| Text on card | 20.59:1 | AAA |
| Primary button | 5.98:1 | AA |
| Secondary button | 7.10:1 | AAA |
| Muted text | 7.59:1 | AAA |
| Accent | 7.10:1 | AAA |
| Destructive | 6.27:1 | AA |
| Text on background | 20.23:1 | AAA |
| Text on card | 20.23:1 | AAA |
| Primary button | 5.98:1 | AA |
| Secondary button | 7.10:1 | AAA |
| Muted text | 9.25:1 | AAA |
| Accent | 7.10:1 | AAA |
| Destructive | 6.86:1 | AA |
Paste this into your globals.css to use Harmonious in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.098 0.013 160.948);
--muted: oklch(0.96 0.005 341.127);
--muted-foreground: oklch(0.417 0.002 341.151);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.098 0.013 160.948);
--card: oklch(1 0 180);
--card-foreground: oklch(0.098 0.013 160.948);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.493 0.063 157.465);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.435 0.07 344.486);
--secondary-foreground: oklch(0.95 0.01 341.26);
--accent: oklch(0.435 0.07 344.486);
--accent-foreground: oklch(0.95 0.01 341.26);
--destructive: oklch(0.436 0.151 35.117);
--destructive-foreground: oklch(0.903 0.05 37.594);
--ring: oklch(0.493 0.063 157.465);
--chart-1: oklch(0.493 0.063 157.465);
--chart-2: oklch(0.435 0.07 344.486);
--chart-3: oklch(0.435 0.07 344.486);
--chart-4: oklch(0.461 0.075 344.525);
--chart-5: oklch(0.499 0.07 157.043);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.096 0.008 160.971);
--foreground: oklch(0.993 0.002 160.963);
--muted: oklch(0.155 0.007 342.1);
--muted-foreground: oklch(0.764 0.002 341.078);
--popover: oklch(0.096 0.008 160.971);
--popover-foreground: oklch(0.993 0.002 160.963);
--card: oklch(0.096 0.008 160.971);
--card-foreground: oklch(0.993 0.002 160.963);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.493 0.063 157.465);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.435 0.07 344.486);
--secondary-foreground: oklch(0.95 0.01 341.26);
--accent: oklch(0.435 0.07 344.486);
--accent-foreground: oklch(0.95 0.01 341.26);
--destructive: oklch(0.686 0.199 36.877);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.493 0.063 157.465);
--chart-1: oklch(0.493 0.063 157.465);
--chart-2: oklch(0.435 0.07 344.486);
--chart-3: oklch(0.435 0.07 344.486);
--chart-4: oklch(0.461 0.075 344.525);
--chart-5: oklch(0.499 0.07 157.043);
}