Weak is a shadcn/ui theme built around a muted teal primary color (#455e5f) with muted teal accents (#aababb). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted teal primary (#455e5f) on a neutral background (#030707).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #030707black |
| Foreground | #010404black | #ffffffwhite |
| Card | #ffffffwhite | #030707black |
| Card foreground | #010404black | #ffffffwhite |
| Popover | #ffffffwhite | #030707black |
| Popover foreground | #010404black | #ffffffwhite |
| Primary | #455e5fdarkslategray | #455e5fdarkslategray |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #cacecelightgrey | #242424darkslategray |
| Secondary foreground | #313535darkslategray | #bdbdbdsilver |
| Muted | #edf3f3whitesmoke | #120c0cblack |
| Muted foreground | #494b4bdarkslategray | #b6b4b4silver |
| Accent | #aababbsilver | #352c2cdarkslategray |
| Accent foreground | #171c1cblack | #cec5c5silver |
| Destructive | #c92508firebrick | #f64728orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #455e5fdarkslategray | #455e5fdarkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.57:1 | AAA |
| Text on card | 20.57:1 | AAA |
| Primary button | 6.98:1 | AA |
| Secondary button | 7.81:1 | AAA |
| Muted text | 7.79:1 | AAA |
| Accent | 8.59:1 | AAA |
| Destructive | 5.60:1 | AA |
| Text on background | 20.21:1 | AAA |
| Text on card | 20.21:1 | AAA |
| Primary button | 6.98:1 | AA |
| Secondary button | 8.29:1 | AAA |
| Muted text | 9.37:1 | AAA |
| Accent | 8.01:1 | AAA |
| Destructive | 3.59: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.1 0.012 197.455);
--muted: oklch(0.958 0.006 199.516);
--muted-foreground: oklch(0.41 0.002 199.543);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.1 0.012 197.455);
--card: oklch(1 0 180);
--card-foreground: oklch(0.1 0.012 197.455);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.461 0.03 198.815);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.848 0.004 199.536);
--secondary-foreground: oklch(0.325 0.005 199.381);
--accent: oklch(0.778 0.018 199.3);
--accent-foreground: oklch(0.221 0.008 199.135);
--destructive: oklch(0.54 0.201 31.727);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.461 0.03 198.815);
--chart-1: oklch(0.461 0.03 198.815);
--chart-2: oklch(0.848 0.004 199.536);
--chart-3: oklch(0.778 0.018 199.3);
--chart-4: oklch(0.871 0.004 199.548);
--chart-5: oklch(0.466 0.035 198.717);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.123 0.011 197.921);
--foreground: oklch(1 0 180);
--muted: oklch(0.164 0.011 18.295);
--muted-foreground: oklch(0.772 0.002 17.194);
--popover: oklch(0.123 0.011 197.921);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.123 0.011 197.921);
--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.461 0.03 198.815);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.259 0 167.471);
--secondary-foreground: oklch(0.797 0 180);
--accent: oklch(0.303 0.013 17.882);
--accent-foreground: oklch(0.83 0.011 17.374);
--destructive: oklch(0.648 0.216 32.354);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.461 0.03 198.815);
--chart-1: oklch(0.461 0.03 198.815);
--chart-2: oklch(0.259 0 167.471);
--chart-3: oklch(0.303 0.013 17.882);
--chart-4: oklch(0.29 0 180);
--chart-5: oklch(0.466 0.035 198.717);
}