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).
| Token | Light | Dark |
|---|---|---|
| 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 |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.52:1 | AAA |
| Text on card | 20.05:1 | AAA |
| Primary button | 8.08:1 | AAA |
| Secondary button | 8.09:1 | AAA |
| Muted text | 7.44:1 | AAA |
| Accent | 8.09:1 | AAA |
| Destructive | 6.67:1 | AA |
| Text on background | 20.14:1 | AAA |
| Text on card | 20.19:1 | AAA |
| Primary button | 8.08:1 | AAA |
| Secondary button | 8.09:1 | AAA |
| Muted text | 9.05:1 | AAA |
| Accent | 8.09:1 | AAA |
| Destructive | 3.96:1 | AA Large |
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);
}