Driveway for shadcn/ui

Driveway is a shadcn/ui theme built around a deep blue primary color (#0f2533) with neutral gray accents (#d5d7d8). The light mode uses a neutral background (#f8fafc). Dark mode keeps the deep blue primary (#0f2533) on a neutral background (#030608).

Color palette

TokenLightDark
Background
#f8fafcghostwhite
#030608black
Foreground
#040f16black
#fcfdfdwhite
Card
#f5f8fawhitesmoke
#04090bblack
Card foreground
#030c11black
#ffffffwhite
Popover
#f8fafcghostwhite
#030608black
Popover foreground
#040f16black
#fcfdfdwhite
Primary
#0f2533darkslategray
#0f2533darkslategray
Primary foreground
#94c3e0skyblue
#94c3e0skyblue
Secondary
#d5d7d8lightgrey
#181d20black
Secondary foreground
#3b3e40darkslategray
#abb7bfsilver
Muted
#e1e6ealavender
#151a1eblack
Muted foreground
#525557dimgray
#a8abaddarkgray
Accent
#d5d7d8lightgrey
#181d20black
Accent foreground
#3b3e40darkslategray
#abb7bfsilver
Destructive
#970a02darkred
#fc2d22orangered
Destructive foreground
#fecfcdpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#0f2533darkslategray
#0f2533darkslategray

Contrast

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

Light mode
Text on background18.53:1AAA
Text on card18.48:1AAA
Primary button8.32:1AAA
Secondary button7.43:1AAA
Muted text5.99:1AA
Accent7.43:1AAA
Destructive6.38:1AA
Dark mode
Text on background19.98:1AAA
Text on card20.05:1AAA
Primary button8.32:1AAA
Secondary button8.30:1AAA
Muted text7.55:1AAA
Accent8.30:1AAA
Destructive3.80:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.985 0.003 234.546);
  --foreground: oklch(0.16 0.024 234.183);
  --muted: oklch(0.923 0.007 234.613);
  --muted-foreground: oklch(0.446 0.005 234.671);
  --popover: oklch(0.985 0.003 234.546);
  --popover-foreground: oklch(0.16 0.024 234.183);
  --card: oklch(0.977 0.004 234.566);
  --card-foreground: oklch(0.146 0.02 231.508);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.255 0.039 238.175);
  --primary-foreground: oklch(0.794 0.064 235.931);
  --secondary: oklch(0.877 0.003 234.552);
  --secondary-foreground: oklch(0.361 0.005 234.716);
  --accent: oklch(0.877 0.003 234.552);
  --accent-foreground: oklch(0.361 0.005 234.716);
  --destructive: oklch(0.428 0.17 29.788);
  --destructive-foreground: oklch(0.895 0.053 21.726);
  --ring: oklch(0.255 0.039 238.175);
  --chart-1: oklch(0.255 0.039 238.175);
  --chart-2: oklch(0.877 0.003 234.552);
  --chart-3: oklch(0.877 0.003 234.552);
  --chart-4: oklch(0.9 0.002 234.542);
  --chart-5: oklch(0.256 0.041 238.468);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.115 0.01 228.615);
  --foreground: oklch(0.992 0.001 234.518);
  --muted: oklch(0.216 0.01 235.215);
  --muted-foreground: oklch(0.741 0.005 234.593);
  --popover: oklch(0.115 0.01 228.615);
  --popover-foreground: oklch(0.992 0.001 234.518);
  --card: oklch(0.132 0.012 229.009);
  --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.255 0.039 238.175);
  --primary-foreground: oklch(0.794 0.064 235.931);
  --secondary: oklch(0.227 0.009 235.141);
  --secondary-foreground: oklch(0.773 0.018 234.854);
  --accent: oklch(0.227 0.009 235.141);
  --accent-foreground: oklch(0.773 0.018 234.854);
  --destructive: oklch(0.638 0.239 29.077);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.255 0.039 238.175);
  --chart-1: oklch(0.255 0.039 238.175);
  --chart-2: oklch(0.227 0.009 235.141);
  --chart-3: oklch(0.227 0.009 235.141);
  --chart-4: oklch(0.259 0.011 235.194);
  --chart-5: oklch(0.256 0.041 238.468);
}