Heartache is a shadcn/ui theme built around a teal primary color (#188c65) with pink accents (#8c183e). The light mode uses a neutral background (#f7fdfb). Dark mode keeps the teal primary (#188c65) on a neutral background (#030706).
| Token | Light | Dark |
|---|---|---|
| Background | #f7fdfbmintcream | #030706black |
| Foreground | #02120dblack | #f5f9f8whitesmoke |
| Card | #f7fdfbmintcream | #030706black |
| Card foreground | #02120dblack | #f5f9f8whitesmoke |
| Popover | #f7fdfbmintcream | #030706black |
| Popover foreground | #02120dblack | #f5f9f8whitesmoke |
| Primary | #188c65seagreen | #188c65seagreen |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #8c183ebrown | #8c183ebrown |
| Secondary foreground | #f9dce6mistyrose | #f9dce6mistyrose |
| Muted | #e3dee0gainsboro | #211c1eblack |
| Muted foreground | #634f56dimgray | #b09ca2darkgray |
| Accent | #8c183ebrown | #8c183ebrown |
| Accent foreground | #f9dce6mistyrose | #f9dce6mistyrose |
| Destructive | #ac0c0cfirebrick | #f02d2dcrimson |
| Destructive foreground | #feececlinen | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #188c65seagreen | #188c65seagreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.59:1 | AAA |
| Text on card | 18.59:1 | AAA |
| Primary button | 4.24:1 | AA Large |
| Secondary button | 7.11:1 | AAA |
| Muted text | 5.67:1 | AA |
| Accent | 7.11:1 | AAA |
| Destructive | 6.57:1 | AA |
| Text on background | 19.05:1 | AAA |
| Text on card | 19.05:1 | AAA |
| Primary button | 4.24:1 | AA Large |
| Secondary button | 7.11:1 | AAA |
| Muted text | 6.48:1 | AA |
| Accent | 7.11:1 | AAA |
| Destructive | 4.08:1 | AA Large |
Paste this into your globals.css to use Heartache in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.988 0.006 174.398);
--foreground: oklch(0.165 0.027 171.35);
--muted: oklch(0.905 0.005 354.748);
--muted-foreground: oklch(0.451 0.028 356.311);
--popover: oklch(0.988 0.006 174.398);
--popover-foreground: oklch(0.165 0.027 171.35);
--card: oklch(0.988 0.006 174.398);
--card-foreground: oklch(0.165 0.027 171.35);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.568 0.114 164.334);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.422 0.151 7.636);
--secondary-foreground: oklch(0.921 0.034 355.637);
--accent: oklch(0.422 0.151 7.636);
--accent-foreground: oklch(0.921 0.034 355.637);
--destructive: oklch(0.471 0.187 28.539);
--destructive-foreground: oklch(0.957 0.019 17.495);
--ring: oklch(0.568 0.114 164.334);
--chart-1: oklch(0.568 0.114 164.334);
--chart-2: oklch(0.422 0.151 7.636);
--chart-3: oklch(0.422 0.151 7.636);
--chart-4: oklch(0.45 0.162 7.839);
--chart-5: oklch(0.575 0.117 163.937);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.123 0.013 174.79);
--foreground: oklch(0.98 0.005 174.452);
--muted: oklch(0.234 0.007 355.45);
--muted-foreground: oklch(0.712 0.025 355.57);
--popover: oklch(0.123 0.013 174.79);
--popover-foreground: oklch(0.98 0.005 174.452);
--card: oklch(0.123 0.013 174.79);
--card-foreground: oklch(0.98 0.005 174.452);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.568 0.114 164.334);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.422 0.151 7.636);
--secondary-foreground: oklch(0.921 0.034 355.637);
--accent: oklch(0.422 0.151 7.636);
--accent-foreground: oklch(0.921 0.034 355.637);
--destructive: oklch(0.619 0.228 27.138);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.568 0.114 164.334);
--chart-1: oklch(0.568 0.114 164.334);
--chart-2: oklch(0.422 0.151 7.636);
--chart-3: oklch(0.422 0.151 7.636);
--chart-4: oklch(0.45 0.162 7.839);
--chart-5: oklch(0.575 0.117 163.937);
}