Weak is a shadcn/ui theme built around an indigo primary color (#9699df) with green accents (#99df96). The light mode uses a neutral background (#fbfbfe). Dark mode keeps the indigo primary (#9699df) on an indigo-tinted background (#05050a).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfbfeghostwhite | #05050ablack |
| Foreground | #03040cblack | #f8f8fcghostwhite |
| Card | #fbfbfeghostwhite | #05050ablack |
| Card foreground | #03040cblack | #f8f8fcghostwhite |
| Popover | #fbfbfeghostwhite | #05050ablack |
| Popover foreground | #03040cblack | #f8f8fcghostwhite |
| Primary | #9699dfmediumpurple | #9699dfmediumpurple |
| Primary foreground | #101133black | #101133black |
| Secondary | #df9699darksalmon | #df9699darksalmon |
| Secondary foreground | #331011black | #331011black |
| Muted | #eeececlinen | #131111black |
| Muted foreground | #715b5cdimgray | #a48e8frosybrown |
| Accent | #99df96lightgreen | #99df96lightgreen |
| Accent foreground | #113310darkgreen | #113310darkgreen |
| Destructive | #c13e06firebrick | #e94b07orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #9699dfmediumpurple | #9699dfmediumpurple |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.82:1 | AAA |
| Text on card | 19.82:1 | AAA |
| Primary button | 6.89:1 | AA |
| Secondary button | 7.30:1 | AAA |
| Muted text | 5.33:1 | AA |
| Accent | 8.84:1 | AAA |
| Destructive | 5.30:1 | AA |
| Text on background | 19.19:1 | AAA |
| Text on card | 19.19:1 | AAA |
| Primary button | 6.89:1 | AA |
| Secondary button | 7.30:1 | AAA |
| Muted text | 6.13:1 | AA |
| Accent | 8.84:1 | AAA |
| Destructive | 3.85:1 | AA Large |
Paste this into your globals.css to use Weak in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.989 0.004 283.907);
--foreground: oklch(0.11 0.024 278.216);
--muted: oklch(0.945 0.002 13.648);
--muted-foreground: oklch(0.493 0.029 14.823);
--popover: oklch(0.989 0.004 283.907);
--popover-foreground: oklch(0.11 0.024 278.216);
--card: oklch(0.989 0.004 283.907);
--card-foreground: oklch(0.11 0.024 278.216);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.708 0.101 281.164);
--primary-foreground: oklch(0.201 0.065 276.587);
--secondary: oklch(0.745 0.088 16.123);
--secondary-foreground: oklch(0.229 0.057 19.754);
--accent: oklch(0.838 0.122 143.237);
--accent-foreground: oklch(0.285 0.071 142.584);
--destructive: oklch(0.548 0.176 38.174);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.708 0.101 281.164);
--chart-1: oklch(0.708 0.101 281.164);
--chart-2: oklch(0.745 0.088 16.123);
--chart-3: oklch(0.838 0.122 143.237);
--chart-4: oklch(0.773 0.077 15.701);
--chart-5: oklch(0.704 0.107 280.961);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.119 0.014 280.974);
--foreground: oklch(0.981 0.004 283.899);
--muted: oklch(0.18 0.003 13.934);
--muted-foreground: oklch(0.667 0.027 14.425);
--popover: oklch(0.119 0.014 280.974);
--popover-foreground: oklch(0.981 0.004 283.899);
--card: oklch(0.119 0.014 280.974);
--card-foreground: oklch(0.981 0.004 283.899);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.708 0.101 281.164);
--primary-foreground: oklch(0.201 0.065 276.587);
--secondary: oklch(0.745 0.088 16.123);
--secondary-foreground: oklch(0.229 0.057 19.754);
--accent: oklch(0.838 0.122 143.237);
--accent-foreground: oklch(0.285 0.071 142.584);
--destructive: oklch(0.628 0.204 37.825);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.708 0.101 281.164);
--chart-1: oklch(0.708 0.101 281.164);
--chart-2: oklch(0.745 0.088 16.123);
--chart-3: oklch(0.838 0.122 143.237);
--chart-4: oklch(0.773 0.077 15.701);
--chart-5: oklch(0.704 0.107 280.961);
}