Elaborate is a shadcn/ui theme built around an indigo primary color (#373a67) with violet accents (#4d3767). The light mode uses a neutral background (#fbfbfe). Dark mode keeps the indigo primary (#373a67) on an indigo-tinted background (#05050a).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfbfeghostwhite | #05050ablack |
| Foreground | #030411black | #ffffffwhite |
| Card | #fbfbfeghostwhite | #05050ablack |
| Card foreground | #030411black | #ffffffwhite |
| Popover | #fbfbfeghostwhite | #05050ablack |
| Popover foreground | #030411black | #ffffffwhite |
| Primary | #373a67darkslategray | #373a67darkslategray |
| Primary foreground | #e1e2eflavender | #e1e2eflavender |
| Secondary | #375167darkslategray | #375167darkslategray |
| Secondary foreground | #e1e9eflavender | #e1e9eflavender |
| Muted | #d8dcdegainsboro | #212427darkslategray |
| Muted foreground | #404244darkslategray | #bbbdbfsilver |
| Accent | #4d3767darkslateblue | #4d3767darkslateblue |
| Accent foreground | #e7e1eflavender | #e7e1eflavender |
| Destructive | #cb4801chocolate | #f95801orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #373a67darkslategray | #373a67darkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.79:1 | AAA |
| Text on card | 19.79:1 | AAA |
| Primary button | 8.33:1 | AAA |
| Secondary button | 6.71:1 | AA |
| Muted text | 7.29:1 | AAA |
| Accent | 7.96:1 | AAA |
| Destructive | 4.71:1 | AA |
| Text on background | 20.30:1 | AAA |
| Text on card | 20.30:1 | AAA |
| Primary button | 8.33:1 | AAA |
| Secondary button | 6.71:1 | AA |
| Muted text | 8.28:1 | AAA |
| Accent | 7.96:1 | AAA |
| Destructive | 3.27:1 | AA Large |
Paste this into your globals.css to use Elaborate in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.99 0.003 283.918);
--foreground: oklch(0.116 0.033 276.222);
--muted: oklch(0.892 0.005 242.266);
--muted-foreground: oklch(0.38 0.004 242.341);
--popover: oklch(0.99 0.003 283.918);
--popover-foreground: oklch(0.116 0.033 276.222);
--card: oklch(0.99 0.003 283.918);
--card-foreground: oklch(0.116 0.033 276.222);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.368 0.077 279.622);
--primary-foreground: oklch(0.916 0.018 283.631);
--secondary: oklch(0.425 0.048 243.919);
--secondary-foreground: oklch(0.929 0.012 242.36);
--accent: oklch(0.384 0.082 303.536);
--accent-foreground: oklch(0.919 0.02 306.156);
--destructive: oklch(0.576 0.178 40.571);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.368 0.077 279.622);
--chart-1: oklch(0.368 0.077 279.622);
--chart-2: oklch(0.425 0.048 243.919);
--chart-3: oklch(0.384 0.082 303.536);
--chart-4: oklch(0.452 0.051 243.947);
--chart-5: oklch(0.363 0.085 279.019);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.12 0.013 281.284);
--foreground: oklch(1 0 180);
--muted: oklch(0.258 0.007 242.537);
--muted-foreground: oklch(0.797 0.004 242.252);
--popover: oklch(0.12 0.013 281.284);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.12 0.013 281.284);
--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.368 0.077 279.622);
--primary-foreground: oklch(0.916 0.018 283.631);
--secondary: oklch(0.425 0.048 243.919);
--secondary-foreground: oklch(0.929 0.012 242.36);
--accent: oklch(0.384 0.082 303.536);
--accent-foreground: oklch(0.919 0.02 306.156);
--destructive: oklch(0.669 0.209 40.07);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.368 0.077 279.622);
--chart-1: oklch(0.368 0.077 279.622);
--chart-2: oklch(0.425 0.048 243.919);
--chart-3: oklch(0.384 0.082 303.536);
--chart-4: oklch(0.452 0.051 243.947);
--chart-5: oklch(0.363 0.085 279.019);
}