Annual is a shadcn/ui theme built around a light violet primary color (#eae5fb) with light green accents (#e5fbea). The light mode uses a neutral background (#f9f7fc). Dark mode keeps the light violet primary (#eae5fb) on a violet-tinted background (#06050a).
| Token | Light | Dark |
|---|---|---|
| Background | #f9f7fcghostwhite | #06050ablack |
| Foreground | #070311black | #ffffffwhite |
| Card | #f9f7fcghostwhite | #06050ablack |
| Card foreground | #070311black | #ffffffwhite |
| Popover | #f9f7fcghostwhite | #06050ablack |
| Popover foreground | #070311black | #ffffffwhite |
| Primary | #eae5fblavender | #eae5fblavender |
| Primary foreground | #371895indigo | #371895indigo |
| Secondary | #fbeae5linen | #fbeae5linen |
| Secondary foreground | #953718saddlebrown | #953718saddlebrown |
| Muted | #f3f2f1whitesmoke | #0e0c0cblack |
| Muted foreground | #493b36darkslategray | #c9bab6silver |
| Accent | #e5fbeahoneydew | #e5fbeahoneydew |
| Accent foreground | #0a3d17darkgreen | #0a3d17darkgreen |
| Destructive | #893001saddlebrown | #fe6716orangered |
| Destructive foreground | #ffd4bdpeachpuff | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #eae5fblavender | #eae5fblavender |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.20:1 | AAA |
| Text on card | 19.20:1 | AAA |
| Primary button | 9.88:1 | AAA |
| Secondary button | 6.34:1 | AA |
| Muted text | 9.56:1 | AAA |
| Accent | 11.38:1 | AAA |
| Destructive | 6.17:1 | AA |
| Text on background | 20.31:1 | AAA |
| Text on card | 20.31:1 | AAA |
| Primary button | 9.88:1 | AAA |
| Secondary button | 6.34:1 | AA |
| Muted text | 10.38:1 | AAA |
| Accent | 11.38:1 | AAA |
| Destructive | 7.15:1 | AAA |
Paste this into your globals.css to use Annual in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.98 0.007 297.705);
--foreground: oklch(0.119 0.036 295.731);
--muted: oklch(0.961 0.002 39.495);
--muted-foreground: oklch(0.366 0.022 39.263);
--popover: oklch(0.98 0.007 297.705);
--popover-foreground: oklch(0.119 0.036 295.731);
--card: oklch(0.98 0.007 297.705);
--card-foreground: oklch(0.119 0.036 295.731);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.932 0.03 297.25);
--primary-foreground: oklch(0.354 0.184 283.202);
--secondary: oklch(0.949 0.02 39.39);
--secondary-foreground: oklch(0.467 0.133 37.9);
--accent: oklch(0.967 0.032 153.307);
--accent-foreground: oklch(0.319 0.084 147.502);
--destructive: oklch(0.435 0.131 41.895);
--destructive-foreground: oklch(0.901 0.057 49.908);
--ring: oklch(0.932 0.03 297.25);
--chart-1: oklch(0.932 0.03 297.25);
--chart-2: oklch(0.949 0.02 39.39);
--chart-3: oklch(0.967 0.032 153.307);
--chart-4: oklch(0.975 0.01 39.446);
--chart-5: oklch(0.931 0.031 297.225);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.12 0.015 297.629);
--foreground: oklch(1 0 180);
--muted: oklch(0.157 0.003 39.402);
--muted-foreground: oklch(0.801 0.018 39.382);
--popover: oklch(0.12 0.015 297.629);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.12 0.015 297.629);
--card-foreground: oklch(1 0 180);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.932 0.03 297.25);
--primary-foreground: oklch(0.354 0.184 283.202);
--secondary: oklch(0.949 0.02 39.39);
--secondary-foreground: oklch(0.467 0.133 37.9);
--accent: oklch(0.967 0.032 153.307);
--accent-foreground: oklch(0.319 0.084 147.502);
--destructive: oklch(0.696 0.201 42.587);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.932 0.03 297.25);
--chart-1: oklch(0.932 0.03 297.25);
--chart-2: oklch(0.949 0.02 39.39);
--chart-3: oklch(0.967 0.032 153.307);
--chart-4: oklch(0.975 0.01 39.446);
--chart-5: oklch(0.931 0.031 297.225);
}