Invader is a shadcn/ui theme built around a muted light yellow primary color (#edede3) with muted light indigo accents (#e3e3ed). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted light yellow primary (#edede3) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #040401black | #fcfcf8snow |
| Card | #fcfcfcsnow | #030303black |
| Card foreground | #000000black | #fdfdfcwhite |
| Popover | #ffffffwhite | #000000black |
| Popover foreground | #040401black | #fcfcf8snow |
| Primary | #edede3beige | #edede3beige |
| Primary foreground | #222216black | #222216black |
| Secondary | #e3e3edlavender | #e3e3edlavender |
| Secondary foreground | #3e3f60darkslategray | #3e3f60darkslategray |
| Muted | #e4e5f1lavender | #0e0e1bblack |
| Muted foreground | #424243darkslategray | #bcbcbdsilver |
| Accent | #e3e3edlavender | #e3e3edlavender |
| Accent foreground | #3e3f60darkslategray | #3e3f60darkslategray |
| Destructive | #d11a05firebrick | #f91f06red |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #edede3beige | #edede3beige |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.52:1 | AAA |
| Text on card | 20.54:1 | AAA |
| Primary button | 13.59:1 | AAA |
| Secondary button | 7.92:1 | AAA |
| Muted text | 8.00:1 | AAA |
| Accent | 7.92:1 | AAA |
| Destructive | 5.44:1 | AA |
| Text on background | 20.41:1 | AAA |
| Text on card | 20.31:1 | AAA |
| Primary button | 13.59:1 | AAA |
| Secondary button | 7.92:1 | AAA |
| Muted text | 10.06:1 | AAA |
| Accent | 7.92:1 | AAA |
| Destructive | 4.03:1 | AA Large |
Paste this into your globals.css to use Invader in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.106 0.017 108.33);
--muted: oklch(0.924 0.016 285.299);
--muted-foreground: oklch(0.378 0.002 285.513);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.106 0.017 108.33);
--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.943 0.013 105.853);
--primary-foreground: oklch(0.247 0.021 107.012);
--secondary: oklch(0.92 0.013 285.366);
--secondary-foreground: oklch(0.382 0.055 282.706);
--accent: oklch(0.92 0.013 285.366);
--accent-foreground: oklch(0.382 0.055 282.706);
--destructive: oklch(0.548 0.214 30.384);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.943 0.013 105.853);
--chart-1: oklch(0.943 0.013 105.853);
--chart-2: oklch(0.92 0.013 285.366);
--chart-3: oklch(0.92 0.013 285.366);
--chart-4: oklch(0.947 0.008 285.457);
--chart-5: oklch(0.944 0.014 105.885);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.989 0.004 105.698);
--muted: oklch(0.172 0.025 282.718);
--muted-foreground: oklch(0.796 0.002 285.576);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.989 0.004 105.698);
--card: oklch(0.092 0 180);
--card-foreground: oklch(0.994 0.002 105.657);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.943 0.013 105.853);
--primary-foreground: oklch(0.247 0.021 107.012);
--secondary: oklch(0.92 0.013 285.366);
--secondary-foreground: oklch(0.382 0.055 282.706);
--accent: oklch(0.92 0.013 285.366);
--accent-foreground: oklch(0.382 0.055 282.706);
--destructive: oklch(0.624 0.245 30.297);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.943 0.013 105.853);
--chart-1: oklch(0.943 0.013 105.853);
--chart-2: oklch(0.92 0.013 285.366);
--chart-3: oklch(0.92 0.013 285.366);
--chart-4: oklch(0.947 0.008 285.457);
--chart-5: oklch(0.944 0.014 105.885);
}