Hearth is a shadcn/ui theme built around a muted red primary color (#98767b) with muted orange accents (#988276). The light mode uses a neutral background (#fdf6f8). Dark mode keeps the muted red primary (#98767b) on a neutral background (#030202).
| Token | Light | Dark |
|---|---|---|
| Background | #fdf6f8snow | #030202black |
| Foreground | #080203black | #fbf9f9snow |
| Card | #fdf6f8snow | #030202black |
| Card foreground | #080203black | #fbf9f9snow |
| Popover | #fdf6f8snow | #030202black |
| Popover foreground | #080203black | #fbf9f9snow |
| Primary | #98767bgray | #98767bgray |
| Primary foreground | #000000black | #000000black |
| Secondary | #98768cgray | #98768cgray |
| Secondary foreground | #000000black | #000000black |
| Muted | #f2e3edlinen | #1c0d17black |
| Muted foreground | #6d5f68dimgray | #a0929bdarkgray |
| Accent | #988276gray | #988276gray |
| Accent foreground | #000000black | #000000black |
| Destructive | #8a170fdarkred | #e9372bcrimson |
| Destructive foreground | #fad4d1bisque | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #98767bgray | #98767bgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.38:1 | AAA |
| Text on card | 19.38:1 | AAA |
| Primary button | 5.23:1 | AA |
| Secondary button | 5.32:1 | AA |
| Muted text | 4.86:1 | AA |
| Accent | 5.79:1 | AA |
| Destructive | 6.95:1 | AA |
| Text on background | 19.77:1 | AAA |
| Text on card | 19.77:1 | AAA |
| Primary button | 5.23:1 | AA |
| Secondary button | 5.32:1 | AA |
| Muted text | 6.33:1 | AA |
| Accent | 5.79:1 | AA |
| Destructive | 4.16:1 | AA Large |
Paste this into your globals.css to use Hearth in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.98 0.007 6.786);
--foreground: oklch(0.103 0.021 7.507);
--muted: oklch(0.931 0.021 338.458);
--muted-foreground: oklch(0.502 0.023 338.915);
--popover: oklch(0.98 0.007 6.786);
--popover-foreground: oklch(0.103 0.021 7.507);
--card: oklch(0.98 0.007 6.786);
--card-foreground: oklch(0.103 0.021 7.507);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.601 0.043 8.359);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.607 0.052 339.675);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.624 0.032 50.045);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.411 0.151 29.464);
--destructive-foreground: oklch(0.901 0.044 22.816);
--ring: oklch(0.601 0.043 8.359);
--chart-1: oklch(0.601 0.043 8.359);
--chart-2: oklch(0.607 0.052 339.675);
--chart-3: oklch(0.624 0.032 50.045);
--chart-4: oklch(0.633 0.048 339.492);
--chart-5: oklch(0.597 0.052 8.772);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.087 0.008 7.009);
--foreground: oklch(0.984 0.001 6.632);
--muted: oklch(0.185 0.032 341.319);
--muted-foreground: oklch(0.675 0.021 338.633);
--popover: oklch(0.087 0.008 7.009);
--popover-foreground: oklch(0.984 0.001 6.632);
--card: oklch(0.087 0.008 7.009);
--card-foreground: oklch(0.984 0.001 6.632);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.601 0.043 8.359);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.607 0.052 339.675);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.624 0.032 50.045);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.612 0.215 29.103);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.601 0.043 8.359);
--chart-1: oklch(0.601 0.043 8.359);
--chart-2: oklch(0.607 0.052 339.675);
--chart-3: oklch(0.624 0.032 50.045);
--chart-4: oklch(0.633 0.048 339.492);
--chart-5: oklch(0.597 0.052 8.772);
}