Hospitality is a shadcn/ui theme built around a near-white primary color (#ffffff) with near-white accents (#ffffff). The light mode uses a neutral background (#fdf7f7). Dark mode keeps the near-white primary (#ffffff) on a red-tinted background (#0a0505).
| Token | Light | Dark |
|---|---|---|
| Background | #fdf7f7snow | #0a0505black |
| Foreground | #0d0202black | #ffffffwhite |
| Card | #fdf7f7snow | #0a0505black |
| Card foreground | #0d0202black | #ffffffwhite |
| Popover | #fdf7f7snow | #0a0505black |
| Popover foreground | #0d0202black | #ffffffwhite |
| Primary | #ffffffwhite | #ffffffwhite |
| Primary foreground | #333333darkslategray | #333333darkslategray |
| Secondary | #ffffffwhite | #ffffffwhite |
| Secondary foreground | #333333darkslategray | #333333darkslategray |
| Muted | #f4ebeblinen | #140b0bblack |
| Muted foreground | #594f4fdimgray | #b0a6a6darkgray |
| Accent | #ffffffwhite | #ffffffwhite |
| Accent foreground | #333333darkslategray | #333333darkslategray |
| Destructive | #78260dsaddlebrown | #d94417chocolate |
| Destructive foreground | #f8ccbepeachpuff | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #ffffffwhite | #ffffffwhite |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.27:1 | AAA |
| Text on card | 19.27:1 | AAA |
| Primary button | 12.63:1 | AAA |
| Secondary button | 12.63:1 | AAA |
| Muted text | 6.75:1 | AA |
| Accent | 12.63:1 | AAA |
| Destructive | 6.91:1 | AA |
| Text on background | 20.24:1 | AAA |
| Text on card | 20.24:1 | AAA |
| Primary button | 12.63:1 | AAA |
| Secondary button | 12.63:1 | AAA |
| Muted text | 8.19:1 | AAA |
| Accent | 12.63:1 | AAA |
| Destructive | 4.38:1 | AA Large |
Paste this into your globals.css to use Hospitality in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.98 0.007 17.272);
--foreground: oklch(0.116 0.027 22.136);
--muted: oklch(0.947 0.01 17.338);
--muted-foreground: oklch(0.438 0.013 17.677);
--popover: oklch(0.98 0.007 17.272);
--popover-foreground: oklch(0.116 0.027 22.136);
--card: oklch(0.98 0.007 17.272);
--card-foreground: oklch(0.116 0.027 22.136);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(1 0 180);
--primary-foreground: oklch(0.321 0 180);
--secondary: oklch(1 0 180);
--secondary-foreground: oklch(0.321 0 180);
--accent: oklch(1 0 180);
--accent-foreground: oklch(0.321 0 180);
--destructive: oklch(0.391 0.12 36.448);
--destructive-foreground: oklch(0.88 0.054 37.592);
--ring: oklch(1 0 180);
--chart-1: oklch(1 0 180);
--chart-2: oklch(1 0 180);
--chart-3: oklch(1 0 180);
--chart-4: oklch(1.023 0 180);
--chart-5: oklch(1 0 180);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.124 0.012 18.916);
--foreground: oklch(1 0 180);
--muted: oklch(0.161 0.017 19.067);
--muted-foreground: oklch(0.733 0.012 17.424);
--popover: oklch(0.124 0.012 18.916);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.124 0.012 18.916);
--card-foreground: oklch(1 0 180);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(1 0 180);
--primary-foreground: oklch(0.321 0 180);
--secondary: oklch(1 0 180);
--secondary-foreground: oklch(0.321 0 180);
--accent: oklch(1 0 180);
--accent-foreground: oklch(0.321 0 180);
--destructive: oklch(0.596 0.193 35.88);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(1 0 180);
--chart-1: oklch(1 0 180);
--chart-2: oklch(1 0 180);
--chart-3: oklch(1 0 180);
--chart-4: oklch(1.023 0 180);
--chart-5: oklch(1 0 180);
}