Impassioned is a shadcn/ui theme built around a muted cyan primary color (#52646b) with muted orange accents (#6b5852). The light mode uses a neutral background (#f8fbfc). Dark mode keeps the muted cyan primary (#52646b) on a neutral background (#010304).
| Token | Light | Dark |
|---|---|---|
| Background | #f8fbfcghostwhite | #010304black |
| Foreground | #061013black | #fcfdfdwhite |
| Card | #f8fbfcghostwhite | #010304black |
| Card foreground | #061013black | #fcfdfdwhite |
| Popover | #f8fbfcghostwhite | #010304black |
| Popover foreground | #061013black | #fcfdfdwhite |
| Primary | #52646bdimgray | #52646bdimgray |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #6b5852dimgray | #6b5852dimgray |
| Secondary foreground | #f8f7f6whitesmoke | #f8f7f6whitesmoke |
| Muted | #f2efedwhitesmoke | #120e0dblack |
| Muted foreground | #69554fdimgray | #b09d96rosybrown |
| Accent | #6b5852dimgray | #6b5852dimgray |
| Accent foreground | #f8f7f6whitesmoke | #f8f7f6whitesmoke |
| Destructive | #791602maroon | #fb3a13orangered |
| Destructive foreground | #febcaflightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #52646bdimgray | #52646bdimgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.50:1 | AAA |
| Text on card | 18.50:1 | AAA |
| Primary button | 6.15:1 | AA |
| Secondary button | 6.23:1 | AA |
| Muted text | 6.07:1 | AA |
| Accent | 6.23:1 | AA |
| Destructive | 6.78:1 | AA |
| Text on background | 20.26:1 | AAA |
| Text on card | 20.26:1 | AAA |
| Primary button | 6.15:1 | AA |
| Secondary button | 6.23:1 | AA |
| Muted text | 7.40:1 | AAA |
| Accent | 6.23:1 | AA |
| Destructive | 3.66:1 | AA Large |
Paste this into your globals.css to use Impassioned in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.986 0.004 219.536);
--foreground: oklch(0.165 0.016 220.046);
--muted: oklch(0.953 0.004 39.48);
--muted-foreground: oklch(0.468 0.028 39.265);
--popover: oklch(0.986 0.004 219.536);
--popover-foreground: oklch(0.165 0.016 220.046);
--card: oklch(0.986 0.004 219.536);
--card-foreground: oklch(0.165 0.016 220.046);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.492 0.024 220.024);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.478 0.026 39.273);
--secondary-foreground: oklch(0.977 0.002 39.496);
--accent: oklch(0.478 0.026 39.273);
--accent-foreground: oklch(0.977 0.002 39.496);
--destructive: oklch(0.374 0.136 32.938);
--destructive-foreground: oklch(0.852 0.079 31.517);
--ring: oklch(0.492 0.024 220.024);
--chart-1: oklch(0.492 0.024 220.024);
--chart-2: oklch(0.478 0.026 39.273);
--chart-3: oklch(0.478 0.026 39.273);
--chart-4: oklch(0.504 0.028 39.272);
--chart-5: oklch(0.494 0.03 220.19);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.094 0.008 215.589);
--foreground: oklch(0.993 0.001 219.517);
--muted: oklch(0.168 0.006 39.321);
--muted-foreground: oklch(0.71 0.025 39.331);
--popover: oklch(0.094 0.008 215.589);
--popover-foreground: oklch(0.993 0.001 219.517);
--card: oklch(0.094 0.008 215.589);
--card-foreground: oklch(0.993 0.001 219.517);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.492 0.024 220.024);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.478 0.026 39.273);
--secondary-foreground: oklch(0.977 0.002 39.496);
--accent: oklch(0.478 0.026 39.273);
--accent-foreground: oklch(0.977 0.002 39.496);
--destructive: oklch(0.645 0.233 32.48);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.492 0.024 220.024);
--chart-1: oklch(0.492 0.024 220.024);
--chart-2: oklch(0.478 0.026 39.273);
--chart-3: oklch(0.478 0.026 39.273);
--chart-4: oklch(0.504 0.028 39.272);
--chart-5: oklch(0.494 0.03 220.19);
}