Impassioned is a shadcn/ui theme built around a yellow primary color (#a2894e) with blue accents (#4e67a2). The light mode uses a neutral background (#ffffff). Dark mode keeps the yellow primary (#a2894e) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #0d0a03black | #fdfdfbsnow |
| Card | #ffffffwhite | #000000black |
| Card foreground | #0d0a03black | #fdfdfbsnow |
| Popover | #ffffffwhite | #000000black |
| Popover foreground | #0d0a03black | #fdfdfbsnow |
| Primary | #a2894eperu | #a2894eperu |
| Primary foreground | #000000black | #000000black |
| Secondary | #4e67a2steelblue | #4e67a2steelblue |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #eceef3whitesmoke | #0c0e13black |
| Muted foreground | #434956darkslategray | #a9afbcdarkgray |
| Accent | #4e67a2steelblue | #4e67a2steelblue |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #ce270dfirebrick | #e12b0eorangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #a2894eperu | #a2894eperu |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.77:1 | AAA |
| Text on card | 19.77:1 | AAA |
| Primary button | 6.19:1 | AA |
| Secondary button | 5.54:1 | AA |
| Muted text | 7.80:1 | AAA |
| Accent | 5.54:1 | AA |
| Destructive | 5.35:1 | AA |
| Text on background | 20.61:1 | AAA |
| Text on card | 20.61:1 | AAA |
| Primary button | 6.19:1 | AA |
| Secondary button | 5.54:1 | AA |
| Muted text | 8.77:1 | AAA |
| Accent | 5.54:1 | AA |
| Destructive | 4.60:1 | AA |
Paste this into your globals.css to use Impassioned in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.144 0.02 92.895);
--muted: oklch(0.95 0.006 267.381);
--muted-foreground: oklch(0.405 0.023 267.001);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.144 0.02 92.895);
--card: oklch(1 0 180);
--card-foreground: oklch(0.144 0.02 92.895);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.639 0.083 86.84);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.521 0.098 265.547);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.521 0.098 265.547);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.551 0.205 31.388);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.639 0.083 86.84);
--chart-1: oklch(0.639 0.083 86.84);
--chart-2: oklch(0.521 0.098 265.547);
--chart-3: oklch(0.521 0.098 265.547);
--chart-4: oklch(0.544 0.103 265.532);
--chart-5: oklch(0.645 0.089 86.638);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.994 0.002 87.43);
--muted: oklch(0.164 0.01 266.957);
--muted-foreground: oklch(0.753 0.019 267.253);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.994 0.002 87.43);
--card: oklch(0 0 0);
--card-foreground: oklch(0.994 0.002 87.43);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.639 0.083 86.84);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.521 0.098 265.547);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.521 0.098 265.547);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.588 0.219 31.354);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.639 0.083 86.84);
--chart-1: oklch(0.639 0.083 86.84);
--chart-2: oklch(0.521 0.098 265.547);
--chart-3: oklch(0.521 0.098 265.547);
--chart-4: oklch(0.544 0.103 265.532);
--chart-5: oklch(0.645 0.089 86.638);
}