Passionate is a shadcn/ui theme built around a muted violet primary color (#847e95) with muted light violet accents (#c8c4d4). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted violet primary (#847e95) on a violet-tinted background (#08060e).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #08060eblack |
| Foreground | #000000black | #fcfcfdwhite |
| Card | #ffffffwhite | #08060eblack |
| Card foreground | #000000black | #fcfcfdwhite |
| Popover | #ffffffwhite | #08060eblack |
| Popover foreground | #000000black | #fcfcfdwhite |
| Primary | #847e95lightslategray | #847e95lightslategray |
| Primary foreground | #000000black | #000000black |
| Secondary | #dad8dfgainsboro | #19181bblack |
| Secondary foreground | #3f3c49darkslategray | #b0adb8darkgray |
| Muted | #ddd9e8gainsboro | #1b1726black |
| Muted foreground | #4f4b58darkslategray | #aaa7b4darkgray |
| Accent | #c8c4d4thistle | #26232edarkslategray |
| Accent foreground | #2f2b3bdarkslategray | #bebacasilver |
| Destructive | #94210adarkred | #f04e2dtomato |
| Destructive foreground | #fcdbd4mistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #847e95lightslategray | #847e95lightslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 21.00:1 | AAA |
| Text on card | 21.00:1 | AAA |
| Primary button | 5.40:1 | AA |
| Secondary button | 7.58:1 | AAA |
| Muted text | 6.11:1 | AA |
| Accent | 8.06:1 | AAA |
| Destructive | 6.54:1 | AA |
| Text on background | 19.63:1 | AAA |
| Text on card | 19.63:1 | AAA |
| Primary button | 5.40:1 | AA |
| Secondary button | 8.03:1 | AAA |
| Muted text | 7.41:1 | AAA |
| Accent | 8.07:1 | AAA |
| Destructive | 3.59:1 | AA Large |
Paste this into your globals.css to use Passionate in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0 0 0);
--muted: oklch(0.893 0.02 298.168);
--muted-foreground: oklch(0.421 0.022 297.656);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0 0 0);
--card: oklch(1 0 180);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.607 0.036 297.527);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.885 0.01 298.371);
--secondary-foreground: oklch(0.364 0.023 297.452);
--accent: oklch(0.829 0.022 298.112);
--accent-foreground: oklch(0.301 0.028 296.926);
--destructive: oklch(0.438 0.154 32.738);
--destructive-foreground: oklch(0.916 0.038 31.18);
--ring: oklch(0.607 0.036 297.527);
--chart-1: oklch(0.607 0.036 297.527);
--chart-2: oklch(0.885 0.01 298.371);
--chart-3: oklch(0.829 0.022 298.112);
--chart-4: oklch(0.91 0.008 298.418);
--chart-5: oklch(0.599 0.047 297.187);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.131 0.02 297.579);
--foreground: oklch(0.991 0.002 298.531);
--muted: oklch(0.218 0.029 296.166);
--muted-foreground: oklch(0.735 0.019 298.115);
--popover: oklch(0.131 0.02 297.579);
--popover-foreground: oklch(0.991 0.002 298.531);
--card: oklch(0.131 0.02 297.579);
--card-foreground: oklch(0.991 0.002 298.531);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.607 0.036 297.527);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.21 0.007 297.976);
--secondary-foreground: oklch(0.754 0.015 298.208);
--accent: oklch(0.266 0.02 297.243);
--accent-foreground: oklch(0.797 0.023 298.069);
--destructive: oklch(0.646 0.204 33.176);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.607 0.036 297.527);
--chart-1: oklch(0.607 0.036 297.527);
--chart-2: oklch(0.21 0.007 297.976);
--chart-3: oklch(0.266 0.02 297.243);
--chart-4: oklch(0.242 0.009 297.921);
--chart-5: oklch(0.599 0.047 297.187);
}