Yearly is a shadcn/ui theme built around a muted indigo primary color (#aeafbc) with muted violet accents (#b5aebc). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted indigo primary (#aeafbc) on an indigo-tinted background (#05050a).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #05050ablack |
| Foreground | #010104black | #ffffffwhite |
| Card | #ffffffwhite | #05050ablack |
| Card foreground | #010104black | #ffffffwhite |
| Popover | #ffffffwhite | #05050ablack |
| Popover foreground | #010104black | #ffffffwhite |
| Primary | #aeafbcdarkgray | #aeafbcdarkgray |
| Primary foreground | #1a1a1fblack | #1a1a1fblack |
| Secondary | #aeb5bcsilver | #aeb5bcsilver |
| Secondary foreground | #1a1c1fblack | #1a1c1fblack |
| Muted | #f1f2f3whitesmoke | #0c0d0eblack |
| Muted foreground | #3f4346darkslategray | #b9bdc0silver |
| Accent | #b5aebcsilver | #b5aebcsilver |
| Accent foreground | #1c1a1fblack | #1c1a1fblack |
| Destructive | #7d1a0cmaroon | #e32e16orangered |
| Destructive foreground | #f9c9c3pink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #aeafbcdarkgray | #aeafbcdarkgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.84:1 | AAA |
| Text on card | 20.84:1 | AAA |
| Primary button | 7.96:1 | AAA |
| Secondary button | 8.27:1 | AAA |
| Muted text | 8.93:1 | AAA |
| Accent | 8.02:1 | AAA |
| Destructive | 6.99:1 | AA |
| Text on background | 20.33:1 | AAA |
| Text on card | 20.33:1 | AAA |
| Primary button | 7.96:1 | AAA |
| Secondary button | 8.27:1 | AAA |
| Muted text | 10.29:1 | AAA |
| Accent | 8.02:1 | AAA |
| Destructive | 4.47:1 | AA Large |
Paste this into your globals.css to use Yearly in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.071 0.021 276.775);
--muted: oklch(0.962 0.001 244.106);
--muted-foreground: oklch(0.379 0.007 244.321);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.071 0.021 276.775);
--card: oklch(1 0 180);
--card-foreground: oklch(0.071 0.021 276.775);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.757 0.018 284.375);
--primary-foreground: oklch(0.218 0.009 284.015);
--secondary: oklch(0.771 0.012 244.281);
--secondary-foreground: oklch(0.226 0.006 244.427);
--accent: oklch(0.761 0.02 306.791);
--accent-foreground: oklch(0.221 0.01 306.541);
--destructive: oklch(0.388 0.137 31.037);
--destructive-foreground: oklch(0.876 0.056 26.993);
--ring: oklch(0.757 0.018 284.375);
--chart-1: oklch(0.757 0.018 284.375);
--chart-2: oklch(0.771 0.012 244.281);
--chart-3: oklch(0.761 0.02 306.791);
--chart-4: oklch(0.795 0.011 244.255);
--chart-5: oklch(0.752 0.024 284.22);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.119 0.014 282.038);
--foreground: oklch(1 0 180);
--muted: oklch(0.157 0.002 244.25);
--muted-foreground: oklch(0.796 0.006 244.181);
--popover: oklch(0.119 0.014 282.038);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.119 0.014 282.038);
--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.757 0.018 284.375);
--primary-foreground: oklch(0.218 0.009 284.015);
--secondary: oklch(0.771 0.012 244.281);
--secondary-foreground: oklch(0.226 0.006 244.427);
--accent: oklch(0.761 0.02 306.791);
--accent-foreground: oklch(0.221 0.01 306.541);
--destructive: oklch(0.595 0.218 31.01);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.757 0.018 284.375);
--chart-1: oklch(0.757 0.018 284.375);
--chart-2: oklch(0.771 0.012 244.281);
--chart-3: oklch(0.761 0.02 306.791);
--chart-4: oklch(0.795 0.011 244.255);
--chart-5: oklch(0.752 0.024 284.22);
}