Hearthside is a shadcn/ui theme built around a light yellow primary color (#f7f4ee) with light green accents (#f5f7ee). The light mode uses a neutral background (#fdfdfb). Dark mode keeps the light yellow primary (#f7f4ee) on a yellow-tinted background (#0f0c06).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfdfbsnow | #0f0c06black |
| Foreground | #040301black | #fbfaf9snow |
| Card | #fcfbf8snow | #120f07black |
| Card foreground | #000000black | #fdfdfcwhite |
| Popover | #fcfbf8snow | #120f07black |
| Popover foreground | #000000black | #fdfdfcwhite |
| Primary | #f7f4eewhitesmoke | #f7f4eewhitesmoke |
| Primary foreground | #342c19darkslategray | #342c19darkslategray |
| Secondary | #f7f0eelinen | #f7f0eelinen |
| Secondary foreground | #78483asienna | #78483asienna |
| Muted | #e4dad8gainsboro | #271e1bblack |
| Muted foreground | #424242darkslategray | #bdbdbdsilver |
| Accent | #f5f7eewhitesmoke | #f5f7eewhitesmoke |
| Accent foreground | #2e3419darkslategray | #2e3419darkslategray |
| Destructive | #9f2a09firebrick | #de3a0dorangered |
| Destructive foreground | #fde4ddmistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #f7f4eewhitesmoke | #f7f4eewhitesmoke |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.24:1 | AAA |
| Text on card | 20.25:1 | AAA |
| Primary button | 12.58:1 | AAA |
| Secondary button | 6.67:1 | AA |
| Muted text | 7.35:1 | AAA |
| Accent | 11.95:1 | AAA |
| Destructive | 6.17:1 | AA |
| Text on background | 18.72:1 | AAA |
| Text on card | 18.76:1 | AAA |
| Primary button | 12.58:1 | AAA |
| Secondary button | 6.67:1 | AA |
| Muted text | 8.69:1 | AAA |
| Accent | 11.95:1 | AAA |
| Destructive | 4.45:1 | AA Large |
Paste this into your globals.css to use Hearthside in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.002 88.804);
--foreground: oklch(0.099 0.011 93.874);
--muted: oklch(0.897 0.011 35.975);
--muted-foreground: oklch(0.38 0 180);
--popover: oklch(0.987 0.004 88.816);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.987 0.004 88.816);
--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.968 0.009 88.849);
--primary-foreground: oklch(0.296 0.033 88.723);
--secondary: oklch(0.959 0.008 35.985);
--secondary-foreground: oklch(0.454 0.071 36.254);
--accent: oklch(0.971 0.012 116.554);
--accent-foreground: oklch(0.31 0.044 119.085);
--destructive: oklch(0.467 0.158 34.659);
--destructive-foreground: oklch(0.938 0.029 35.946);
--ring: oklch(0.968 0.009 88.849);
--chart-1: oklch(0.968 0.009 88.849);
--chart-2: oklch(0.959 0.008 35.985);
--chart-3: oklch(0.971 0.012 116.554);
--chart-4: oklch(0.984 0.003 36.001);
--chart-5: oklch(0.968 0.01 88.854);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.156 0.015 90.768);
--foreground: oklch(0.986 0.002 88.802);
--muted: oklch(0.244 0.015 35.963);
--muted-foreground: oklch(0.797 0 180);
--popover: oklch(0.171 0.017 89.525);
--popover-foreground: oklch(0.993 0.001 88.796);
--card: oklch(0.171 0.017 89.525);
--card-foreground: oklch(0.993 0.001 88.796);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.968 0.009 88.849);
--primary-foreground: oklch(0.296 0.033 88.723);
--secondary: oklch(0.959 0.008 35.985);
--secondary-foreground: oklch(0.454 0.071 36.254);
--accent: oklch(0.971 0.012 116.554);
--accent-foreground: oklch(0.31 0.044 119.085);
--destructive: oklch(0.594 0.206 34.307);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.968 0.009 88.849);
--chart-1: oklch(0.968 0.009 88.849);
--chart-2: oklch(0.959 0.008 35.985);
--chart-3: oklch(0.971 0.012 116.554);
--chart-4: oklch(0.984 0.003 36.001);
--chart-5: oklch(0.968 0.01 88.854);
}