Hearty is a shadcn/ui theme built around a green primary color (#63de63) with purple accents (#de63de). The light mode uses a neutral background (#fcfdfc). Dark mode keeps the green primary (#63de63) on a neutral background (#030703).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfdfcwhite | #030703black |
| Foreground | #030803black | #f5f9f5whitesmoke |
| Card | #fcfdfcwhite | #030703black |
| Card foreground | #030803black | #f5f9f5whitesmoke |
| Popover | #fcfdfcwhite | #030703black |
| Popover foreground | #030803black | #f5f9f5whitesmoke |
| Primary | #63de63mediumseagreen | #63de63mediumseagreen |
| Primary foreground | #030d03black | #030d03black |
| Secondary | #de63deorchid | #de63deorchid |
| Secondary foreground | #0d030dblack | #0d030dblack |
| Muted | #e9cde9gainsboro | #321632darkslategray |
| Muted foreground | #525152darkslategray | #aeadaedarkgray |
| Accent | #de63deorchid | #de63deorchid |
| Accent foreground | #0d030dblack | #0d030dblack |
| Destructive | #681d08maroon | #ed5126chocolate |
| Destructive foreground | #f8bbaalightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #63de63mediumseagreen | #63de63mediumseagreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.81:1 | AAA |
| Text on card | 19.81:1 | AAA |
| Primary button | 11.44:1 | AAA |
| Secondary button | 6.71:1 | AA |
| Muted text | 5.42:1 | AA |
| Accent | 6.71:1 | AA |
| Destructive | 7.17:1 | AAA |
| Text on background | 19.06:1 | AAA |
| Text on card | 19.06:1 | AAA |
| Primary button | 11.44:1 | AAA |
| Secondary button | 6.71:1 | AA |
| Muted text | 7.26:1 | AAA |
| Accent | 6.71:1 | AA |
| Destructive | 3.60:1 | AA Large |
Paste this into your globals.css to use Hearty in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.993 0.003 145.556);
--foreground: oklch(0.121 0.021 144.113);
--muted: oklch(0.881 0.048 325.978);
--muted-foreground: oklch(0.436 0.003 325.634);
--popover: oklch(0.993 0.003 145.556);
--popover-foreground: oklch(0.121 0.021 144.113);
--card: oklch(0.993 0.003 145.556);
--card-foreground: oklch(0.121 0.021 144.113);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.804 0.197 143.47);
--primary-foreground: oklch(0.141 0.032 143.635);
--secondary: oklch(0.695 0.21 327.543);
--secondary-foreground: oklch(0.123 0.034 327.399);
--accent: oklch(0.695 0.21 327.543);
--accent-foreground: oklch(0.123 0.034 327.399);
--destructive: oklch(0.349 0.111 35.461);
--destructive-foreground: oklch(0.843 0.075 36.02);
--ring: oklch(0.804 0.197 143.47);
--chart-1: oklch(0.804 0.197 143.47);
--chart-2: oklch(0.695 0.21 327.543);
--chart-3: oklch(0.695 0.21 327.543);
--chart-4: oklch(0.715 0.195 327.373);
--chart-5: oklch(0.809 0.204 143.401);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.12 0.017 144.444);
--foreground: oklch(0.979 0.007 145.524);
--muted: oklch(0.252 0.063 327.244);
--muted-foreground: oklch(0.748 0.003 325.606);
--popover: oklch(0.12 0.017 144.444);
--popover-foreground: oklch(0.979 0.007 145.524);
--card: oklch(0.12 0.017 144.444);
--card-foreground: oklch(0.979 0.007 145.524);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.804 0.197 143.47);
--primary-foreground: oklch(0.141 0.032 143.635);
--secondary: oklch(0.695 0.21 327.543);
--secondary-foreground: oklch(0.123 0.034 327.399);
--accent: oklch(0.695 0.21 327.543);
--accent-foreground: oklch(0.123 0.034 327.399);
--destructive: oklch(0.645 0.2 35.611);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.804 0.197 143.47);
--chart-1: oklch(0.804 0.197 143.47);
--chart-2: oklch(0.695 0.21 327.543);
--chart-3: oklch(0.695 0.21 327.543);
--chart-4: oklch(0.715 0.195 327.373);
--chart-5: oklch(0.809 0.204 143.401);
}