Impassioned is a shadcn/ui theme built around a muted deep green primary color (#20231a) with muted light green accents (#e4e8de). The light mode uses a neutral background (#fdfefb). Dark mode keeps the muted deep green primary (#20231a) on a green-tinted background (#0b0e06).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfefbwhite | #0b0e06black |
| Foreground | #0f1603black | #fdfdfcwhite |
| Card | #fdfefbwhite | #0b0e06black |
| Card foreground | #0f1603black | #fdfdfcwhite |
| Popover | #fdfefbwhite | #0b0e06black |
| Popover foreground | #0f1603black | #fdfdfcwhite |
| Primary | #20231ablack | #20231ablack |
| Primary foreground | #bac2adsilver | #bac2adsilver |
| Secondary | #e4e8degainsboro | #181a14black |
| Secondary foreground | #4d583cdarkolivegreen | #b2baa6darkgray |
| Muted | #dbe3cegainsboro | #28311cdarkslategray |
| Muted foreground | #5b6250dimgray | #a8af9ddarkgray |
| Accent | #e4e8degainsboro | #181a14black |
| Accent foreground | #4d583cdarkolivegreen | #b2baa6darkgray |
| Destructive | #7d110dmaroon | #e7241dcrimson |
| Destructive foreground | #f9c5c3pink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #20231ablack | #20231ablack |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.21:1 | AAA |
| Text on card | 18.21:1 | AAA |
| Primary button | 8.65:1 | AAA |
| Secondary button | 6.09:1 | AA |
| Muted text | 4.80:1 | AA |
| Accent | 6.09:1 | AA |
| Destructive | 7.07:1 | AAA |
| Text on background | 19.06:1 | AAA |
| Text on card | 19.06:1 | AAA |
| Primary button | 8.65:1 | AAA |
| Secondary button | 8.75:1 | AAA |
| Muted text | 6.02:1 | AA |
| Accent | 8.75:1 | AAA |
| Destructive | 4.49:1 | AA Large |
Paste this into your globals.css to use Impassioned in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.995 0.003 124.393);
--foreground: oklch(0.188 0.039 126.618);
--muted: oklch(0.904 0.029 124.809);
--muted-foreground: oklch(0.485 0.029 125.226);
--popover: oklch(0.995 0.003 124.393);
--popover-foreground: oklch(0.188 0.039 126.618);
--card: oklch(0.995 0.003 124.393);
--card-foreground: oklch(0.188 0.039 126.618);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.25 0.018 125.386);
--primary-foreground: oklch(0.802 0.031 124.905);
--secondary: oklch(0.926 0.015 124.577);
--secondary-foreground: oklch(0.442 0.046 125.929);
--accent: oklch(0.926 0.015 124.577);
--accent-foreground: oklch(0.442 0.046 125.929);
--destructive: oklch(0.379 0.142 28.517);
--destructive-foreground: oklch(0.868 0.06 20.665);
--ring: oklch(0.25 0.018 125.386);
--chart-1: oklch(0.25 0.018 125.386);
--chart-2: oklch(0.926 0.015 124.577);
--chart-3: oklch(0.926 0.015 124.577);
--chart-4: oklch(0.946 0.011 124.509);
--chart-5: oklch(0.252 0.021 125.585);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.159 0.019 125.136);
--foreground: oklch(0.993 0.001 124.356);
--muted: oklch(0.297 0.037 126.283);
--muted-foreground: oklch(0.742 0.026 124.859);
--popover: oklch(0.159 0.019 125.136);
--popover-foreground: oklch(0.993 0.001 124.356);
--card: oklch(0.159 0.019 125.136);
--card-foreground: oklch(0.993 0.001 124.356);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.25 0.018 125.386);
--primary-foreground: oklch(0.802 0.031 124.905);
--secondary: oklch(0.213 0.012 125.169);
--secondary-foreground: oklch(0.777 0.03 124.904);
--accent: oklch(0.213 0.012 125.169);
--accent-foreground: oklch(0.777 0.03 124.904);
--destructive: oklch(0.596 0.227 28.745);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.25 0.018 125.386);
--chart-1: oklch(0.25 0.018 125.386);
--chart-2: oklch(0.213 0.012 125.169);
--chart-3: oklch(0.213 0.012 125.169);
--chart-4: oklch(0.248 0.015 125.252);
--chart-5: oklch(0.252 0.021 125.585);
}