Kindhearted is a shadcn/ui theme built around a green primary color (#51d66e) with teal accents (#51d6b1). The light mode uses a neutral background (#fbfefc). Dark mode keeps the green primary (#51d66e) on a green-tinted background (#070d08).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfefcwhite | #070d08black |
| Foreground | #010401black | #fcfdfcwhite |
| Card | #fbfefcwhite | #070d08black |
| Card foreground | #010401black | #fcfdfcwhite |
| Popover | #fbfefcwhite | #070d08black |
| Popover foreground | #010401black | #fcfdfcwhite |
| Primary | #51d66emediumseagreen | #51d66emediumseagreen |
| Primary foreground | #000000black | #000000black |
| Secondary | #77d651yellowgreen | #77d651yellowgreen |
| Secondary foreground | #000000black | #000000black |
| Muted | #eff2edwhitesmoke | #0e120dblack |
| Muted foreground | #535652darkslategray | #aaada9darkgray |
| Accent | #51d6b1mediumaquamarine | #51d6b1mediumaquamarine |
| Accent foreground | #000000black | #000000black |
| Destructive | #8a3305saddlebrown | #ec5809orangered |
| Destructive foreground | #fdd8c4peachpuff | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #51d66emediumseagreen | #51d66emediumseagreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.25:1 | AAA |
| Text on card | 20.25:1 | AAA |
| Primary button | 11.22:1 | AAA |
| Secondary button | 11.55:1 | AAA |
| Muted text | 6.58:1 | AA |
| Accent | 11.63:1 | AAA |
| Destructive | 6.16:1 | AA |
| Text on background | 19.20:1 | AAA |
| Text on card | 19.20:1 | AAA |
| Primary button | 11.22:1 | AAA |
| Secondary button | 11.55:1 | AAA |
| Muted text | 8.35:1 | AAA |
| Accent | 11.63:1 | AAA |
| Destructive | 3.51:1 | AA Large |
Paste this into your globals.css to use Kindhearted in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.003 152.566);
--foreground: oklch(0.099 0.021 151.574);
--muted: oklch(0.957 0.007 136.631);
--muted-foreground: oklch(0.449 0.006 136.65);
--popover: oklch(0.994 0.003 152.566);
--popover-foreground: oklch(0.099 0.021 151.574);
--card: oklch(0.994 0.003 152.566);
--card-foreground: oklch(0.099 0.021 151.574);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.78 0.185 147.752);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.791 0.192 137.961);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.794 0.128 170.95);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.441 0.128 42.485);
--destructive-foreground: oklch(0.908 0.049 50.01);
--ring: oklch(0.78 0.185 147.752);
--chart-1: oklch(0.78 0.185 147.752);
--chart-2: oklch(0.791 0.192 137.961);
--chart-3: oklch(0.794 0.128 170.95);
--chart-4: oklch(0.804 0.181 137.754);
--chart-5: oklch(0.787 0.192 147.546);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.152 0.015 151.739);
--foreground: oklch(0.993 0.003 152.577);
--muted: oklch(0.175 0.011 136.801);
--muted-foreground: oklch(0.743 0.005 136.631);
--popover: oklch(0.152 0.015 151.739);
--popover-foreground: oklch(0.993 0.003 152.577);
--card: oklch(0.152 0.015 151.739);
--card-foreground: oklch(0.993 0.003 152.577);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.78 0.185 147.752);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.791 0.192 137.961);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.794 0.128 170.95);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.65 0.197 41.145);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.78 0.185 147.752);
--chart-1: oklch(0.78 0.185 147.752);
--chart-2: oklch(0.791 0.192 137.961);
--chart-3: oklch(0.794 0.128 170.95);
--chart-4: oklch(0.804 0.181 137.754);
--chart-5: oklch(0.787 0.192 147.546);
}