Warmhearted is a shadcn/ui theme built around a light purple primary color (#dea8eb) with light green accents (#b4eba8). The light mode uses a neutral background (#fbf7fc). Dark mode keeps the light purple primary (#dea8eb) on a purple-tinted background (#0c070e).
| Token | Light | Dark |
|---|---|---|
| Background | #fbf7fcghostwhite | #0c070eblack |
| Foreground | #0b020eblack | #ffffffwhite |
| Card | #faf4fbghostwhite | #100811black |
| Card foreground | #080109black | #ffffffwhite |
| Popover | #faf4fbghostwhite | #100811black |
| Popover foreground | #080109black | #ffffffwhite |
| Primary | #dea8ebplum | #dea8ebplum |
| Primary foreground | #43124emidnightblue | #43124emidnightblue |
| Secondary | #b4eba8palegreen | #b4eba8palegreen |
| Secondary foreground | #1d4e12darkgreen | #1d4e12darkgreen |
| Muted | #d9e6d6gainsboro | #1c2919black |
| Muted foreground | #60685edimgray | #98a197darkgray |
| Accent | #b4eba8palegreen | #b4eba8palegreen |
| Accent foreground | #1d4e12darkgreen | #1d4e12darkgreen |
| Destructive | #c11e01firebrick | #fe4525orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #dea8ebplum | #dea8ebplum |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.32:1 | AAA |
| Text on card | 18.99:1 | AAA |
| Primary button | 7.61:1 | AAA |
| Secondary button | 7.14:1 | AAA |
| Muted text | 4.45:1 | AA Large |
| Accent | 7.14:1 | AAA |
| Destructive | 6.09:1 | AA |
| Text on background | 19.97:1 | AAA |
| Text on card | 19.70:1 | AAA |
| Primary button | 7.61:1 | AAA |
| Secondary button | 7.14:1 | AAA |
| Muted text | 5.69:1 | AA |
| Accent | 7.14:1 | AAA |
| Destructive | 3.44:1 | AA Large |
Paste this into your globals.css to use Warmhearted in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.982 0.008 319.998);
--foreground: oklch(0.117 0.041 322.066);
--muted: oklch(0.91 0.025 139.966);
--muted-foreground: oklch(0.509 0.018 139.959);
--popover: oklch(0.973 0.012 320.002);
--popover-foreground: oklch(0.102 0.035 322.7);
--card: oklch(0.973 0.012 320.002);
--card-foreground: oklch(0.102 0.035 322.7);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.804 0.108 320.091);
--primary-foreground: oklch(0.295 0.112 319.663);
--secondary: oklch(0.885 0.105 139.91);
--secondary-foreground: oklch(0.378 0.104 140.31);
--accent: oklch(0.885 0.105 139.91);
--accent-foreground: oklch(0.378 0.104 140.31);
--destructive: oklch(0.52 0.199 31.578);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.804 0.108 320.091);
--chart-1: oklch(0.804 0.108 320.091);
--chart-2: oklch(0.885 0.105 139.91);
--chart-3: oklch(0.885 0.105 139.91);
--chart-4: oklch(0.901 0.09 139.916);
--chart-5: oklch(0.803 0.114 320.093);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.139 0.019 320.465);
--foreground: oklch(1 0 180);
--muted: oklch(0.264 0.034 139.909);
--muted-foreground: oklch(0.698 0.017 139.969);
--popover: oklch(0.151 0.022 320.168);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.151 0.022 320.168);
--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.804 0.108 320.091);
--primary-foreground: oklch(0.295 0.112 319.663);
--secondary: oklch(0.885 0.105 139.91);
--secondary-foreground: oklch(0.378 0.104 140.31);
--accent: oklch(0.885 0.105 139.91);
--accent-foreground: oklch(0.378 0.104 140.31);
--destructive: oklch(0.66 0.225 32.31);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.804 0.108 320.091);
--chart-1: oklch(0.804 0.108 320.091);
--chart-2: oklch(0.885 0.105 139.91);
--chart-3: oklch(0.885 0.105 139.91);
--chart-4: oklch(0.901 0.09 139.916);
--chart-5: oklch(0.803 0.114 320.093);
}