Kindhearted is a shadcn/ui theme built around a purple primary color (#9a25ad) with pink accents (#ad257b). The light mode uses a neutral background (#fbf8fc). Dark mode keeps the purple primary (#9a25ad) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fbf8fcghostwhite | #000000black |
| Foreground | #000000black | #f8f7f8whitesmoke |
| Card | #fbf8fcghostwhite | #000000black |
| Card foreground | #000000black | #f8f7f8whitesmoke |
| Popover | #fbf8fcghostwhite | #000000black |
| Popover foreground | #000000black | #f8f7f8whitesmoke |
| Primary | #9a25addarkorchid | #9a25addarkorchid |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #5625adrebeccapurple | #5625adrebeccapurple |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #eeeaf6lavender | #0e0915black |
| Muted foreground | #453d52darkslategray | #b5adc2silver |
| Accent | #ad257bmediumvioletred | #ad257bmediumvioletred |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #c64901chocolate | #ef5801orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #9a25addarkorchid | #9a25addarkorchid |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.92:1 | AAA |
| Text on card | 19.92:1 | AAA |
| Primary button | 6.47:1 | AA |
| Secondary button | 9.29:1 | AAA |
| Muted text | 8.67:1 | AAA |
| Accent | 6.34:1 | AA |
| Destructive | 4.81:1 | AA |
| Text on background | 19.65:1 | AAA |
| Text on card | 19.65:1 | AAA |
| Primary button | 6.47:1 | AA |
| Secondary button | 9.29:1 | AAA |
| Muted text | 9.08:1 | AAA |
| Accent | 6.34:1 | AA |
| Destructive | 3.46: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.007 321.611);
--foreground: oklch(0 0 0);
--muted: oklch(0.943 0.016 302.668);
--muted-foreground: oklch(0.376 0.037 301.395);
--popover: oklch(0.983 0.007 321.611);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.983 0.007 321.611);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.51 0.214 321.842);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.421 0.197 292.356);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.512 0.189 347.23);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.57 0.172 41.809);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.51 0.214 321.842);
--chart-1: oklch(0.51 0.214 321.842);
--chart-2: oklch(0.421 0.197 292.356);
--chart-3: oklch(0.512 0.189 347.23);
--chart-4: oklch(0.443 0.208 292.226);
--chart-5: oklch(0.514 0.22 321.771);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.976 0.003 321.6);
--muted: oklch(0.154 0.025 300.368);
--muted-foreground: oklch(0.761 0.031 302.299);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.976 0.003 321.6);
--card: oklch(0 0 0);
--card-foreground: oklch(0.976 0.003 321.6);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.51 0.214 321.842);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.421 0.197 292.356);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.512 0.189 347.23);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.653 0.199 41.314);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.51 0.214 321.842);
--chart-1: oklch(0.51 0.214 321.842);
--chart-2: oklch(0.421 0.197 292.356);
--chart-3: oklch(0.512 0.189 347.23);
--chart-4: oklch(0.443 0.208 292.226);
--chart-5: oklch(0.514 0.22 321.771);
}