Weak is a shadcn/ui theme built around a muted teal primary color (#5e877a) with muted yellow accents (#877a5e). The light mode uses a neutral background (#f7fdfb). Dark mode keeps the muted teal primary (#5e877a) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #f7fdfbmintcream | #000000black |
| Foreground | #05100cblack | #fcfdfdwhite |
| Card | #f7fdfbmintcream | #000000black |
| Card foreground | #05100cblack | #fcfdfdwhite |
| Popover | #f7fdfbmintcream | #000000black |
| Popover foreground | #05100cblack | #fcfdfdwhite |
| Primary | #5e877aslategray | #5e877aslategray |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #7a5e87gray | #7a5e87gray |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #e6e4e7gainsboro | #1a181bblack |
| Muted foreground | #574c5ddimgray | #aea2b3darkgray |
| Accent | #877a5egray | #877a5egray |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #8a2e0fsaddlebrown | #e24a18chocolate |
| Destructive foreground | #fadbd1bisque | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #5e877aslategray | #5e877aslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.75:1 | AAA |
| Text on card | 18.75:1 | AAA |
| Primary button | 4.00:1 | AA Large |
| Secondary button | 5.54:1 | AA |
| Muted text | 6.39:1 | AA |
| Accent | 4.20:1 | AA Large |
| Destructive | 6.50:1 | AA |
| Text on background | 20.60:1 | AAA |
| Text on card | 20.60:1 | AAA |
| Primary button | 4.00:1 | AA Large |
| Secondary button | 5.54:1 | AA |
| Muted text | 7.24:1 | AAA |
| Accent | 4.20:1 | AA Large |
| Destructive | 4.00:1 | AA Large |
Paste this into your globals.css to use Weak in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.988 0.006 175.427);
--foreground: oklch(0.158 0.019 173.301);
--muted: oklch(0.921 0.005 315.406);
--muted-foreground: oklch(0.433 0.031 315.128);
--popover: oklch(0.988 0.006 175.427);
--popover-foreground: oklch(0.158 0.019 173.301);
--card: oklch(0.988 0.006 175.427);
--card-foreground: oklch(0.158 0.019 173.301);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.59 0.05 172.827);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.526 0.072 314.841);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.585 0.044 85.998);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.434 0.133 37.252);
--destructive-foreground: oklch(0.915 0.037 39.311);
--ring: oklch(0.59 0.05 172.827);
--chart-1: oklch(0.59 0.05 172.827);
--chart-2: oklch(0.526 0.072 314.841);
--chart-3: oklch(0.585 0.044 85.998);
--chart-4: oklch(0.551 0.075 314.836);
--chart-5: oklch(0.597 0.058 172.37);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.993 0.001 175.583);
--muted: oklch(0.213 0.007 315.294);
--muted-foreground: oklch(0.729 0.027 315.271);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.993 0.001 175.583);
--card: oklch(0 0 0);
--card-foreground: oklch(0.993 0.001 175.583);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.59 0.05 172.827);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.526 0.072 314.841);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.585 0.044 85.998);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.618 0.197 36.741);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.59 0.05 172.827);
--chart-1: oklch(0.59 0.05 172.827);
--chart-2: oklch(0.526 0.072 314.841);
--chart-3: oklch(0.585 0.044 85.998);
--chart-4: oklch(0.551 0.075 314.836);
--chart-5: oklch(0.597 0.058 172.37);
}