Complexity is a shadcn/ui theme built around a vivid deep orange primary color (#884901) with vivid deep yellow accents (#848801). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid deep orange primary (#884901) on an orange-tinted background (#0f0b05).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #0f0b05black |
| Foreground | #160d03black | #fdfdfcwhite |
| Card | #ffffffwhite | #0f0b05black |
| Card foreground | #160d03black | #fdfdfcwhite |
| Popover | #ffffffwhite | #0f0b05black |
| Popover foreground | #160d03black | #fdfdfcwhite |
| Primary | #884901saddlebrown | #884901saddlebrown |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #880601darkred | #880601darkred |
| Secondary foreground | #fec0bdlightpink | #fec0bdlightpink |
| Muted | #ebe1e0gainsboro | #1f1514black |
| Muted foreground | #4f4f4fdarkslategray | #b0b0b0darkgray |
| Accent | #848801olive | #848801olive |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #861109darkred | #d81b0efirebrick |
| Destructive foreground | #fbc9c5pink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #884901saddlebrown | #884901saddlebrown |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.21:1 | AAA |
| Text on card | 19.21:1 | AAA |
| Primary button | 6.96:1 | AA |
| Secondary button | 6.49:1 | AA |
| Muted text | 6.37:1 | AA |
| Accent | 3.80:1 | AA Large |
| Destructive | 6.78:1 | AA |
| Text on background | 19.30:1 | AAA |
| Text on card | 19.30:1 | AAA |
| Primary button | 6.96:1 | AA |
| Secondary button | 6.49:1 | AA |
| Muted text | 8.25:1 | AAA |
| Accent | 3.80:1 | AA Large |
| Destructive | 5.15:1 | AA |
Paste this into your globals.css to use Complexity in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.17 0.027 73.49);
--muted: oklch(0.917 0.011 19.772);
--muted-foreground: oklch(0.428 0 180);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.17 0.027 73.49);
--card: oklch(1 0 180);
--card-foreground: oklch(0.17 0.027 73.49);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.474 0.111 59.126);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.397 0.159 29.652);
--secondary-foreground: oklch(0.863 0.073 20.937);
--accent: oklch(0.604 0.133 112.09);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.398 0.152 29.672);
--destructive-foreground: oklch(0.879 0.058 23.062);
--ring: oklch(0.474 0.111 59.126);
--chart-1: oklch(0.474 0.111 59.126);
--chart-2: oklch(0.397 0.159 29.652);
--chart-3: oklch(0.604 0.133 112.09);
--chart-4: oklch(0.428 0.172 29.602);
--chart-5: oklch(0.477 0.114 58.603);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.151 0.015 74.524);
--foreground: oklch(0.993 0.002 71.437);
--muted: oklch(0.207 0.016 20.836);
--muted-foreground: oklch(0.757 0 180);
--popover: oklch(0.151 0.015 74.524);
--popover-foreground: oklch(0.993 0.002 71.437);
--card: oklch(0.151 0.015 74.524);
--card-foreground: oklch(0.993 0.002 71.437);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.474 0.111 59.126);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.397 0.159 29.652);
--secondary-foreground: oklch(0.863 0.073 20.937);
--accent: oklch(0.604 0.133 112.09);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.562 0.219 29.746);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.474 0.111 59.126);
--chart-1: oklch(0.474 0.111 59.126);
--chart-2: oklch(0.397 0.159 29.652);
--chart-3: oklch(0.604 0.133 112.09);
--chart-4: oklch(0.428 0.172 29.602);
--chart-5: oklch(0.477 0.114 58.603);
}