Driveway for shadcn/ui

Driveway is a shadcn/ui theme built around a red primary color (#c16c80) with blue accents (#6c80c1). The light mode uses a neutral background (#fcf7f9). Dark mode keeps the red primary (#c16c80) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fcf7f9snow
#000000black
Foreground
#000000black
#ffffffwhite
Card
#fcf7f9snow
#000000black
Card foreground
#000000black
#ffffffwhite
Popover
#fcf7f9snow
#000000black
Popover foreground
#000000black
#ffffffwhite
Primary
#c16c80palevioletred
#c16c80palevioletred
Primary foreground
#000000black
#000000black
Secondary
#80c16cdarkseagreen
#80c16cdarkseagreen
Secondary foreground
#000000black
#000000black
Muted
#ddeed8gainsboro
#162711black
Muted foreground
#646963dimgray
#979c96darkgray
Accent
#6c80c1slateblue
#6c80c1slateblue
Accent foreground
#000000black
#000000black
Destructive
#d02f06firebrick
#f84012orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#c16c80palevioletred
#c16c80palevioletred

Contrast

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

Light mode
Text on background19.87:1AAA
Text on card19.87:1AAA
Primary button5.71:1AA
Secondary button9.78:1AAA
Muted text4.61:1AA
Accent5.47:1AA
Destructive5.14:1AA
Dark mode
Text on background21.00:1AAA
Text on card21.00:1AAA
Primary button5.71:1AA
Secondary button9.78:1AAA
Muted text5.64:1AA
Accent5.47:1AA
Destructive3.67: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.982 0.005 1.115);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.93 0.033 138.369);
  --muted-foreground: oklch(0.515 0.011 138.353);
  --popover: oklch(0.982 0.005 1.115);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.982 0.005 1.115);
  --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.632 0.111 5.789);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.747 0.135 138.684);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.611 0.103 270.269);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.559 0.202 33.267);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.632 0.111 5.789);
  --chart-1: oklch(0.632 0.111 5.789);
  --chart-2: oklch(0.747 0.135 138.684);
  --chart-3: oklch(0.611 0.103 270.269);
  --chart-4: oklch(0.765 0.126 138.622);
  --chart-5: oklch(0.63 0.119 6.194);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.25 0.044 138.668);
  --muted-foreground: oklch(0.687 0.01 138.346);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0 0 0);
  --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.632 0.111 5.789);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.747 0.135 138.684);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.611 0.103 270.269);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.643 0.226 33.71);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.632 0.111 5.789);
  --chart-1: oklch(0.632 0.111 5.789);
  --chart-2: oklch(0.747 0.135 138.684);
  --chart-3: oklch(0.611 0.103 270.269);
  --chart-4: oklch(0.765 0.126 138.622);
  --chart-5: oklch(0.63 0.119 6.194);
}