Warmhearted is a shadcn/ui theme built around a neutral gray primary color (#9f9e9d) with neutral gray accents (#9d9f9f). The light mode uses a neutral background (#fcf9f8). Dark mode keeps the neutral gray primary (#9f9e9d) on a neutral background (#080302).
| Token | Light | Dark |
|---|---|---|
| Background | #fcf9f8snow | #080302black |
| Foreground | #150805black | #fbf9f9snow |
| Card | #fcf9f8snow | #080302black |
| Card foreground | #150805black | #fbf9f9snow |
| Popover | #fcf9f8snow | #080302black |
| Popover foreground | #150805black | #fbf9f9snow |
| Primary | #9f9e9ddarkgray | #9f9e9ddarkgray |
| Primary foreground | #050505black | #050505black |
| Secondary | #9d9f9fdarkgray | #9d9f9fdarkgray |
| Secondary foreground | #050505black | #050505black |
| Muted | #f1f3f4whitesmoke | #0b0e0eblack |
| Muted foreground | #3b474adarkslategray | #b5c1c4silver |
| Accent | #9d9f9fdarkgray | #9d9f9fdarkgray |
| Accent foreground | #050505black | #050505black |
| Destructive | #671c0amaroon | #ea441aorangered |
| Destructive foreground | #f7baablightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #9f9e9ddarkgray | #9f9e9ddarkgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.70:1 | AAA |
| Text on card | 18.70:1 | AAA |
| Primary button | 7.59:1 | AAA |
| Secondary button | 7.64:1 | AAA |
| Muted text | 8.62:1 | AAA |
| Accent | 7.64:1 | AAA |
| Destructive | 7.20:1 | AAA |
| Text on background | 19.51:1 | AAA |
| Text on card | 19.51:1 | AAA |
| Primary button | 7.59:1 | AAA |
| Secondary button | 7.64:1 | AAA |
| Muted text | 10.53:1 | AAA |
| Accent | 7.64:1 | AAA |
| Destructive | 3.94:1 | AA Large |
Paste this into your globals.css to use Warmhearted in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.983 0.004 34.31);
--foreground: oklch(0.153 0.025 38.834);
--muted: oklch(0.963 0.002 214.323);
--muted-foreground: oklch(0.387 0.016 214.518);
--popover: oklch(0.983 0.004 34.31);
--popover-foreground: oklch(0.153 0.025 38.834);
--card: oklch(0.983 0.004 34.31);
--card-foreground: oklch(0.153 0.025 38.834);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.699 0.002 34.312);
--primary-foreground: oklch(0.116 0 34.408);
--secondary: oklch(0.7 0.002 214.324);
--secondary-foreground: oklch(0.116 0 214.229);
--accent: oklch(0.7 0.002 214.324);
--accent-foreground: oklch(0.116 0 214.229);
--destructive: oklch(0.346 0.11 34.683);
--destructive-foreground: oklch(0.841 0.074 34.469);
--ring: oklch(0.699 0.002 34.312);
--chart-1: oklch(0.699 0.002 34.312);
--chart-2: oklch(0.7 0.002 214.324);
--chart-3: oklch(0.7 0.002 214.324);
--chart-4: oklch(0.725 0.002 214.323);
--chart-5: oklch(0.697 0.008 34.301);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.111 0.013 40.716);
--foreground: oklch(0.984 0.002 34.313);
--muted: oklch(0.159 0.004 214.395);
--muted-foreground: oklch(0.803 0.014 214.371);
--popover: oklch(0.111 0.013 40.716);
--popover-foreground: oklch(0.984 0.002 34.313);
--card: oklch(0.111 0.013 40.716);
--card-foreground: oklch(0.984 0.002 34.313);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.699 0.002 34.312);
--primary-foreground: oklch(0.116 0 34.408);
--secondary: oklch(0.7 0.002 214.324);
--secondary-foreground: oklch(0.116 0 214.229);
--accent: oklch(0.7 0.002 214.324);
--accent-foreground: oklch(0.116 0 214.229);
--destructive: oklch(0.624 0.209 34.287);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.699 0.002 34.312);
--chart-1: oklch(0.699 0.002 34.312);
--chart-2: oklch(0.7 0.002 214.324);
--chart-3: oklch(0.7 0.002 214.324);
--chart-4: oklch(0.725 0.002 214.323);
--chart-5: oklch(0.697 0.008 34.301);
}