Invasion is a shadcn/ui theme built around a muted yellow primary color (#6f6c52) with muted purple accents (#6c526f). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted yellow primary (#6f6c52) on a yellow-tinted background (#0e0d06).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #0e0d06black |
| Foreground | #000000black | #f9f9f6whitesmoke |
| Card | #fcfcfcsnow | #121108black |
| Card foreground | #000000black | #fbfbf9snow |
| Popover | #ffffffwhite | #0e0d06black |
| Popover foreground | #000000black | #f9f9f6whitesmoke |
| Primary | #6f6c52dimgray | #6f6c52dimgray |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #526f6cdimgray | #526f6cdimgray |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #e7f3f2whitesmoke | #0c1816black |
| Muted foreground | #495b58darkslategray | #a4b6b4darkgray |
| Accent | #6c526fdimgray | #6c526fdimgray |
| Accent foreground | #faf9fbghostwhite | #faf9fbghostwhite |
| Destructive | #91390dsaddlebrown | #eb6d2dchocolate |
| Destructive foreground | #fbe2d5antiquewhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #6f6c52dimgray | #6f6c52dimgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 21.00:1 | AAA |
| Text on card | 20.54:1 | AAA |
| Primary button | 5.31:1 | AA |
| Secondary button | 5.42:1 | AA |
| Muted text | 6.33:1 | AA |
| Accent | 6.48:1 | AA |
| Destructive | 6.06:1 | AA |
| Text on background | 18.40:1 | AAA |
| Text on card | 18.29:1 | AAA |
| Primary button | 5.31:1 | AA |
| Secondary button | 5.42:1 | AA |
| Muted text | 8.58:1 | AAA |
| Accent | 6.48:1 | AA |
| Destructive | 6.75:1 | AA |
Paste this into your globals.css to use Invasion in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0 0 0);
--muted: oklch(0.955 0.013 188.595);
--muted-foreground: oklch(0.454 0.022 187.707);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.992 0 161.565);
--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.527 0.038 101.318);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.519 0.034 187.268);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.477 0.056 322.485);
--accent-foreground: oklch(0.984 0.002 322.121);
--destructive: oklch(0.461 0.129 42.51);
--destructive-foreground: oklch(0.929 0.033 48.347);
--ring: oklch(0.527 0.038 101.318);
--chart-1: oklch(0.527 0.038 101.318);
--chart-2: oklch(0.519 0.034 187.268);
--chart-3: oklch(0.477 0.056 322.485);
--chart-4: oklch(0.548 0.036 187.254);
--chart-5: oklch(0.535 0.046 101.451);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.159 0.016 102.071);
--foreground: oklch(0.981 0.004 100.395);
--muted: oklch(0.196 0.017 186.663);
--muted-foreground: oklch(0.763 0.02 188.278);
--popover: oklch(0.159 0.016 102.071);
--popover-foreground: oklch(0.981 0.004 100.395);
--card: oklch(0.175 0.018 101.769);
--card-foreground: oklch(0.987 0.003 100.373);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.527 0.038 101.318);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.519 0.034 187.268);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.477 0.056 322.485);
--accent-foreground: oklch(0.984 0.002 322.121);
--destructive: oklch(0.677 0.174 43.981);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.527 0.038 101.318);
--chart-1: oklch(0.527 0.038 101.318);
--chart-2: oklch(0.519 0.034 187.268);
--chart-3: oklch(0.477 0.056 322.485);
--chart-4: oklch(0.548 0.036 187.254);
--chart-5: oklch(0.535 0.046 101.451);
}