Pathway is a shadcn/ui theme built around a near-black primary color (#01000a) with near-black accents (#000a01). The light mode uses a neutral background (#f7f7fd). Dark mode keeps the near-black primary (#01000a) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #f7f7fdghostwhite | #000000black |
| Foreground | #010104black | #ffffffwhite |
| Card | #f7f7fdghostwhite | #000000black |
| Card foreground | #010104black | #ffffffwhite |
| Popover | #f7f7fdghostwhite | #000000black |
| Popover foreground | #010104black | #ffffffwhite |
| Primary | #01000ablack | #01000ablack |
| Primary foreground | #ada7fblightsteelblue | #ada7fblightsteelblue |
| Secondary | #0a0100black | #0a0100black |
| Secondary foreground | #f65246tomato | #f65246tomato |
| Muted | #e9e7e7linen | #181616black |
| Muted foreground | #514d4ddarkslategray | #b2aeaedarkgray |
| Accent | #000a01black | #000a01black |
| Accent foreground | #0acd17limegreen | #0acd17limegreen |
| Destructive | #990f0bdarkred | #f13832crimson |
| Destructive foreground | #fcdad9mistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #01000ablack | #01000ablack |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.50:1 | AAA |
| Text on card | 19.50:1 | AAA |
| Primary button | 9.62:1 | AAA |
| Secondary button | 6.10:1 | AA |
| Muted text | 6.77:1 | AA |
| Accent | 9.35:1 | AAA |
| Destructive | 6.67:1 | AA |
| Text on background | 21.00:1 | AAA |
| Text on card | 21.00:1 | AAA |
| Primary button | 9.62:1 | AAA |
| Secondary button | 6.10:1 | AA |
| Muted text | 8.20:1 | AAA |
| Accent | 9.35:1 | AAA |
| Destructive | 3.92:1 | AA Large |
Paste this into your globals.css to use Pathway in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.977 0.008 289.317);
--foreground: oklch(0.075 0.018 285.811);
--muted: oklch(0.93 0.002 22.242);
--muted-foreground: oklch(0.424 0.006 22.374);
--popover: oklch(0.977 0.008 289.317);
--popover-foreground: oklch(0.075 0.018 285.811);
--card: oklch(0.977 0.008 289.317);
--card-foreground: oklch(0.075 0.018 285.811);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.077 0.038 280.077);
--primary-foreground: oklch(0.766 0.118 286.294);
--secondary: oklch(0.099 0.029 33.177);
--secondary-foreground: oklch(0.663 0.203 28.001);
--accent: oklch(0.126 0.036 145.24);
--accent-foreground: oklch(0.735 0.245 142.856);
--destructive: oklch(0.435 0.169 28.989);
--destructive-foreground: oklch(0.917 0.038 20.224);
--ring: oklch(0.077 0.038 280.077);
--chart-1: oklch(0.077 0.038 280.077);
--chart-2: oklch(0.099 0.029 33.177);
--chart-3: oklch(0.126 0.036 145.24);
--chart-4: oklch(0.143 0.045 32.151);
--chart-5: oklch(0.075 0.04 279.046);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(1 0 180);
--muted: oklch(0.202 0.003 22.411);
--muted-foreground: oklch(0.754 0.005 22.29);
--popover: oklch(0 0 0);
--popover-foreground: oklch(1 0 180);
--card: oklch(0 0 0);
--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.077 0.038 280.077);
--primary-foreground: oklch(0.766 0.118 286.294);
--secondary: oklch(0.099 0.029 33.177);
--secondary-foreground: oklch(0.663 0.203 28.001);
--accent: oklch(0.126 0.036 145.24);
--accent-foreground: oklch(0.735 0.245 142.856);
--destructive: oklch(0.628 0.221 27.765);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.077 0.038 280.077);
--chart-1: oklch(0.077 0.038 280.077);
--chart-2: oklch(0.099 0.029 33.177);
--chart-3: oklch(0.126 0.036 145.24);
--chart-4: oklch(0.143 0.045 32.151);
--chart-5: oklch(0.075 0.04 279.046);
}