Exciting Violet Glow is a shadcn/ui theme built around a vivid indigo primary color (#3a29f5) with vivid green accents (#29f53a). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid indigo primary (#3a29f5) on an indigo-tinted background (#06060f).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #06060fblack |
| Foreground | #000000black | #f5f5fawhitesmoke |
| Card | #fcfcfcsnow | #080713black |
| Card foreground | #000000black | #f8f8fcghostwhite |
| Popover | #fcfcfcsnow | #080713black |
| Popover foreground | #000000black | #f8f8fcghostwhite |
| Primary | #3a29f5royalblue | #3a29f5royalblue |
| Primary foreground | #edecfelavender | #edecfelavender |
| Secondary | #f53a29orangered | #f53a29orangered |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #ebd3d1gainsboro | #2e1614black |
| Muted foreground | #626060dimgray | #9f9d9ddarkgray |
| Accent | #29f53alimegreen | #29f53alimegreen |
| Accent foreground | #044e0adarkgreen | #044e0adarkgreen |
| Destructive | #7d220dmaroon | #e23d18orangered |
| Destructive foreground | #f9cdc3pink | #ffffffwhite |
| Border | #e9e9eclavender | #18181bblack |
| Input | #e9e9eclavender | #18181bblack |
| Ring | #3a29f5royalblue | #3a29f5royalblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 21.00:1 | AAA |
| Text on card | 20.54:1 | AAA |
| Primary button | 6.41:1 | AA |
| Secondary button | 3.81:1 | AA Large |
| Muted text | 4.38:1 | AA Large |
| Accent | 6.76:1 | AA |
| Destructive | 6.94:1 | AA |
| Text on background | 18.60:1 | AAA |
| Text on card | 18.89:1 | AAA |
| Primary button | 6.41:1 | AA |
| Secondary button | 3.81:1 | AA Large |
| Muted text | 6.25:1 | AA |
| Accent | 6.76:1 | AA |
| Destructive | 4.27:1 | AA Large |
Paste this into your globals.css to use Exciting Violet Glow in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0 0 0);
--muted: oklch(0.886 0.027 23.907);
--muted-foreground: oklch(0.491 0.002 23.626);
--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.936 0.004 290.17);
--input: oklch(0.936 0.004 290.17);
--primary: oklch(0.479 0.277 272.215);
--primary-foreground: oklch(0.948 0.025 289.748);
--secondary: oklch(0.635 0.225 29.809);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.845 0.268 143.472);
--accent-foreground: oklch(0.368 0.118 143.51);
--destructive: oklch(0.394 0.129 33.811);
--destructive-foreground: oklch(0.883 0.052 32.796);
--ring: oklch(0.479 0.277 272.215);
--chart-1: oklch(0.479 0.277 272.215);
--chart-2: oklch(0.635 0.225 29.809);
--chart-3: oklch(0.845 0.268 143.472);
--chart-4: oklch(0.649 0.213 29.348);
--chart-5: oklch(0.479 0.284 271.463);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.126 0.023 287.511);
--foreground: oklch(0.971 0.007 290.113);
--muted: oklch(0.235 0.04 26.038);
--muted-foreground: oklch(0.698 0.002 23.61);
--popover: oklch(0.137 0.026 286.835);
--popover-foreground: oklch(0.981 0.005 290.159);
--card: oklch(0.137 0.026 286.835);
--card-foreground: oklch(0.981 0.005 290.159);
--border: oklch(0.21 0.007 289.611);
--input: oklch(0.21 0.007 289.611);
--primary: oklch(0.479 0.277 272.215);
--primary-foreground: oklch(0.948 0.025 289.748);
--secondary: oklch(0.635 0.225 29.809);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.845 0.268 143.472);
--accent-foreground: oklch(0.368 0.118 143.51);
--destructive: oklch(0.604 0.207 33.483);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.479 0.277 272.215);
--chart-1: oklch(0.479 0.277 272.215);
--chart-2: oklch(0.635 0.225 29.809);
--chart-3: oklch(0.845 0.268 143.472);
--chart-4: oklch(0.649 0.213 29.348);
--chart-5: oklch(0.479 0.284 271.463);
}