Weekly is a shadcn/ui theme built around a vivid violet primary color (#6901cb) with vivid green accents (#63cb01). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid violet primary (#6901cb) on a violet-tinted background (#08050a).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #08050ablack |
| Foreground | #050208black | #fcfcfdwhite |
| Card | #ffffffwhite | #08050ablack |
| Card foreground | #050208black | #fcfcfdwhite |
| Popover | #ffffffwhite | #08050ablack |
| Popover foreground | #050208black | #fcfcfdwhite |
| Primary | #6901cbdarkviolet | #6901cbdarkviolet |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #63cb01lawngreen | #63cb01lawngreen |
| Secondary foreground | #000000black | #000000black |
| Muted | #f2f6eewhitesmoke | #0d1109black |
| Muted foreground | #637255dimgray | #9baa8ddarkseagreen |
| Accent | #63cb01lawngreen | #63cb01lawngreen |
| Accent foreground | #000000black | #000000black |
| Destructive | #b11c0bfirebrick | #dd230efirebrick |
| Destructive foreground | #fef2f1seashell | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #6901cbdarkviolet | #6901cbdarkviolet |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.61:1 | AAA |
| Text on card | 20.61:1 | AAA |
| Primary button | 8.49:1 | AAA |
| Secondary button | 10.06:1 | AAA |
| Muted text | 4.72:1 | AA |
| Accent | 10.06:1 | AAA |
| Destructive | 6.29:1 | AA |
| Text on background | 19.75:1 | AAA |
| Text on card | 19.75:1 | AAA |
| Primary button | 8.49:1 | AAA |
| Secondary button | 10.06:1 | AAA |
| Muted text | 7.76:1 | AAA |
| Accent | 10.06:1 | AAA |
| Destructive | 4.88:1 | AA |
Paste this into your globals.css to use Weekly in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.1 0.026 311.063);
--muted: oklch(0.968 0.011 129.246);
--muted-foreground: oklch(0.532 0.049 130.153);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.1 0.026 311.063);
--card: oklch(1 0 180);
--card-foreground: oklch(0.1 0.026 311.063);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.453 0.247 295.857);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.749 0.223 136.177);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.749 0.223 136.177);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.49 0.185 30.501);
--destructive-foreground: oklch(0.97 0.013 25.105);
--ring: oklch(0.453 0.247 295.857);
--chart-1: oklch(0.453 0.247 295.857);
--chart-2: oklch(0.749 0.223 136.177);
--chart-3: oklch(0.749 0.223 136.177);
--chart-4: oklch(0.791 0.236 136.242);
--chart-5: oklch(0.455 0.25 295.316);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.124 0.014 310.013);
--foreground: oklch(0.992 0.002 309.11);
--muted: oklch(0.168 0.017 130.161);
--muted-foreground: oklch(0.719 0.046 129.818);
--popover: oklch(0.124 0.014 310.013);
--popover-foreground: oklch(0.992 0.002 309.11);
--card: oklch(0.124 0.014 310.013);
--card-foreground: oklch(0.992 0.002 309.11);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.453 0.247 295.857);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.749 0.223 136.177);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.749 0.223 136.177);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.575 0.219 30.471);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.453 0.247 295.857);
--chart-1: oklch(0.453 0.247 295.857);
--chart-2: oklch(0.749 0.223 136.177);
--chart-3: oklch(0.749 0.223 136.177);
--chart-4: oklch(0.791 0.236 136.242);
--chart-5: oklch(0.455 0.25 295.316);
}