Weakness is a shadcn/ui theme built around a light teal primary color (#c4e3e0) with light blue accents (#c4d6e3). The light mode uses a neutral background (#fbfefe). Dark mode keeps the light teal primary (#c4e3e0) on a neutral background (#010404).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfefewhite | #010404black |
| Foreground | #051513black | #ffffffwhite |
| Card | #fbfefewhite | #010404black |
| Card foreground | #051513black | #ffffffwhite |
| Popover | #fbfefewhite | #010404black |
| Popover foreground | #051513black | #ffffffwhite |
| Primary | #c4e3e0powderblue | #c4e3e0powderblue |
| Primary foreground | #264f4cdarkslategray | #264f4cdarkslategray |
| Secondary | #c4e3d1lightgrey | #c4e3d1lightgrey |
| Secondary foreground | #264f37darkslategray | #264f37darkslategray |
| Muted | #dce0degainsboro | #1f2321black |
| Muted foreground | #4e504fdarkslategray | #afb1b0darkgray |
| Accent | #c4d6e3lightgrey | #c4d6e3lightgrey |
| Accent foreground | #263e4fdarkslategray | #263e4fdarkslategray |
| Destructive | #a41f04firebrick | #f93710orangered |
| Destructive foreground | #fee2dcmistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #c4e3e0powderblue | #c4e3e0powderblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.41:1 | AAA |
| Text on card | 18.41:1 | AAA |
| Primary button | 6.68:1 | AA |
| Secondary button | 6.75:1 | AA |
| Muted text | 6.08:1 | AA |
| Accent | 7.48:1 | AAA |
| Destructive | 6.16:1 | AA |
| Text on background | 20.58:1 | AAA |
| Text on card | 20.58:1 | AAA |
| Primary button | 6.68:1 | AA |
| Secondary button | 6.75:1 | AA |
| Muted text | 7.36:1 | AAA |
| Accent | 7.48:1 | AAA |
| Destructive | 3.76:1 | AA Large |
Paste this into your globals.css to use Weakness in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.003 191.184);
--foreground: oklch(0.179 0.023 188.53);
--muted: oklch(0.902 0.005 160.875);
--muted-foreground: oklch(0.429 0.003 160.874);
--popover: oklch(0.994 0.003 191.184);
--popover-foreground: oklch(0.179 0.023 188.53);
--card: oklch(0.994 0.003 191.184);
--card-foreground: oklch(0.179 0.023 188.53);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.893 0.032 190.455);
--primary-foreground: oklch(0.397 0.047 188.391);
--secondary: oklch(0.888 0.04 159.907);
--secondary-foreground: oklch(0.391 0.062 156.37);
--accent: oklch(0.867 0.026 238.798);
--accent-foreground: oklch(0.352 0.042 240.581);
--destructive: oklch(0.466 0.172 32.36);
--destructive-foreground: oklch(0.934 0.032 31.146);
--ring: oklch(0.893 0.032 190.455);
--chart-1: oklch(0.893 0.032 190.455);
--chart-2: oklch(0.888 0.04 159.907);
--chart-3: oklch(0.867 0.026 238.798);
--chart-4: oklch(0.908 0.033 160.132);
--chart-5: oklch(0.895 0.035 190.391);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.099 0.01 190.428);
--foreground: oklch(1 0 180);
--muted: oklch(0.252 0.007 160.32);
--muted-foreground: oklch(0.758 0.002 160.945);
--popover: oklch(0.099 0.01 190.428);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.099 0.01 190.428);
--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.893 0.032 190.455);
--primary-foreground: oklch(0.397 0.047 188.391);
--secondary: oklch(0.888 0.04 159.907);
--secondary-foreground: oklch(0.391 0.062 156.37);
--accent: oklch(0.867 0.026 238.798);
--accent-foreground: oklch(0.352 0.042 240.581);
--destructive: oklch(0.639 0.232 32.382);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.893 0.032 190.455);
--chart-1: oklch(0.893 0.032 190.455);
--chart-2: oklch(0.888 0.04 159.907);
--chart-3: oklch(0.867 0.026 238.798);
--chart-4: oklch(0.908 0.033 160.132);
--chart-5: oklch(0.895 0.035 190.391);
}