Invasion is a shadcn/ui theme built around a purple primary color (#da9ace) with muted light purple accents (#d6c7d3). The light mode uses a neutral background (#ffffff). Dark mode keeps the purple primary (#da9ace) on a neutral background (#070306).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #070306black |
| Foreground | #10050eblack | #fbf9fasnow |
| Card | #fcfcfcsnow | #0b040ablack |
| Card foreground | #0c030ablack | #fdfcfdwhite |
| Popover | #ffffffwhite | #070306black |
| Popover foreground | #10050eblack | #fbf9fasnow |
| Primary | #da9aceplum | #da9aceplum |
| Primary foreground | #30122bblack | #30122bblack |
| Secondary | #dfd8ddgainsboro | #1c171bblack |
| Secondary foreground | #483c46darkslategray | #bbaab8darkgray |
| Muted | #e9dde7gainsboro | #221620black |
| Muted foreground | #503f4ddarkslategray | #c0afbdsilver |
| Accent | #d6c7d3thistle | #3a2737darkslategray |
| Accent foreground | #3e2d3bdarkslategray | #d4bfd0thistle |
| Destructive | #be1d04firebrick | #fa3719orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #da9aceplum | #da9aceplum |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.99:1 | AAA |
| Text on card | 19.89:1 | AAA |
| Primary button | 7.63:1 | AAA |
| Secondary button | 7.46:1 | AAA |
| Muted text | 7.39:1 | AAA |
| Accent | 7.88:1 | AAA |
| Destructive | 6.24:1 | AA |
| Text on background | 19.54:1 | AAA |
| Text on card | 19.78:1 | AAA |
| Primary button | 7.63:1 | AAA |
| Secondary button | 8.05:1 | AAA |
| Muted text | 8.38:1 | AAA |
| Accent | 7.99:1 | AAA |
| Destructive | 3.72:1 | AA Large |
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.138 0.03 333.487);
--muted: oklch(0.91 0.017 331.674);
--muted-foreground: oklch(0.39 0.033 332.54);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.138 0.03 333.487);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.124 0.026 332.665);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.765 0.101 333.169);
--primary-foreground: oklch(0.24 0.063 334.819);
--secondary: oklch(0.889 0.01 331.565);
--secondary-foreground: oklch(0.374 0.023 332.251);
--accent: oklch(0.845 0.024 331.809);
--accent-foreground: oklch(0.322 0.034 332.831);
--destructive: oklch(0.514 0.196 31.203);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.765 0.101 333.169);
--chart-1: oklch(0.765 0.101 333.169);
--chart-2: oklch(0.889 0.01 331.565);
--chart-3: oklch(0.845 0.024 331.809);
--chart-4: oklch(0.913 0.008 331.527);
--chart-5: oklch(0.764 0.108 333.278);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.11 0.018 332.149);
--foreground: oklch(0.984 0.002 331.436);
--muted: oklch(0.22 0.025 332.902);
--muted-foreground: oklch(0.773 0.027 331.903);
--popover: oklch(0.11 0.018 332.149);
--popover-foreground: oklch(0.984 0.002 331.436);
--card: oklch(0.126 0.02 332.24);
--card-foreground: oklch(0.992 0.001 331.421);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.765 0.101 333.169);
--primary-foreground: oklch(0.24 0.063 334.819);
--secondary: oklch(0.212 0.012 332.214);
--secondary-foreground: oklch(0.757 0.027 331.907);
--accent: oklch(0.301 0.039 333.136);
--accent-foreground: oklch(0.827 0.034 331.974);
--destructive: oklch(0.642 0.233 31.529);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.765 0.101 333.169);
--chart-1: oklch(0.765 0.101 333.169);
--chart-2: oklch(0.212 0.012 332.214);
--chart-3: oklch(0.301 0.039 333.136);
--chart-4: oklch(0.244 0.016 332.285);
--chart-5: oklch(0.764 0.108 333.278);
}