Heartfelt is a shadcn/ui theme built around a neutral gray primary color (#d0d0d2) with neutral gray accents (#d0d2d0). The light mode uses a neutral background (#fbfcfe). Dark mode keeps the neutral gray primary (#d0d0d2) on a blue-tinted background (#06070e).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfcfewhite | #06070eblack |
| Foreground | #050814black | #fcfcfdwhite |
| Card | #f8f8fcghostwhite | #080912black |
| Card foreground | #040610black | #ffffffwhite |
| Popover | #f8f8fcghostwhite | #080912black |
| Popover foreground | #040610black | #ffffffwhite |
| Primary | #d0d0d2lightgrey | #d0d0d2lightgrey |
| Primary foreground | #36373adarkslategray | #36373adarkslategray |
| Secondary | #d2d0d0lightgrey | #d2d0d0lightgrey |
| Secondary foreground | #3a3637darkslategray | #3a3637darkslategray |
| Muted | #ebe5e6linen | #1a1415black |
| Muted foreground | #5f4f51dimgray | #b0a0a3darkgray |
| Accent | #d0d2d0lightgrey | #d0d2d0lightgrey |
| Accent foreground | #373a36darkslategray | #373a36darkslategray |
| Destructive | #ac1802firebrick | #fd3112orangered |
| Destructive foreground | #ffe5e1mistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #d0d0d2lightgrey | #d0d0d2lightgrey |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.42:1 | AAA |
| Text on card | 19.11:1 | AAA |
| Primary button | 7.73:1 | AAA |
| Secondary button | 7.75:1 | AAA |
| Muted text | 6.19:1 | AA |
| Accent | 7.61:1 | AAA |
| Destructive | 6.09:1 | AA |
| Text on background | 19.56:1 | AAA |
| Text on card | 19.83:1 | AAA |
| Primary button | 7.73:1 | AAA |
| Secondary button | 7.75:1 | AAA |
| Muted text | 7.28:1 | AAA |
| Accent | 7.61:1 | AAA |
| Destructive | 3.74:1 | AA Large |
Paste this into your globals.css to use Heartfelt in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.99 0.003 278.281);
--foreground: oklch(0.137 0.028 272.703);
--muted: oklch(0.927 0.007 6.788);
--muted-foreground: oklch(0.444 0.021 7.783);
--popover: oklch(0.981 0.005 278.242);
--popover-foreground: oklch(0.127 0.024 272.193);
--card: oklch(0.981 0.005 278.242);
--card-foreground: oklch(0.127 0.024 272.193);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.858 0.003 278.263);
--primary-foreground: oklch(0.337 0.005 278.099);
--secondary: oklch(0.859 0.003 6.686);
--secondary-foreground: oklch(0.338 0.005 6.951);
--accent: oklch(0.863 0.005 141.054);
--accent-foreground: oklch(0.344 0.007 141.021);
--destructive: oklch(0.476 0.183 31.315);
--destructive-foreground: oklch(0.941 0.029 28.12);
--ring: oklch(0.858 0.003 278.263);
--chart-1: oklch(0.858 0.003 278.263);
--chart-2: oklch(0.859 0.003 6.686);
--chart-3: oklch(0.863 0.005 141.054);
--chart-4: oklch(0.883 0.003 6.668);
--chart-5: oklch(0.856 0.006 278.208);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.133 0.016 274.747);
--foreground: oklch(0.992 0.001 278.305);
--muted: oklch(0.198 0.011 7.936);
--muted-foreground: oklch(0.721 0.019 7.237);
--popover: oklch(0.144 0.019 275.371);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.144 0.019 275.371);
--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.858 0.003 278.263);
--primary-foreground: oklch(0.337 0.005 278.099);
--secondary: oklch(0.859 0.003 6.686);
--secondary-foreground: oklch(0.338 0.005 6.951);
--accent: oklch(0.863 0.005 141.054);
--accent-foreground: oklch(0.344 0.007 141.021);
--destructive: oklch(0.641 0.239 31.356);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.858 0.003 278.263);
--chart-1: oklch(0.858 0.003 278.263);
--chart-2: oklch(0.859 0.003 6.686);
--chart-3: oklch(0.863 0.005 141.054);
--chart-4: oklch(0.883 0.003 6.668);
--chart-5: oklch(0.856 0.006 278.208);
}