Alley for shadcn/ui

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).

Color palette

TokenLightDark
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

Contrast

WCAG 2 contrast ratios between each background and its foreground color.

Light mode
Text on background19.03:1AAA
Text on card18.62:1AAA
Primary button8.18:1AAA
Secondary button7.99:1AAA
Muted text7.71:1AAA
Accent7.78:1AAA
Destructive4.68:1AA
Dark mode
Text on background20.05:1AAA
Text on card19.82:1AAA
Primary button8.18:1AAA
Secondary button7.59:1AAA
Muted text9.21:1AAA
Accent8.00:1AAA
Destructive4.18:1AA Large

CSS variables

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);
}