Kindhearted is a shadcn/ui theme built around a vivid purple primary color (#ab15bc) with vivid green accents (#26bc15). The light mode uses a neutral background (#fbf8fc). Dark mode keeps the vivid purple primary (#ab15bc) on a neutral background (#070308).
| Token | Light | Dark |
|---|---|---|
| Background | #fbf8fcghostwhite | #070308black |
| Foreground | #070208black | #fdfcfdwhite |
| Card | #faf4faghostwhite | #0b040bblack |
| Card foreground | #040104black | #ffffffwhite |
| Popover | #fbf8fcghostwhite | #070308black |
| Popover foreground | #070208black | #fdfcfdwhite |
| Primary | #ab15bcdarkorchid | #ab15bcdarkorchid |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #26bc15limegreen | #26bc15limegreen |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #eaf2e9honeydew | #0e160dblack |
| Muted foreground | #616660dimgray | #999f99darkgray |
| Accent | #26bc15limegreen | #26bc15limegreen |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #e00b00red | #ff2519orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #ab15bcdarkorchid | #ab15bcdarkorchid |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.52:1 | AAA |
| Text on card | 19.21:1 | AAA |
| Primary button | 5.87:1 | AA |
| Secondary button | 2.52:1 | Fail |
| Muted text | 5.11:1 | AA |
| Accent | 2.52:1 | Fail |
| Destructive | 4.96:1 | AA |
| Text on background | 20.03:1 | AAA |
| Text on card | 20.27:1 | AAA |
| Primary button | 5.87:1 | AA |
| Secondary button | 2.52:1 | Fail |
| Muted text | 6.80:1 | AA |
| Accent | 2.52:1 | Fail |
| Destructive | 3.79:1 | AA Large |
Paste this into your globals.css to use Kindhearted in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.983 0.006 322.653);
--foreground: oklch(0.107 0.026 324.441);
--muted: oklch(0.951 0.015 142.565);
--muted-foreground: oklch(0.505 0.011 142.535);
--popover: oklch(0.983 0.006 322.653);
--popover-foreground: oklch(0.107 0.026 324.441);
--card: oklch(0.974 0.009 322.666);
--card-foreground: oklch(0.085 0.02 324.441);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.538 0.243 323.213);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.693 0.226 141.904);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.693 0.226 141.904);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.572 0.232 29.692);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.538 0.243 323.213);
--chart-1: oklch(0.538 0.243 323.213);
--chart-2: oklch(0.693 0.226 141.904);
--chart-3: oklch(0.693 0.226 141.904);
--chart-4: oklch(0.731 0.238 141.913);
--chart-5: oklch(0.543 0.248 323.145);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.109 0.021 324.121);
--foreground: oklch(0.991 0.003 322.638);
--muted: oklch(0.19 0.021 142.163);
--muted-foreground: oklch(0.695 0.011 142.565);
--popover: oklch(0.109 0.021 324.121);
--popover-foreground: oklch(0.991 0.003 322.638);
--card: oklch(0.124 0.024 323.985);
--card-foreground: oklch(1 0 180);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.538 0.243 323.213);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.693 0.226 141.904);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.693 0.226 141.904);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.639 0.247 29.32);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.538 0.243 323.213);
--chart-1: oklch(0.538 0.243 323.213);
--chart-2: oklch(0.693 0.226 141.904);
--chart-3: oklch(0.693 0.226 141.904);
--chart-4: oklch(0.731 0.238 141.913);
--chart-5: oklch(0.543 0.248 323.145);
}