Complication is a shadcn/ui theme built around a light pink primary color (#f4c7d3) with light teal accents (#c7f4e8). The light mode uses a neutral background (#ffffff). Dark mode keeps the light pink primary (#f4c7d3) on a pink-tinted background (#0a0507).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #0a0507black |
| Foreground | #000000black | #fcf8f9snow |
| Card | #ffffffwhite | #0a0507black |
| Card foreground | #000000black | #fcf8f9snow |
| Popover | #ffffffwhite | #0a0507black |
| Popover foreground | #000000black | #fcf8f9snow |
| Primary | #f4c7d3pink | #f4c7d3pink |
| Primary foreground | #74162fbrown | #74162fbrown |
| Secondary | #c7f4e8paleturquoise | #c7f4e8paleturquoise |
| Secondary foreground | #061e18black | #061e18black |
| Muted | #eaf5f2whitesmoke | #0a1512black |
| Muted foreground | #464948darkslategray | #b6b9b8silver |
| Accent | #c7f4e8paleturquoise | #c7f4e8paleturquoise |
| Accent foreground | #061e18black | #061e18black |
| Destructive | #981c06darkred | #f53a19orangered |
| Destructive foreground | #fdd9d3mistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #f4c7d3pink | #f4c7d3pink |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 21.00:1 | AAA |
| Text on card | 21.00:1 | AAA |
| Primary button | 7.37:1 | AAA |
| Secondary button | 14.58:1 | AAA |
| Muted text | 8.16:1 | AAA |
| Accent | 14.58:1 | AAA |
| Destructive | 6.41:1 | AA |
| Text on background | 19.19:1 | AAA |
| Text on card | 19.19:1 | AAA |
| Primary button | 7.37:1 | AAA |
| Secondary button | 14.58:1 | AAA |
| Muted text | 9.43:1 | AAA |
| Accent | 14.58:1 | AAA |
| Destructive | 3.80:1 | AA Large |
Paste this into your globals.css to use Complication in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0 0 0);
--muted: oklch(0.961 0.012 178.434);
--muted-foreground: oklch(0.402 0.004 178.498);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0 0 0);
--card: oklch(1 0 180);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.873 0.053 0.468);
--primary-foreground: oklch(0.371 0.127 11.007);
--secondary: oklch(0.933 0.049 177.178);
--secondary-foreground: oklch(0.213 0.033 172.932);
--accent: oklch(0.933 0.049 177.178);
--accent-foreground: oklch(0.213 0.033 172.932);
--destructive: oklch(0.441 0.162 31.967);
--destructive-foreground: oklch(0.914 0.041 29.692);
--ring: oklch(0.873 0.053 0.468);
--chart-1: oklch(0.873 0.053 0.468);
--chart-2: oklch(0.933 0.049 177.178);
--chart-3: oklch(0.933 0.049 177.178);
--chart-4: oklch(0.948 0.038 177.581);
--chart-5: oklch(0.872 0.056 0.544);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.126 0.011 358.703);
--foreground: oklch(0.983 0.004 358.896);
--muted: oklch(0.182 0.016 175.839);
--muted-foreground: oklch(0.783 0.003 178.66);
--popover: oklch(0.126 0.011 358.703);
--popover-foreground: oklch(0.983 0.004 358.896);
--card: oklch(0.126 0.011 358.703);
--card-foreground: oklch(0.983 0.004 358.896);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.873 0.053 0.468);
--primary-foreground: oklch(0.371 0.127 11.007);
--secondary: oklch(0.933 0.049 177.178);
--secondary-foreground: oklch(0.213 0.033 172.932);
--accent: oklch(0.933 0.049 177.178);
--accent-foreground: oklch(0.213 0.033 172.932);
--destructive: oklch(0.635 0.227 32.114);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.873 0.053 0.468);
--chart-1: oklch(0.873 0.053 0.468);
--chart-2: oklch(0.933 0.049 177.178);
--chart-3: oklch(0.933 0.049 177.178);
--chart-4: oklch(0.948 0.038 177.581);
--chart-5: oklch(0.872 0.056 0.544);
}