Antigen is a shadcn/ui theme built around a vivid red primary color (#a10215) with near-white accents (#ece9ea). The light mode uses a neutral background (#fdf6f7). Dark mode keeps the vivid red primary (#a10215) on a red-tinted background (#0f0506).
| Token | Light | Dark |
|---|---|---|
| Background | #fdf6f7snow | #0f0506black |
| Foreground | #000000black | #fdfbfcsnow |
| Card | #fdf6f7snow | #0f0506black |
| Card foreground | #000000black | #fdfbfcsnow |
| Popover | #fdf6f7snow | #0f0506black |
| Popover foreground | #000000black | #fdfbfcsnow |
| Primary | #a10215darkred | #a10215darkred |
| Primary foreground | #fed7dbmistyrose | #fed7dbmistyrose |
| Secondary | #ece9ealinen | #2a1d1eblack |
| Secondary foreground | #574c4ddarkslategray | #c9b0b3silver |
| Muted | #eacdd0gainsboro | #321519black |
| Muted foreground | #545454dimgray | #abababdarkgray |
| Accent | #ece9ealinen | #2a1d1eblack |
| Accent foreground | #574c4ddarkslategray | #c9b0b3silver |
| Destructive | #ad3e0bsaddlebrown | #f16422chocolate |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #a10215darkred | #a10215darkred |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.77:1 | AAA |
| Text on card | 19.77:1 | AAA |
| Primary button | 6.30:1 | AA |
| Secondary button | 6.84:1 | AA |
| Muted text | 5.09:1 | AA |
| Accent | 6.84:1 | AA |
| Destructive | 6.06:1 | AA |
| Text on background | 19.49:1 | AAA |
| Text on card | 19.49:1 | AAA |
| Primary button | 6.30:1 | AA |
| Secondary button | 7.98:1 | AAA |
| Muted text | 7.25:1 | AAA |
| Accent | 7.98:1 | AAA |
| Destructive | 6.57:1 | AA |
Paste this into your globals.css to use Antigen in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.98 0.007 9.091);
--foreground: oklch(0 0 0);
--muted: oklch(0.873 0.032 9.783);
--muted-foreground: oklch(0.446 0 180);
--popover: oklch(0.98 0.007 9.091);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.98 0.007 9.091);
--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.447 0.18 25.786);
--primary-foreground: oklch(0.913 0.045 10.061);
--secondary: oklch(0.937 0.003 8.989);
--secondary-foreground: oklch(0.428 0.015 9.761);
--accent: oklch(0.937 0.003 8.989);
--accent-foreground: oklch(0.428 0.015 9.761);
--destructive: oklch(0.514 0.155 40.269);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.447 0.18 25.786);
--chart-1: oklch(0.447 0.18 25.786);
--chart-2: oklch(0.937 0.003 8.989);
--chart-3: oklch(0.937 0.003 8.989);
--chart-4: oklch(0.961 0.002 8.958);
--chart-5: oklch(0.451 0.183 26.114);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.134 0.021 10.768);
--foreground: oklch(0.991 0.002 8.961);
--muted: oklch(0.241 0.046 13.802);
--muted-foreground: oklch(0.741 0 171.254);
--popover: oklch(0.134 0.021 10.768);
--popover-foreground: oklch(0.991 0.002 8.961);
--card: oklch(0.134 0.021 10.768);
--card-foreground: oklch(0.991 0.002 8.961);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.447 0.18 25.786);
--primary-foreground: oklch(0.913 0.045 10.061);
--secondary: oklch(0.248 0.022 10.971);
--secondary-foreground: oklch(0.78 0.029 9.797);
--accent: oklch(0.248 0.022 10.971);
--accent-foreground: oklch(0.78 0.029 9.797);
--destructive: oklch(0.673 0.188 41.699);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.447 0.18 25.786);
--chart-1: oklch(0.447 0.18 25.786);
--chart-2: oklch(0.248 0.022 10.971);
--chart-3: oklch(0.248 0.022 10.971);
--chart-4: oklch(0.277 0.025 11.092);
--chart-5: oklch(0.451 0.183 26.114);
}