pw is a shadcn/ui theme built around a cyan primary color (#186e91) with muted light cyan accents (#b4c8cf). The light mode uses a neutral background (#f8fbfc). Dark mode keeps the cyan primary (#186e91) on a neutral background (#020608).
| Token | Light | Dark |
|---|---|---|
| Background | #f8fbfcghostwhite | #020608black |
| Foreground | #010304black | #fcfdfdwhite |
| Card | #f5f9faghostwhite | #030a0cblack |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #f5f9faghostwhite | #030a0cblack |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #186e91teal | #186e91teal |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #cdd6dalightgrey | #181a1bblack |
| Secondary foreground | #323e43darkslategray | #adb5b8darkgray |
| Muted | #d4e2e8gainsboro | #17262bdarkslategray |
| Muted foreground | #61686bdimgray | #949b9edarkgray |
| Accent | #b4c8cflightsteelblue | #2b363bdarkslategray |
| Accent foreground | #202d32darkslategray | #c4cfd4lightgrey |
| Destructive | #821e03maroon | #fb5628tomato |
| Destructive foreground | #fec8b9peachpuff | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #186e91teal | #186e91teal |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.83:1 | AAA |
| Text on card | 19.74:1 | AAA |
| Primary button | 5.68:1 | AA |
| Secondary button | 7.49:1 | AAA |
| Muted text | 4.28:1 | AA Large |
| Accent | 8.14:1 | AAA |
| Destructive | 6.63:1 | AA |
| Text on background | 19.92:1 | AAA |
| Text on card | 19.97:1 | AAA |
| Primary button | 5.68:1 | AA |
| Secondary button | 8.36:1 | AAA |
| Muted text | 5.53:1 | AA |
| Accent | 7.77:1 | AAA |
| Destructive | 6.43:1 | AA |
Paste this into your globals.css to use pw in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.985 0.003 223.161);
--foreground: oklch(0.094 0.01 217.723);
--muted: oklch(0.904 0.018 223.341);
--muted-foreground: oklch(0.513 0.01 223.344);
--popover: oklch(0.978 0.005 223.177);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.978 0.005 223.177);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.507 0.094 230.476);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.871 0.011 223.266);
--secondary-foreground: oklch(0.356 0.019 223.822);
--accent: oklch(0.819 0.024 223.459);
--accent-foreground: oklch(0.286 0.02 224.151);
--destructive: oklch(0.4 0.139 34.699);
--destructive-foreground: oklch(0.876 0.065 35.983);
--ring: oklch(0.507 0.094 230.476);
--chart-1: oklch(0.507 0.094 230.476);
--chart-2: oklch(0.871 0.011 223.266);
--chart-3: oklch(0.819 0.024 223.459);
--chart-4: oklch(0.894 0.009 223.237);
--chart-5: oklch(0.511 0.096 230.958);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.118 0.013 217.484);
--foreground: oklch(0.993 0.001 223.14);
--muted: oklch(0.256 0.023 224.638);
--muted-foreground: oklch(0.685 0.009 223.274);
--popover: oklch(0.136 0.015 218.485);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.136 0.015 218.485);
--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.507 0.094 230.476);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.217 0.004 223.35);
--secondary-foreground: oklch(0.767 0.01 223.261);
--accent: oklch(0.326 0.017 223.798);
--accent-foreground: oklch(0.848 0.013 223.297);
--destructive: oklch(0.671 0.209 35.586);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.507 0.094 230.476);
--chart-1: oklch(0.507 0.094 230.476);
--chart-2: oklch(0.217 0.004 223.35);
--chart-3: oklch(0.326 0.017 223.798);
--chart-4: oklch(0.25 0.006 223.372);
--chart-5: oklch(0.511 0.096 230.958);
}