Healthy is a shadcn/ui theme built around a yellow primary color (#d0c553) with neutral gray accents (#d0cfc8). The light mode uses a neutral background (#ffffff). Dark mode keeps the yellow primary (#d0c553) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #080802black | #f9f8f6whitesmoke |
| Card | #fcfcfcsnow | #030303black |
| Card foreground | #040401black | #fbfbf9snow |
| Popover | #ffffffwhite | #000000black |
| Popover foreground | #080802black | #f9f8f6whitesmoke |
| Primary | #d0c553darkkhaki | #d0c553darkkhaki |
| Primary foreground | #000000black | #000000black |
| Secondary | #e4e3e2gainsboro | #1b1b13black |
| Secondary foreground | #4b4b48darkslategray | #bfbca1tan |
| Muted | #e4e3d8gainsboro | #27261bblack |
| Muted foreground | #4c4c48darkslategray | #b7b7b3silver |
| Accent | #d0cfc8lightgrey | #33311fdarkslategray |
| Accent foreground | #37362fdarkslategray | #d0ceb3silver |
| Destructive | #d31d09firebrick | #f5260forangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #d0c553darkkhaki | #d0c553darkkhaki |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.07:1 | AAA |
| Text on card | 20.08:1 | AAA |
| Primary button | 11.82:1 | AAA |
| Secondary button | 6.84:1 | AA |
| Muted text | 6.69:1 | AA |
| Accent | 7.75:1 | AAA |
| Destructive | 5.33:1 | AA |
| Text on background | 19.78:1 | AAA |
| Text on card | 19.95:1 | AAA |
| Primary button | 11.82:1 | AAA |
| Secondary button | 9.03:1 | AAA |
| Muted text | 7.53:1 | AAA |
| Accent | 8.24:1 | AAA |
| Destructive | 4.06:1 | AA Large |
Paste this into your globals.css to use Healthy in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.131 0.019 105.529);
--muted: oklch(0.914 0.015 102.485);
--muted-foreground: oklch(0.415 0.007 102.471);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.131 0.019 105.529);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.104 0.015 105.529);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.811 0.135 104.12);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.917 0.001 102.237);
--secondary-foreground: oklch(0.413 0.004 102.387);
--accent: oklch(0.853 0.009 102.383);
--accent-foreground: oklch(0.331 0.011 102.747);
--destructive: oklch(0.553 0.214 30.408);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.811 0.135 104.12);
--chart-1: oklch(0.811 0.135 104.12);
--chart-2: oklch(0.917 0.001 102.237);
--chart-3: oklch(0.853 0.009 102.383);
--chart-4: oklch(0.94 0.001 102.229);
--chart-5: oklch(0.82 0.141 104.122);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.98 0.003 102.265);
--muted: oklch(0.268 0.02 103.339);
--muted-foreground: oklch(0.778 0.006 102.331);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.98 0.003 102.265);
--card: oklch(0.092 0 180);
--card-foreground: oklch(0.987 0.002 102.247);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.811 0.135 104.12);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.218 0.015 103.237);
--secondary-foreground: oklch(0.791 0.038 102.95);
--accent: oklch(0.309 0.03 103.594);
--accent-foreground: oklch(0.846 0.036 102.882);
--destructive: oklch(0.621 0.239 30.448);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.811 0.135 104.12);
--chart-1: oklch(0.811 0.135 104.12);
--chart-2: oklch(0.218 0.015 103.237);
--chart-3: oklch(0.309 0.03 103.594);
--chart-4: oklch(0.255 0.019 103.318);
--chart-5: oklch(0.82 0.141 104.122);
}