Illustrious is a shadcn/ui theme built around a deep purple primary color (#491650) with deep pink accents (#50163a). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep purple primary (#491650) on a neutral background (#070308).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #070308black |
| Foreground | #0b030cblack | #ffffffwhite |
| Card | #fcfcfcsnow | #0b040bblack |
| Card foreground | #070208black | #ffffffwhite |
| Popover | #fcfcfcsnow | #0b040bblack |
| Popover foreground | #070208black | #ffffffwhite |
| Primary | #491650indigo | #491650indigo |
| Primary foreground | #e2afe9plum | #e2afe9plum |
| Secondary | #2c1650midnightblue | #2c1650midnightblue |
| Secondary foreground | #c5afe9thistle | #c5afe9thistle |
| Muted | #efecf3whitesmoke | #0e0c13black |
| Muted foreground | #50495adarkslategray | #aba5b6darkgray |
| Accent | #50163adarkslategray | #50163adarkslategray |
| Accent foreground | #e9afd3plum | #e9afd3plum |
| Destructive | #c82504firebrick | #fa3f19orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #491650indigo | #491650indigo |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.33:1 | AAA |
| Text on card | 20.12:1 | AAA |
| Primary button | 7.61:1 | AAA |
| Secondary button | 7.98:1 | AAA |
| Muted text | 7.35:1 | AAA |
| Accent | 7.60:1 | AAA |
| Destructive | 5.65:1 | AA |
| Text on background | 20.51:1 | AAA |
| Text on card | 20.27:1 | AAA |
| Primary button | 7.61:1 | AAA |
| Secondary button | 7.98:1 | AAA |
| Muted text | 8.14:1 | AAA |
| Accent | 7.60:1 | AAA |
| Destructive | 3.62:1 | AA Large |
Paste this into your globals.css to use Illustrious in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.122 0.03 323.75);
--muted: oklch(0.947 0.01 303.48);
--muted-foreground: oklch(0.419 0.028 302.655);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0.107 0.026 324.021);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.107 0.026 324.021);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.31 0.112 322.837);
--primary-foreground: oklch(0.819 0.097 322.491);
--secondary: oklch(0.268 0.101 296.56);
--secondary-foreground: oklch(0.793 0.084 302.046);
--accent: oklch(0.308 0.097 346.304);
--accent-foreground: oklch(0.818 0.082 341.553);
--destructive: oklch(0.538 0.201 32.075);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.31 0.112 322.837);
--chart-1: oklch(0.31 0.112 322.837);
--chart-2: oklch(0.268 0.101 296.56);
--chart-3: oklch(0.308 0.097 346.304);
--chart-4: oklch(0.292 0.113 296.264);
--chart-5: oklch(0.311 0.116 322.818);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.108 0.021 323.661);
--foreground: oklch(1 0 180);
--muted: oklch(0.16 0.016 302.152);
--muted-foreground: oklch(0.733 0.024 303.151);
--popover: oklch(0.124 0.024 323.5);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.124 0.024 323.5);
--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.31 0.112 322.837);
--primary-foreground: oklch(0.819 0.097 322.491);
--secondary: oklch(0.268 0.101 296.56);
--secondary-foreground: oklch(0.793 0.084 302.046);
--accent: oklch(0.308 0.097 346.304);
--accent-foreground: oklch(0.818 0.082 341.553);
--destructive: oklch(0.648 0.228 32.719);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.31 0.112 322.837);
--chart-1: oklch(0.31 0.112 322.837);
--chart-2: oklch(0.268 0.101 296.56);
--chart-3: oklch(0.308 0.097 346.304);
--chart-4: oklch(0.292 0.113 296.264);
--chart-5: oklch(0.311 0.116 322.818);
}