Complex is a shadcn/ui theme built around a deep teal primary color (#142e2e) with deep blue accents (#14212e). The light mode uses a neutral background (#f7fdfd). Dark mode keeps the deep teal primary (#142e2e) on a neutral background (#010404).
| Token | Light | Dark |
|---|---|---|
| Background | #f7fdfdmintcream | #010404black |
| Foreground | #051515black | #f6f9f9whitesmoke |
| Card | #f7fdfdmintcream | #010404black |
| Card foreground | #051515black | #f6f9f9whitesmoke |
| Popover | #f7fdfdmintcream | #010404black |
| Popover foreground | #051515black | #f6f9f9whitesmoke |
| Primary | #142e2edarkslategray | #142e2edarkslategray |
| Primary foreground | #9fd4d5lightblue | #9fd4d5lightblue |
| Secondary | #142e22black | #142e22black |
| Secondary foreground | #9fd5bbsilver | #9fd5bbsilver |
| Muted | #e3ede8lavender | #121c17black |
| Muted foreground | #4c6157darkslategray | #9eb3a9darkgray |
| Accent | #14212eblack | #14212eblack |
| Accent foreground | #9fb9d5lightsteelblue | #9fb9d5lightsteelblue |
| Destructive | #af1b0dfirebrick | #ed2412orangered |
| Destructive foreground | #fef2f1seashell | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #142e2edarkslategray | #142e2edarkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.10:1 | AAA |
| Text on card | 18.10:1 | AAA |
| Primary button | 8.83:1 | AAA |
| Secondary button | 8.79:1 | AAA |
| Muted text | 5.57:1 | AA |
| Accent | 8.07:1 | AAA |
| Destructive | 6.40:1 | AA |
| Text on background | 19.45:1 | AAA |
| Text on card | 19.45:1 | AAA |
| Primary button | 8.83:1 | AAA |
| Secondary button | 8.79:1 | AAA |
| Muted text | 7.85:1 | AAA |
| Accent | 8.07:1 | AAA |
| Destructive | 4.31:1 | AA Large |
Paste this into your globals.css to use Complex in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.989 0.006 198.277);
--foreground: oklch(0.179 0.023 196.724);
--muted: oklch(0.938 0.013 165.639);
--muted-foreground: oklch(0.473 0.03 164.194);
--popover: oklch(0.989 0.006 198.277);
--popover-foreground: oklch(0.179 0.023 196.724);
--card: oklch(0.989 0.006 198.277);
--card-foreground: oklch(0.179 0.023 196.724);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.28 0.031 196.945);
--primary-foreground: oklch(0.834 0.054 197.463);
--secondary: oklch(0.276 0.04 161.189);
--secondary-foreground: oklch(0.828 0.067 163.649);
--accent: oklch(0.242 0.031 250.817);
--accent-foreground: oklch(0.776 0.049 250.196);
--destructive: oklch(0.486 0.184 30.084);
--destructive-foreground: oklch(0.97 0.013 23.716);
--ring: oklch(0.28 0.031 196.945);
--chart-1: oklch(0.28 0.031 196.945);
--chart-2: oklch(0.276 0.04 161.189);
--chart-3: oklch(0.242 0.031 250.817);
--chart-4: oklch(0.314 0.047 160.907);
--chart-5: oklch(0.283 0.033 196.895);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.099 0.01 196.719);
--foreground: oklch(0.98 0.004 198.303);
--muted: oklch(0.215 0.018 163.496);
--muted-foreground: oklch(0.747 0.027 165.01);
--popover: oklch(0.099 0.01 196.719);
--popover-foreground: oklch(0.98 0.004 198.303);
--card: oklch(0.099 0.01 196.719);
--card-foreground: oklch(0.98 0.004 198.303);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.28 0.031 196.945);
--primary-foreground: oklch(0.834 0.054 197.463);
--secondary: oklch(0.276 0.04 161.189);
--secondary-foreground: oklch(0.828 0.067 163.649);
--accent: oklch(0.242 0.031 250.817);
--accent-foreground: oklch(0.776 0.049 250.196);
--destructive: oklch(0.606 0.233 30.093);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.28 0.031 196.945);
--chart-1: oklch(0.28 0.031 196.945);
--chart-2: oklch(0.276 0.04 161.189);
--chart-3: oklch(0.242 0.031 250.817);
--chart-4: oklch(0.314 0.047 160.907);
--chart-5: oklch(0.283 0.033 196.895);
}