Anniversary is a shadcn/ui theme built around a vivid purple primary color (#a404a1) with vivid pink accents (#a40451). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid purple primary (#a404a1) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #040104black | #fdfcfdwhite |
| Card | #ffffffwhite | #000000black |
| Card foreground | #040104black | #fdfcfdwhite |
| Popover | #ffffffwhite | #000000black |
| Popover foreground | #040104black | #fdfcfdwhite |
| Primary | #a404a1darkmagenta | #a404a1darkmagenta |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #5704a4indigo | #5704a4indigo |
| Secondary foreground | #eedcfelavender | #eedcfelavender |
| Muted | #e8e0f0lavender | #170f1fblack |
| Muted foreground | #424045darkslategray | #bdbabfsilver |
| Accent | #a40451brown | #a40451brown |
| Accent foreground | #fedcedmistyrose | #fedcedmistyrose |
| Destructive | #c1420bfirebrick | #f26021chocolate |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #a404a1darkmagenta | #a404a1darkmagenta |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.76:1 | AAA |
| Text on card | 20.76:1 | AAA |
| Primary button | 6.73:1 | AA |
| Secondary button | 8.32:1 | AAA |
| Muted text | 7.96:1 | AAA |
| Accent | 6.13:1 | AA |
| Destructive | 5.19:1 | AA |
| Text on background | 20.51:1 | AAA |
| Text on card | 20.51:1 | AAA |
| Primary button | 6.73:1 | AA |
| Secondary button | 8.32:1 | AAA |
| Muted text | 9.73:1 | AAA |
| Accent | 6.13:1 | AA |
| Destructive | 6.47:1 | AA |
Paste this into your globals.css to use Anniversary in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.085 0.023 327.785);
--muted: oklch(0.918 0.024 308.852);
--muted-foreground: oklch(0.375 0.01 308.856);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.085 0.023 327.785);
--card: oklch(1 0 180);
--card-foreground: oklch(0.085 0.023 327.785);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.504 0.229 329.213);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.392 0.209 297.081);
--secondary-foreground: oklch(0.919 0.049 308.566);
--accent: oklch(0.466 0.186 1.995);
--accent-foreground: oklch(0.928 0.043 347.207);
--destructive: oklch(0.552 0.172 38.857);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.504 0.229 329.213);
--chart-1: oklch(0.504 0.229 329.213);
--chart-2: oklch(0.392 0.209 297.081);
--chart-3: oklch(0.466 0.186 1.995);
--chart-4: oklch(0.417 0.224 296.852);
--chart-5: oklch(0.509 0.232 329.238);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.992 0.003 326.075);
--muted: oklch(0.187 0.035 307.087);
--muted-foreground: oklch(0.793 0.008 309.02);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.992 0.003 326.075);
--card: oklch(0 0 0);
--card-foreground: oklch(0.992 0.003 326.075);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.504 0.229 329.213);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.392 0.209 297.081);
--secondary-foreground: oklch(0.919 0.049 308.566);
--accent: oklch(0.466 0.186 1.995);
--accent-foreground: oklch(0.928 0.043 347.207);
--destructive: oklch(0.669 0.193 40.397);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.504 0.229 329.213);
--chart-1: oklch(0.504 0.229 329.213);
--chart-2: oklch(0.392 0.209 297.081);
--chart-3: oklch(0.466 0.186 1.995);
--chart-4: oklch(0.417 0.224 296.852);
--chart-5: oklch(0.509 0.232 329.238);
}