Kindhearted is a shadcn/ui theme built around a muted red primary color (#7e4c49) with muted indigo accents (#4c497e). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted red primary (#7e4c49) on a neutral background (#030202).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #030202black |
| Foreground | #0c0404black | #fdfcfcsnow |
| Card | #ffffffwhite | #030202black |
| Card foreground | #0c0404black | #fdfcfcsnow |
| Popover | #ffffffwhite | #030202black |
| Popover foreground | #0c0404black | #fdfcfcsnow |
| Primary | #7e4c49sienna | #7e4c49sienna |
| Primary foreground | #fdfcfcsnow | #fdfcfcsnow |
| Secondary | #497e4cseagreen | #497e4cseagreen |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #d0e2d1lightgrey | #1d2f1fdarkslategray |
| Muted foreground | #606c61dimgray | #939f94darkseagreen |
| Accent | #4c497edarkslateblue | #4c497edarkslateblue |
| Accent foreground | #fcfcfdwhite | #fcfcfdwhite |
| Destructive | #7d300csaddlebrown | #e85917chocolate |
| Destructive foreground | #f9d4c3peachpuff | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #7e4c49sienna | #7e4c49sienna |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.29:1 | AAA |
| Text on card | 20.29:1 | AAA |
| Primary button | 6.77:1 | AA |
| Secondary button | 4.78:1 | AA |
| Muted text | 4.04:1 | AA Large |
| Accent | 8.01:1 | AAA |
| Destructive | 6.60:1 | AA |
| Text on background | 20.24:1 | AAA |
| Text on card | 20.24:1 | AAA |
| Primary button | 6.77:1 | AA |
| Secondary button | 4.78:1 | AA |
| Muted text | 5.15:1 | AA |
| Accent | 8.01:1 | AAA |
| Destructive | 3.57:1 | AA Large |
Paste this into your globals.css to use Kindhearted in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.122 0.017 26.22);
--muted: oklch(0.894 0.029 147.219);
--muted-foreground: oklch(0.518 0.023 147.093);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.122 0.017 26.22);
--card: oklch(1 0 180);
--card-foreground: oklch(0.122 0.017 26.22);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.474 0.069 24.393);
--primary-foreground: oklch(0.992 0.001 22.23);
--secondary: oklch(0.543 0.096 145.575);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.433 0.087 285.174);
--accent-foreground: oklch(0.991 0.002 289.444);
--destructive: oklch(0.415 0.116 41.685);
--destructive-foreground: oklch(0.896 0.048 46.33);
--ring: oklch(0.474 0.069 24.393);
--chart-1: oklch(0.474 0.069 24.393);
--chart-2: oklch(0.543 0.096 145.575);
--chart-3: oklch(0.433 0.087 285.174);
--chart-4: oklch(0.573 0.102 145.559);
--chart-5: oklch(0.473 0.077 24.721);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.088 0.007 24.332);
--foreground: oklch(0.992 0.001 22.227);
--muted: oklch(0.284 0.038 146.118);
--muted-foreground: oklch(0.69 0.022 147.232);
--popover: oklch(0.088 0.007 24.332);
--popover-foreground: oklch(0.992 0.001 22.227);
--card: oklch(0.088 0.007 24.332);
--card-foreground: oklch(0.992 0.001 22.227);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.474 0.069 24.393);
--primary-foreground: oklch(0.992 0.001 22.23);
--secondary: oklch(0.543 0.096 145.575);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.433 0.087 285.174);
--accent-foreground: oklch(0.991 0.002 289.444);
--destructive: oklch(0.645 0.19 40.71);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.474 0.069 24.393);
--chart-1: oklch(0.474 0.069 24.393);
--chart-2: oklch(0.543 0.096 145.575);
--chart-3: oklch(0.433 0.087 285.174);
--chart-4: oklch(0.573 0.102 145.559);
--chart-5: oklch(0.473 0.077 24.721);
}