Harmonious is a shadcn/ui theme built around a vivid deep blue primary color (#032e63) with vivid deep green accents (#2e6303). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid deep blue primary (#032e63) on a neutral background (#020508).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #020508black |
| Foreground | #000000black | #f9fafbghostwhite |
| Card | #fcfcfcsnow | #04070cblack |
| Card foreground | #000000black | #fcfcfdwhite |
| Popover | #fcfcfcsnow | #04070cblack |
| Popover foreground | #000000black | #fcfcfdwhite |
| Primary | #032e63midnightblue | #032e63midnightblue |
| Primary foreground | #9cc7fclightskyblue | #9cc7fclightskyblue |
| Secondary | #63032emaroon | #63032emaroon |
| Secondary foreground | #fc9cc7lightpink | #fc9cc7lightpink |
| Muted | #ece4e8linen | #1b1317black |
| Muted foreground | #4c3e44darkslategray | #c1b3b9silver |
| Accent | #2e6303darkgreen | #2e6303darkgreen |
| Accent foreground | #c7fc9cpalegoldenrod | #c7fc9cpalegoldenrod |
| Destructive | #ad2000firebrick | #eb2b00orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #032e63midnightblue | #032e63midnightblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 21.00:1 | AAA |
| Text on card | 20.54:1 | AAA |
| Primary button | 7.59:1 | AAA |
| Secondary button | 6.75:1 | AA |
| Muted text | 8.10:1 | AAA |
| Accent | 6.10:1 | AA |
| Destructive | 7.02:1 | AAA |
| Text on background | 19.55:1 | AAA |
| Text on card | 19.67:1 | AAA |
| Primary button | 7.59:1 | AAA |
| Secondary button | 6.75:1 | AA |
| Muted text | 9.03:1 | AAA |
| Accent | 6.10:1 | AA |
| Destructive | 4.31:1 | AA Large |
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 0 0);
--muted: oklch(0.927 0.009 348.079);
--muted-foreground: oklch(0.38 0.021 349.3);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.992 0 161.565);
--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.31 0.105 256.681);
--primary-foreground: oklch(0.818 0.089 253.793);
--secondary: oklch(0.325 0.128 2.673);
--secondary-foreground: oklch(0.802 0.126 351.83);
--accent: oklch(0.447 0.131 136.007);
--accent-foreground: oklch(0.934 0.136 132.005);
--destructive: oklch(0.484 0.18 32.71);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.31 0.105 256.681);
--chart-1: oklch(0.31 0.105 256.681);
--chart-2: oklch(0.325 0.128 2.673);
--chart-3: oklch(0.447 0.131 136.007);
--chart-4: oklch(0.358 0.142 3.268);
--chart-5: oklch(0.31 0.107 256.757);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.111 0.012 245.543);
--foreground: oklch(0.984 0.001 253.228);
--muted: oklch(0.199 0.014 349.592);
--muted-foreground: oklch(0.781 0.018 348.427);
--popover: oklch(0.127 0.014 245.962);
--popover-foreground: oklch(0.992 0.001 253.223);
--card: oklch(0.127 0.014 245.962);
--card-foreground: oklch(0.992 0.001 253.223);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.31 0.105 256.681);
--primary-foreground: oklch(0.818 0.089 253.793);
--secondary: oklch(0.325 0.128 2.673);
--secondary-foreground: oklch(0.802 0.126 351.83);
--accent: oklch(0.447 0.131 136.007);
--accent-foreground: oklch(0.934 0.136 132.005);
--destructive: oklch(0.605 0.228 32.21);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.31 0.105 256.681);
--chart-1: oklch(0.31 0.105 256.681);
--chart-2: oklch(0.325 0.128 2.673);
--chart-3: oklch(0.447 0.131 136.007);
--chart-4: oklch(0.358 0.142 3.268);
--chart-5: oklch(0.31 0.107 256.757);
}