Engagement is a shadcn/ui theme built around a vivid purple primary color (#821188) with vivid pink accents (#881152). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid purple primary (#821188) on a purple-tinted background (#0a050a).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #0a050ablack |
| Foreground | #040104black | #fdfcfdwhite |
| Card | #fcfcfcsnow | #0d070eblack |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #fcfcfcsnow | #0d070eblack |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #821188purple | #821188purple |
| Primary foreground | #f7d2f9lavender | #f7d2f9lavender |
| Secondary | #471188indigo | #471188indigo |
| Secondary foreground | #e4d2f9lavender | #e4d2f9lavender |
| Muted | #e5dceflavender | #191023black |
| Muted foreground | #56505edimgray | #a8a1afdarkgray |
| Accent | #881152purple | #881152purple |
| Accent foreground | #f9d2e7mistyrose | #f9d2e7mistyrose |
| Destructive | #9e1e0afirebrick | #f13e22orangered |
| Destructive foreground | #fde2ddmistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #821188purple | #821188purple |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.76:1 | AAA |
| Text on card | 20.54:1 | AAA |
| Primary button | 6.50:1 | AA |
| Secondary button | 8.75:1 | AAA |
| Muted text | 5.82:1 | AA |
| Accent | 6.83:1 | AA |
| Destructive | 6.46:1 | AA |
| Text on background | 19.74:1 | AAA |
| Text on card | 19.94:1 | AAA |
| Primary button | 6.50:1 | AA |
| Secondary button | 8.75:1 | AAA |
| Muted text | 7.37:1 | AAA |
| Accent | 6.83:1 | AA |
| Destructive | 3.85:1 | AA Large |
Paste this into your globals.css to use Engagement in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.084 0.026 326.273);
--muted: oklch(0.906 0.028 306.028);
--muted-foreground: oklch(0.442 0.024 305.743);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.992 0 161.565);
--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.437 0.191 325.831);
--primary-foreground: oklch(0.906 0.067 324.545);
--secondary: oklch(0.35 0.175 295.747);
--secondary-foreground: oklch(0.89 0.057 305.609);
--accent: oklch(0.418 0.16 354.005);
--accent-foreground: oklch(0.903 0.053 343.991);
--destructive: oklch(0.455 0.166 31.488);
--destructive-foreground: oklch(0.933 0.031 28.133);
--ring: oklch(0.437 0.191 325.831);
--chart-1: oklch(0.437 0.191 325.831);
--chart-2: oklch(0.35 0.175 295.747);
--chart-3: oklch(0.418 0.16 354.005);
--chart-4: oklch(0.373 0.188 295.516);
--chart-5: oklch(0.44 0.195 325.816);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.127 0.017 325.136);
--foreground: oklch(0.992 0.001 324.138);
--muted: oklch(0.194 0.041 303.58);
--muted-foreground: oklch(0.72 0.021 306.056);
--popover: oklch(0.141 0.019 324.968);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.141 0.019 324.968);
--card-foreground: oklch(1 0 180);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.437 0.191 325.831);
--primary-foreground: oklch(0.906 0.067 324.545);
--secondary: oklch(0.35 0.175 295.747);
--secondary-foreground: oklch(0.89 0.057 305.609);
--accent: oklch(0.418 0.16 354.005);
--accent-foreground: oklch(0.903 0.053 343.991);
--destructive: oklch(0.631 0.219 31.652);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.437 0.191 325.831);
--chart-1: oklch(0.437 0.191 325.831);
--chart-2: oklch(0.35 0.175 295.747);
--chart-3: oklch(0.418 0.16 354.005);
--chart-4: oklch(0.373 0.188 295.516);
--chart-5: oklch(0.44 0.195 325.816);
}