Booking for shadcn/ui

Booking is a shadcn/ui theme built around a neutral gray primary color (#2d2b2a) with neutral gray accents (#2a2c2d). The light mode uses a neutral background (#fefcfb). Dark mode keeps the neutral gray primary (#2d2b2a) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fefcfbsnow
#000000black
Foreground
#000000black
#fbfaf9snow
Card
#fcf9f8snow
#030303black
Card foreground
#000000black
#fdfcfcsnow
Popover
#fefcfbsnow
#000000black
Popover foreground
#000000black
#fbfaf9snow
Primary
#2d2b2adarkslategray
#2d2b2adarkslategray
Primary foreground
#c7c3c2silver
#c7c3c2silver
Secondary
#2a2c2ddarkslategray
#2a2c2ddarkslategray
Secondary foreground
#c2c5c7silver
#c2c5c7silver
Muted
#eaf2f5whitesmoke
#0a1115black
Muted foreground
#4d4d4ddarkslategray
#b3b3b3darkgray
Accent
#2a2c2ddarkslategray
#2a2c2ddarkslategray
Accent foreground
#c2c5c7silver
#c2c5c7silver
Destructive
#972311brown
#e8452cchocolate
Destructive foreground
#fbe3dfmistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#2d2b2adarkslategray
#2d2b2adarkslategray

Contrast

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

Light mode
Text on background20.52:1AAA
Text on card20.05:1AAA
Primary button8.08:1AAA
Secondary button8.09:1AAA
Muted text7.44:1AAA
Accent8.09:1AAA
Destructive6.67:1AA
Dark mode
Text on background20.14:1AAA
Text on card20.19:1AAA
Primary button8.08:1AAA
Secondary button8.09:1AAA
Muted text9.05:1AAA
Accent8.09:1AAA
Destructive3.96:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.992 0.002 46.835);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.956 0.01 226.981);
  --muted-foreground: oklch(0.418 0 173.29);
  --popover: oklch(0.992 0.002 46.835);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.984 0.004 46.812);
  --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.29 0.004 46.704);
  --primary-foreground: oklch(0.821 0.004 46.799);
  --secondary: oklch(0.291 0.004 227.026);
  --secondary-foreground: oklch(0.822 0.004 226.918);
  --accent: oklch(0.291 0.004 227.026);
  --accent-foreground: oklch(0.822 0.004 226.918);
  --destructive: oklch(0.446 0.155 31.647);
  --destructive-foreground: oklch(0.934 0.028 28.111);
  --ring: oklch(0.29 0.004 46.704);
  --chart-1: oklch(0.29 0.004 46.704);
  --chart-2: oklch(0.291 0.004 227.026);
  --chart-3: oklch(0.291 0.004 227.026);
  --chart-4: oklch(0.322 0.005 227.033);
  --chart-5: oklch(0.29 0.007 46.597);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.985 0.001 46.844);
  --muted: oklch(0.173 0.014 228.257);
  --muted-foreground: oklch(0.765 0 172.405);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.985 0.001 46.844);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(0.992 0.001 46.851);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.29 0.004 46.704);
  --primary-foreground: oklch(0.821 0.004 46.799);
  --secondary: oklch(0.291 0.004 227.026);
  --secondary-foreground: oklch(0.822 0.004 226.918);
  --accent: oklch(0.291 0.004 227.026);
  --accent-foreground: oklch(0.822 0.004 226.918);
  --destructive: oklch(0.623 0.203 31.629);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.29 0.004 46.704);
  --chart-1: oklch(0.29 0.004 46.704);
  --chart-2: oklch(0.291 0.004 227.026);
  --chart-3: oklch(0.291 0.004 227.026);
  --chart-4: oklch(0.322 0.005 227.033);
  --chart-5: oklch(0.29 0.007 46.597);
}