Antigen is a shadcn/ui theme built around a light green primary color (#d6ecac) with light pink accents (#ecacd6). The light mode uses a neutral background (#fbfdf7). Dark mode keeps the light green primary (#d6ecac) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfdf7snow | #000000black |
| Foreground | #0c1005black | #fafbf9snow |
| Card | #f9fcf3floralwhite | #030303black |
| Card foreground | #090c04black | #fdfdfcwhite |
| Popover | #f9fcf3floralwhite | #030303black |
| Popover foreground | #090c04black | #fdfdfcwhite |
| Primary | #d6ecacpalegoldenrod | #d6ecacpalegoldenrod |
| Primary foreground | #3d5313darkolivegreen | #3d5313darkolivegreen |
| Secondary | #acd6eclightblue | #acd6eclightblue |
| Secondary foreground | #133d53darkslategray | #133d53darkslategray |
| Muted | #eff3f6whitesmoke | #090e10black |
| Muted foreground | #464849darkslategray | #b6b8b9silver |
| Accent | #ecacd6plum | #ecacd6plum |
| Accent foreground | #53133dindigo | #53133dindigo |
| Destructive | #be0704firebrick | #f00905red |
| Destructive foreground | #fff5f5lavenderblush | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #d6ecacpalegoldenrod | #d6ecacpalegoldenrod |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.75:1 | AAA |
| Text on card | 18.97:1 | AAA |
| Primary button | 6.73:1 | AA |
| Secondary button | 7.44:1 | AAA |
| Muted text | 8.25:1 | AAA |
| Accent | 7.47:1 | AAA |
| Destructive | 6.09:1 | AA |
| Text on background | 20.23:1 | AAA |
| Text on card | 20.31:1 | AAA |
| Primary button | 6.73:1 | AA |
| Secondary button | 7.44:1 | AAA |
| Muted text | 9.75:1 | AAA |
| Accent | 7.47:1 | AAA |
| Destructive | 4.42:1 | AA Large |
Paste this into your globals.css to use Antigen in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.008 122.346);
--foreground: oklch(0.163 0.024 123.441);
--muted: oklch(0.962 0.006 230.745);
--muted-foreground: oklch(0.4 0.003 230.762);
--popover: oklch(0.986 0.013 122.413);
--popover-foreground: oklch(0.146 0.021 122.053);
--card: oklch(0.986 0.013 122.413);
--card-foreground: oklch(0.146 0.021 122.053);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.911 0.087 123.78);
--primary-foreground: oklch(0.41 0.093 127.023);
--secondary: oklch(0.853 0.054 231.714);
--secondary-foreground: oklch(0.341 0.06 236.115);
--accent: oklch(0.817 0.092 340.19);
--accent-foreground: oklch(0.312 0.106 345.114);
--destructive: oklch(0.505 0.204 29.232);
--destructive-foreground: oklch(0.978 0.01 18.524);
--ring: oklch(0.911 0.087 123.78);
--chart-1: oklch(0.911 0.087 123.78);
--chart-2: oklch(0.853 0.054 231.714);
--chart-3: oklch(0.817 0.092 340.19);
--chart-4: oklch(0.875 0.046 231.496);
--chart-5: oklch(0.914 0.091 123.85);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.986 0.002 122.24);
--muted: oklch(0.159 0.009 231.492);
--muted-foreground: oklch(0.782 0.003 230.704);
--popover: oklch(0.092 0 180);
--popover-foreground: oklch(0.993 0.001 122.226);
--card: oklch(0.092 0 180);
--card-foreground: oklch(0.993 0.001 122.226);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.911 0.087 123.78);
--primary-foreground: oklch(0.41 0.093 127.023);
--secondary: oklch(0.853 0.054 231.714);
--secondary-foreground: oklch(0.341 0.06 236.115);
--accent: oklch(0.817 0.092 340.19);
--accent-foreground: oklch(0.312 0.106 345.114);
--destructive: oklch(0.601 0.244 29.232);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.911 0.087 123.78);
--chart-1: oklch(0.911 0.087 123.78);
--chart-2: oklch(0.853 0.054 231.714);
--chart-3: oklch(0.817 0.092 340.19);
--chart-4: oklch(0.875 0.046 231.496);
--chart-5: oklch(0.914 0.091 123.85);
}