Complex is a shadcn/ui theme built around a vivid indigo primary color (#5a3bf7) with vivid green accents (#3bf75a). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid indigo primary (#5a3bf7) on an indigo-tinted background (#05040c).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #05040cblack |
| Foreground | #050212black | #fcfcfdwhite |
| Card | #fcfcfcsnow | #070510black |
| Card foreground | #04020eblack | #ffffffwhite |
| Popover | #ffffffwhite | #05040cblack |
| Popover foreground | #050212black | #fcfcfdwhite |
| Primary | #5a3bf7slateblue | #5a3bf7slateblue |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #f75a3btomato | #f75a3btomato |
| Secondary foreground | #000000black | #000000black |
| Muted | #eeececlinen | #131111black |
| Muted foreground | #444140darkslategray | #bfbbbbsilver |
| Accent | #3bf75alimegreen | #3bf75alimegreen |
| Accent foreground | #000000black | #000000black |
| Destructive | #d52b01firebrick | #fe542atomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #5a3bf7slateblue | #5a3bf7slateblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.51:1 | AAA |
| Text on card | 20.14:1 | AAA |
| Primary button | 6.15:1 | AA |
| Secondary button | 6.48:1 | AA |
| Muted text | 8.62:1 | AAA |
| Accent | 14.62:1 | AAA |
| Destructive | 5.01:1 | AA |
| Text on background | 19.94:1 | AAA |
| Text on card | 20.26:1 | AAA |
| Primary button | 6.15:1 | AA |
| Secondary button | 6.48:1 | AA |
| Muted text | 9.88:1 | AAA |
| Accent | 14.62:1 | AAA |
| Destructive | 6.52:1 | AA |
Paste this into your globals.css to use Complex in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.111 0.042 289.677);
--muted: oklch(0.946 0.002 31.048);
--muted-foreground: oklch(0.378 0.005 31.068);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.111 0.042 289.677);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.1 0.037 290.865);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.522 0.259 280.133);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.672 0.197 33.207);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.855 0.247 145.256);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.566 0.209 32.933);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.522 0.259 280.133);
--chart-1: oklch(0.522 0.259 280.133);
--chart-2: oklch(0.672 0.197 33.207);
--chart-3: oklch(0.855 0.247 145.256);
--chart-4: oklch(0.69 0.183 33.098);
--chart-5: oklch(0.52 0.265 279.455);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.112 0.023 292.508);
--foreground: oklch(0.991 0.002 294.025);
--muted: oklch(0.18 0.003 31.08);
--muted-foreground: oklch(0.796 0.004 31.052);
--popover: oklch(0.112 0.023 292.508);
--popover-foreground: oklch(0.991 0.002 294.025);
--card: oklch(0.124 0.027 291.708);
--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.522 0.259 280.133);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.672 0.197 33.207);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.855 0.247 145.256);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.675 0.213 34.736);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.522 0.259 280.133);
--chart-1: oklch(0.522 0.259 280.133);
--chart-2: oklch(0.672 0.197 33.207);
--chart-3: oklch(0.855 0.247 145.256);
--chart-4: oklch(0.69 0.183 33.098);
--chart-5: oklch(0.52 0.265 279.455);
}