Alley is a shadcn/ui theme built around a muted deep blue primary color (#2c2f4e) with muted blue accents (#acafcd). The light mode uses a neutral background (#f8f8fc). Dark mode keeps the muted deep blue primary (#2c2f4e) on a blue-tinted background (#07070e).
| Token | Light | Dark |
|---|---|---|
| Background | #f8f8fcghostwhite | #07070eblack |
| Foreground | #040615black | #ffffffwhite |
| Card | #f4f5fbwhitesmoke | #080911black |
| Card foreground | #040511black | #ffffffwhite |
| Popover | #f8f8fcghostwhite | #07070eblack |
| Popover foreground | #040615black | #ffffffwhite |
| Primary | #2c2f4edarkslategray | #2c2f4edarkslategray |
| Primary foreground | #cbcde2lightgrey | #cbcde2lightgrey |
| Secondary | #c7c8d6lightgrey | #121217black |
| Secondary foreground | #2d2f3edarkslategray | #a2a4b9darkgray |
| Muted | #dbdcebgainsboro | #141624black |
| Muted foreground | #3e3f47darkslategray | #b8b9c1silver |
| Accent | #acafcdlightsteelblue | #222434darkslategray |
| Accent foreground | #1b1d2dblack | #b8bad1lightsteelblue |
| Destructive | #ce4412chocolate | #dd4913chocolate |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #2c2f4edarkslategray | #2c2f4edarkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.03:1 | AAA |
| Text on card | 18.62:1 | AAA |
| Primary button | 8.18:1 | AAA |
| Secondary button | 7.99:1 | AAA |
| Muted text | 7.71:1 | AAA |
| Accent | 7.78:1 | AAA |
| Destructive | 4.68:1 | AA |
| Text on background | 20.05:1 | AAA |
| Text on card | 19.82:1 | AAA |
| Primary button | 8.18:1 | AAA |
| Secondary button | 7.59:1 | AAA |
| Muted text | 9.21:1 | AAA |
| Accent | 8.00:1 | AAA |
| Destructive | 4.18:1 | AA Large |
Paste this into your globals.css to use Alley in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.98 0.005 281.203);
--foreground: oklch(0.131 0.034 274.034);
--muted: oklch(0.899 0.02 280.92);
--muted-foreground: oklch(0.368 0.014 280.634);
--popover: oklch(0.98 0.005 281.203);
--popover-foreground: oklch(0.131 0.034 274.034);
--card: oklch(0.971 0.008 281.158);
--card-foreground: oklch(0.121 0.03 273.913);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.319 0.055 277.957);
--primary-foreground: oklch(0.853 0.029 280.728);
--secondary: oklch(0.837 0.019 280.904);
--secondary-foreground: oklch(0.309 0.028 279.687);
--accent: oklch(0.763 0.043 280.326);
--accent-foreground: oklch(0.235 0.031 278.836);
--destructive: oklch(0.578 0.183 37.436);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.319 0.055 277.957);
--chart-1: oklch(0.319 0.055 277.957);
--chart-2: oklch(0.837 0.019 280.904);
--chart-3: oklch(0.763 0.043 280.326);
--chart-4: oklch(0.863 0.016 280.979);
--chart-5: oklch(0.315 0.061 277.477);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.134 0.014 278.451);
--foreground: oklch(1 0 180);
--muted: oklch(0.204 0.029 278.594);
--muted-foreground: oklch(0.788 0.012 281.043);
--popover: oklch(0.134 0.014 278.451);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.144 0.017 278.768);
--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.319 0.055 277.957);
--primary-foreground: oklch(0.853 0.029 280.728);
--secondary: oklch(0.184 0.01 280.31);
--secondary-foreground: oklch(0.724 0.03 280.594);
--accent: oklch(0.266 0.031 279.186);
--accent-foreground: oklch(0.796 0.031 280.624);
--destructive: oklch(0.607 0.193 37.36);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.319 0.055 277.957);
--chart-1: oklch(0.319 0.055 277.957);
--chart-2: oklch(0.184 0.01 280.31);
--chart-3: oklch(0.266 0.031 279.186);
--chart-4: oklch(0.215 0.014 280.169);
--chart-5: oklch(0.315 0.061 277.477);
}