Warmhearted is a shadcn/ui theme built around a teal primary color (#92c8c9) with yellow accents (#c8c992). The light mode uses a neutral background (#ffffff). Dark mode keeps the teal primary (#92c8c9) on a teal-tinted background (#040b0b).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #040b0bblack |
| Foreground | #031717black | #f4fafamintcream |
| Card | #fcfcfcsnow | #060f0fblack |
| Card foreground | #021212black | #f8fcfcmintcream |
| Popover | #ffffffwhite | #040b0bblack |
| Popover foreground | #031717black | #f4fafamintcream |
| Primary | #92c8c9skyblue | #92c8c9skyblue |
| Primary foreground | #0d1b1bblack | #0d1b1bblack |
| Secondary | #c992c8plum | #c992c8plum |
| Secondary foreground | #1b0d1bblack | #1b0d1bblack |
| Muted | #f4f0f4whitesmoke | #0f0b0fblack |
| Muted foreground | #6c606cdimgray | #9f939fdarkgray |
| Accent | #c8c992tan | #c8c992tan |
| Accent foreground | #1b1b0dblack | #1b1b0dblack |
| Destructive | #632809maroon | #eb661echocolate |
| Destructive foreground | #f7c2a6navajowhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #92c8c9skyblue | #92c8c9skyblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.44:1 | AAA |
| Text on card | 18.71:1 | AAA |
| Primary button | 9.53:1 | AAA |
| Secondary button | 7.51:1 | AAA |
| Muted text | 5.29:1 | AA |
| Accent | 10.12:1 | AAA |
| Destructive | 7.21:1 | AAA |
| Text on background | 18.80:1 | AAA |
| Text on card | 18.80:1 | AAA |
| Primary button | 9.53:1 | AAA |
| Secondary button | 7.51:1 | AAA |
| Muted text | 6.65:1 | AA |
| Accent | 10.12:1 | AAA |
| Destructive | 6.45:1 | AA |
Paste this into your globals.css to use Warmhearted in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.186 0.028 196.478);
--muted: oklch(0.96 0.006 326.108);
--muted-foreground: oklch(0.504 0.024 326.432);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.186 0.028 196.478);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.167 0.025 196.394);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.796 0.056 197.395);
--primary-foreground: oklch(0.21 0.019 197.169);
--secondary: oklch(0.73 0.099 327.079);
--secondary-foreground: oklch(0.188 0.034 327.411);
--accent: oklch(0.822 0.073 108.712);
--accent-foreground: oklch(0.219 0.025 109.116);
--destructive: oklch(0.356 0.094 44.543);
--destructive-foreground: oklch(0.855 0.072 49.67);
--ring: oklch(0.796 0.056 197.395);
--chart-1: oklch(0.796 0.056 197.395);
--chart-2: oklch(0.73 0.099 327.079);
--chart-3: oklch(0.822 0.073 108.712);
--chart-4: oklch(0.755 0.089 326.955);
--chart-5: oklch(0.801 0.061 197.335);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.141 0.013 196.905);
--foreground: oklch(0.981 0.006 198.27);
--muted: oklch(0.156 0.01 326.564);
--muted-foreground: oklch(0.677 0.022 326.318);
--popover: oklch(0.141 0.013 196.905);
--popover-foreground: oklch(0.981 0.006 198.27);
--card: oklch(0.158 0.015 197.016);
--card-foreground: oklch(0.988 0.004 198.301);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.796 0.056 197.395);
--primary-foreground: oklch(0.21 0.019 197.169);
--secondary: oklch(0.73 0.099 327.079);
--secondary-foreground: oklch(0.188 0.034 327.411);
--accent: oklch(0.822 0.073 108.712);
--accent-foreground: oklch(0.219 0.025 109.116);
--destructive: oklch(0.667 0.182 43.858);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.796 0.056 197.395);
--chart-1: oklch(0.796 0.056 197.395);
--chart-2: oklch(0.73 0.099 327.079);
--chart-3: oklch(0.822 0.073 108.712);
--chart-4: oklch(0.755 0.089 326.955);
--chart-5: oklch(0.801 0.061 197.335);
}