Roadway for shadcn/ui

Roadway is a shadcn/ui theme built around a neutral gray primary color (#939594) with neutral gray accents (#939495). The light mode uses a neutral background (#fbfefd). Dark mode keeps the neutral gray primary (#939594) on a neutral background (#010403).

Color palette

TokenLightDark
Background
#fbfefdwhite
#010403black
Foreground
#010403black
#f9fbfbghostwhite
Card
#f6fdfcmintcream
#020807black
Card foreground
#000000black
#fcfdfdwhite
Popover
#f6fdfcmintcream
#020807black
Popover foreground
#000000black
#fcfdfdwhite
Primary
#939594lightslategray
#939594lightslategray
Primary foreground
#000000black
#000000black
Secondary
#939593lightslategray
#939593lightslategray
Secondary foreground
#000000black
#000000black
Muted
#d6e6dagainsboro
#19291dblack
Muted foreground
#4b6251darkslategray
#9db4a3darkgray
Accent
#939495lightslategray
#939495lightslategray
Accent foreground
#000000black
#000000black
Destructive
#b31005firebrick
#f92e1forangered
Destructive foreground
#feeceblinen
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#939594lightslategray
#939594lightslategray

Contrast

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

Light mode
Text on background20.30:1AAA
Text on card20.43:1AAA
Primary button6.96:1AA
Secondary button6.95:1AA
Muted text5.10:1AA
Accent6.93:1AA
Destructive6.14:1AA
Dark mode
Text on background19.82:1AAA
Text on card19.82:1AAA
Primary button6.96:1AA
Secondary button6.95:1AA
Muted text6.88:1AA
Accent6.93:1AA
Destructive3.85:1AA Large

CSS variables

Paste this into your globals.css to use Roadway in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.995 0.004 180.853);
  --foreground: oklch(0.099 0.012 180.948);
  --muted: oklch(0.909 0.023 154.072);
  --muted-foreground: oklch(0.472 0.038 153.01);
  --popover: oklch(0.989 0.008 180.743);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.989 0.008 180.743);
  --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.668 0.003 180.851);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.667 0.003 154.438);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.667 0.002 221.331);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.487 0.192 29.854);
  --destructive-foreground: oklch(0.958 0.02 22.455);
  --ring: oklch(0.668 0.003 180.851);
  --chart-1: oklch(0.668 0.003 180.851);
  --chart-2: oklch(0.667 0.003 154.438);
  --chart-3: oklch(0.667 0.002 221.331);
  --chart-4: oklch(0.692 0.003 154.448);
  --chart-5: oklch(0.673 0.01 180.525);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.098 0.011 180.949);
  --foreground: oklch(0.986 0.003 180.887);
  --muted: oklch(0.263 0.031 152.241);
  --muted-foreground: oklch(0.747 0.034 153.691);
  --popover: oklch(0.124 0.013 180.949);
  --popover-foreground: oklch(0.993 0.001 180.924);
  --card: oklch(0.124 0.013 180.949);
  --card-foreground: oklch(0.993 0.001 180.924);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.668 0.003 180.851);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.667 0.003 154.438);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.667 0.002 221.331);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.634 0.237 29.562);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.668 0.003 180.851);
  --chart-1: oklch(0.668 0.003 180.851);
  --chart-2: oklch(0.667 0.003 154.438);
  --chart-3: oklch(0.667 0.002 221.331);
  --chart-4: oklch(0.692 0.003 154.448);
  --chart-5: oklch(0.673 0.01 180.525);
}