Weak is a shadcn/ui theme built around a vivid light teal primary color (#ddfefa) with vivid light red accents (#fedde0). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid light teal primary (#ddfefa) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #020908black | #fbfdfdwhite |
| Card | #ffffffwhite | #000000black |
| Card foreground | #020908black | #fbfdfdwhite |
| Popover | #ffffffwhite | #000000black |
| Popover foreground | #020908black | #fbfdfdwhite |
| Primary | #ddfefalightcyan | #ddfefalightcyan |
| Primary foreground | #02403adarkslategray | #02403adarkslategray |
| Secondary | #fedde0mistyrose | #fedde0mistyrose |
| Secondary foreground | #a20616darkred | #a20616darkred |
| Muted | #e3dedfgainsboro | #211c1dblack |
| Muted foreground | #594547darkslategray | #baa6a8darkgray |
| Accent | #fedde0mistyrose | #fedde0mistyrose |
| Accent foreground | #a20616darkred | #a20616darkred |
| Destructive | #61260amaroon | #de5617chocolate |
| Destructive foreground | #f6c0a7lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #ddfefalightcyan | #ddfefalightcyan |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.09:1 | AAA |
| Text on card | 20.09:1 | AAA |
| Primary button | 10.90:1 | AAA |
| Secondary button | 6.43:1 | AA |
| Muted text | 6.67:1 | AA |
| Accent | 6.43:1 | AA |
| Destructive | 7.29:1 | AAA |
| Text on background | 20.57:1 | AAA |
| Text on card | 20.57:1 | AAA |
| Primary button | 10.90:1 | AAA |
| Secondary button | 6.43:1 | AA |
| Muted text | 7.27:1 | AAA |
| Accent | 6.43:1 | AA |
| Destructive | 3.86:1 | AA Large |
Paste this into your globals.css to use Weak in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.127 0.016 189.211);
--muted: oklch(0.905 0.005 10.196);
--muted-foreground: oklch(0.412 0.028 11.66);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.127 0.016 189.211);
--card: oklch(1 0 180);
--card-foreground: oklch(0.127 0.016 189.211);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.972 0.035 189.254);
--primary-foreground: oklch(0.334 0.058 184.049);
--secondary: oklch(0.925 0.037 10.99);
--secondary-foreground: oklch(0.451 0.18 26);
--accent: oklch(0.925 0.037 10.99);
--accent-foreground: oklch(0.451 0.18 26);
--destructive: oklch(0.349 0.094 42.299);
--destructive-foreground: oklch(0.85 0.071 46.083);
--ring: oklch(0.972 0.035 189.254);
--chart-1: oklch(0.972 0.035 189.254);
--chart-2: oklch(0.925 0.037 10.99);
--chart-3: oklch(0.925 0.037 10.99);
--chart-4: oklch(0.957 0.021 10.571);
--chart-5: oklch(0.973 0.036 189.229);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.994 0.002 190.029);
--muted: oklch(0.233 0.007 10.73);
--muted-foreground: oklch(0.742 0.024 10.817);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.994 0.002 190.029);
--card: oklch(0 0 0);
--card-foreground: oklch(0.994 0.002 190.029);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.972 0.035 189.254);
--primary-foreground: oklch(0.334 0.058 184.049);
--secondary: oklch(0.925 0.037 10.99);
--secondary-foreground: oklch(0.451 0.18 26);
--accent: oklch(0.925 0.037 10.99);
--accent-foreground: oklch(0.451 0.18 26);
--destructive: oklch(0.624 0.182 40.92);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.972 0.035 189.254);
--chart-1: oklch(0.972 0.035 189.254);
--chart-2: oklch(0.925 0.037 10.99);
--chart-3: oklch(0.925 0.037 10.99);
--chart-4: oklch(0.957 0.021 10.571);
--chart-5: oklch(0.973 0.036 189.229);
}