Weak is a shadcn/ui theme built around a pink primary color (#7a2953) with muted light pink accents (#e8dee3). The light mode uses a neutral background (#ffffff). Dark mode keeps the pink primary (#7a2953) on a neutral background (#080205).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #080205black |
| Foreground | #040103black | #fdfcfcsnow |
| Card | #ffffffwhite | #080205black |
| Card foreground | #040103black | #fdfcfcsnow |
| Popover | #ffffffwhite | #080205black |
| Popover foreground | #040103black | #fdfcfcsnow |
| Primary | #7a2953brown | #7a2953brown |
| Primary foreground | #f5e0ebmistyrose | #f5e0ebmistyrose |
| Secondary | #e8dee3gainsboro | #353133darkslategray |
| Secondary foreground | #573d4adarkslategray | #cecacclightgrey |
| Muted | #f1eef0whitesmoke | #110e0fblack |
| Muted foreground | #616161dimgray | #9e9e9edarkgray |
| Accent | #e8dee3gainsboro | #353133darkslategray |
| Accent foreground | #573d4adarkslategray | #cecacclightgrey |
| Destructive | #d44511chocolate | #ed5821chocolate |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #7a2953brown | #7a2953brown |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.77:1 | AAA |
| Text on card | 20.77:1 | AAA |
| Primary button | 7.36:1 | AAA |
| Secondary button | 7.36:1 | AAA |
| Muted text | 5.38:1 | AA |
| Accent | 7.36:1 | AAA |
| Destructive | 4.49:1 | AA Large |
| Text on background | 20.06:1 | AAA |
| Text on card | 20.06:1 | AAA |
| Primary button | 7.36:1 | AAA |
| Secondary button | 7.87:1 | AAA |
| Muted text | 7.17:1 | AAA |
| Accent | 7.87:1 | AAA |
| Destructive | 3.49: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.083 0.019 344.126);
--muted: oklch(0.952 0.004 344.391);
--muted-foreground: oklch(0.492 0 180);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.083 0.019 344.126);
--card: oklch(1 0 180);
--card-foreground: oklch(0.083 0.019 344.126);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.415 0.122 351.752);
--primary-foreground: oklch(0.927 0.026 344.995);
--secondary: oklch(0.91 0.012 344.628);
--secondary-foreground: oklch(0.394 0.04 346.749);
--accent: oklch(0.91 0.012 344.628);
--accent-foreground: oklch(0.394 0.04 346.749);
--destructive: oklch(0.589 0.188 37.283);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.415 0.122 351.752);
--chart-1: oklch(0.415 0.122 351.752);
--chart-2: oklch(0.91 0.012 344.628);
--chart-3: oklch(0.91 0.012 344.628);
--chart-4: oklch(0.935 0.009 344.527);
--chart-5: oklch(0.417 0.128 352.226);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.106 0.021 344.143);
--foreground: oklch(0.992 0.001 344.319);
--muted: oklch(0.167 0.006 345.187);
--muted-foreground: oklch(0.7 0 180);
--popover: oklch(0.106 0.021 344.143);
--popover-foreground: oklch(0.992 0.001 344.319);
--card: oklch(0.106 0.021 344.143);
--card-foreground: oklch(0.992 0.001 344.319);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.415 0.122 351.752);
--primary-foreground: oklch(0.927 0.026 344.995);
--secondary: oklch(0.319 0.005 344.693);
--secondary-foreground: oklch(0.843 0.004 344.408);
--accent: oklch(0.319 0.005 344.693);
--accent-foreground: oklch(0.843 0.004 344.408);
--destructive: oklch(0.651 0.195 38.281);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.415 0.122 351.752);
--chart-1: oklch(0.415 0.122 351.752);
--chart-2: oklch(0.319 0.005 344.693);
--chart-3: oklch(0.319 0.005 344.693);
--chart-4: oklch(0.348 0.006 344.705);
--chart-5: oklch(0.417 0.128 352.226);
}