Weak is a shadcn/ui theme built around a vivid deep cyan primary color (#020d12) with vivid deep green accents (#0d1202). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid deep cyan primary (#020d12) on a neutral background (#030607).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #030607black |
| Foreground | #051014black | #ffffffwhite |
| Card | #fcfcfcsnow | #04090bblack |
| Card foreground | #040d10black | #ffffffwhite |
| Popover | #fcfcfcsnow | #04090bblack |
| Popover foreground | #040d10black | #ffffffwhite |
| Primary | #020d12black | #020d12black |
| Primary foreground | #5dbfe9mediumturquoise | #5dbfe9mediumturquoise |
| Secondary | #12020dblack | #12020dblack |
| Secondary foreground | #e95dbfhotpink | #e95dbfhotpink |
| Muted | #e1d6ddgainsboro | #291e26black |
| Muted foreground | #664d5edimgray | #b299abdarkgray |
| Accent | #0d1202black | #0d1202black |
| Accent foreground | #92c51byellowgreen | #92c51byellowgreen |
| Destructive | #b81a05firebrick | #f9270borangered |
| Destructive foreground | #fff2f0seashell | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #020d12black | #020d12black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.25:1 | AAA |
| Text on card | 19.19:1 | AAA |
| Primary button | 9.42:1 | AAA |
| Secondary button | 6.50:1 | AA |
| Muted text | 5.32:1 | AA |
| Accent | 9.25:1 | AAA |
| Destructive | 6.03:1 | AA |
| Text on background | 20.32:1 | AAA |
| Text on card | 20.00:1 | AAA |
| Primary button | 9.42:1 | AAA |
| Secondary button | 6.50:1 | AA |
| Muted text | 6.12:1 | AA |
| Accent | 9.25:1 | AAA |
| Destructive | 3.95: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.163 0.019 225.517);
--muted: oklch(0.887 0.015 336.193);
--muted-foreground: oklch(0.452 0.043 337.558);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0.149 0.016 223.481);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.149 0.016 223.481);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.151 0.022 222.992);
--primary-foreground: oklch(0.762 0.109 228.734);
--secondary: oklch(0.134 0.041 338.792);
--secondary-foreground: oklch(0.688 0.202 341.105);
--accent: oklch(0.172 0.034 121.948);
--accent-foreground: oklch(0.761 0.188 126.49);
--destructive: oklch(0.501 0.193 30.832);
--destructive-foreground: oklch(0.97 0.014 26.541);
--ring: oklch(0.151 0.022 222.992);
--chart-1: oklch(0.151 0.022 222.992);
--chart-2: oklch(0.134 0.041 338.792);
--chart-3: oklch(0.172 0.034 121.948);
--chart-4: oklch(0.173 0.057 341.112);
--chart-5: oklch(0.151 0.022 222.914);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.117 0.01 220.276);
--foreground: oklch(1 0 180);
--muted: oklch(0.252 0.021 337.375);
--muted-foreground: oklch(0.711 0.038 336.846);
--popover: oklch(0.134 0.011 220.619);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.134 0.011 220.619);
--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.151 0.022 222.992);
--primary-foreground: oklch(0.762 0.109 228.734);
--secondary: oklch(0.134 0.041 338.792);
--secondary-foreground: oklch(0.688 0.202 341.105);
--accent: oklch(0.172 0.034 121.948);
--accent-foreground: oklch(0.761 0.188 126.49);
--destructive: oklch(0.628 0.241 30.756);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.151 0.022 222.992);
--chart-1: oklch(0.151 0.022 222.992);
--chart-2: oklch(0.134 0.041 338.792);
--chart-3: oklch(0.172 0.034 121.948);
--chart-4: oklch(0.173 0.057 341.112);
--chart-5: oklch(0.151 0.022 222.914);
}