Hallway is a shadcn/ui theme built around a deep green primary color (#17440d) with deep green accents (#0d4420). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep green primary (#17440d) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #000000black | #ffffffwhite |
| Card | #fcfcfcsnow | #030303black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #ffffffwhite | #000000black |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #17440ddarkgreen | #17440ddarkgreen |
| Primary foreground | #5dda44limegreen | #5dda44limegreen |
| Secondary | #32440ddarkgreen | #32440ddarkgreen |
| Secondary foreground | #a8da44yellowgreen | #a8da44yellowgreen |
| Muted | #dde7cbgainsboro | #2b3418darkslategray |
| Muted foreground | #484a45darkslategray | #b8bab5silver |
| Accent | #0d4420darkgreen | #0d4420darkgreen |
| Accent foreground | #44da76mediumseagreen | #44da76mediumseagreen |
| Destructive | #772204maroon | #f9652ftomato |
| Destructive foreground | #fdc4b0lightpink | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #17440ddarkgreen | #17440ddarkgreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 21.00:1 | AAA |
| Text on card | 20.54:1 | AAA |
| Primary button | 6.18:1 | AA |
| Secondary button | 6.48:1 | AA |
| Muted text | 6.99:1 | AA |
| Accent | 6.17:1 | AA |
| Destructive | 6.79:1 | AA |
| Text on background | 21.00:1 | AAA |
| Text on card | 20.67:1 | AAA |
| Primary button | 6.18:1 | AA |
| Secondary button | 6.48:1 | AA |
| Muted text | 6.64:1 | AA |
| Accent | 6.17:1 | AA |
| Destructive | 6.91:1 | AA |
Paste this into your globals.css to use Hallway in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0 0 0);
--muted: oklch(0.913 0.039 122.187);
--muted-foreground: oklch(0.405 0.007 121.783);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.992 0 161.565);
--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.343 0.097 140.645);
--primary-foreground: oklch(0.788 0.218 140.603);
--secondary: oklch(0.359 0.081 126.375);
--secondary-foreground: oklch(0.825 0.182 126.201);
--accent: oklch(0.342 0.084 150.096);
--accent-foreground: oklch(0.787 0.188 150.342);
--destructive: oklch(0.384 0.123 37.501);
--destructive-foreground: oklch(0.866 0.071 40.899);
--ring: oklch(0.343 0.097 140.645);
--chart-1: oklch(0.343 0.097 140.645);
--chart-2: oklch(0.359 0.081 126.375);
--chart-3: oklch(0.342 0.084 150.096);
--chart-4: oklch(0.403 0.092 126.565);
--chart-5: oklch(0.346 0.1 140.696);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(1 0 180);
--muted: oklch(0.31 0.048 124.284);
--muted-foreground: oklch(0.786 0.006 121.619);
--popover: oklch(0 0 0);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.092 0 180);
--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.343 0.097 140.645);
--primary-foreground: oklch(0.788 0.218 140.603);
--secondary: oklch(0.359 0.081 126.375);
--secondary-foreground: oklch(0.825 0.182 126.201);
--accent: oklch(0.342 0.084 150.096);
--accent-foreground: oklch(0.787 0.188 150.342);
--destructive: oklch(0.687 0.193 38.978);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.343 0.097 140.645);
--chart-1: oklch(0.343 0.097 140.645);
--chart-2: oklch(0.359 0.081 126.375);
--chart-3: oklch(0.342 0.084 150.096);
--chart-4: oklch(0.403 0.092 126.565);
--chart-5: oklch(0.346 0.1 140.696);
}