Hospitable is a shadcn/ui theme built around a neutral gray primary color (#303036) with neutral gray accents (#363630). The light mode uses a neutral background (#f6f6fd). Dark mode keeps the neutral gray primary (#303036) on a neutral background (#020208).
| Token | Light | Dark |
|---|---|---|
| Background | #f6f6fdghostwhite | #020208black |
| Foreground | #02020dblack | #ffffffwhite |
| Card | #f6f6fdghostwhite | #020208black |
| Card foreground | #02020dblack | #ffffffwhite |
| Popover | #f6f6fdghostwhite | #020208black |
| Popover foreground | #02020dblack | #ffffffwhite |
| Primary | #303036darkslategray | #303036darkslategray |
| Primary foreground | #c9c9cflightgrey | #c9c9cflightgrey |
| Secondary | #363630darkslategray | #363630darkslategray |
| Secondary foreground | #cfcfc9lightgrey | #cfcfc9lightgrey |
| Muted | #e0e0d1gainsboro | #2e2e1fdarkslategray |
| Muted foreground | #5b5b43darkolivegreen | #bcbca4darkgray |
| Accent | #363630darkslategray | #363630darkslategray |
| Accent foreground | #cfcfc9lightgrey | #cfcfc9lightgrey |
| Destructive | #af3b0dfirebrick | #ef612achocolate |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #303036darkslategray | #303036darkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.24:1 | AAA |
| Text on card | 19.24:1 | AAA |
| Primary button | 7.91:1 | AAA |
| Secondary button | 7.81:1 | AAA |
| Muted text | 5.23:1 | AA |
| Accent | 7.81:1 | AAA |
| Destructive | 6.05:1 | AA |
| Text on background | 20.66:1 | AAA |
| Text on card | 20.66:1 | AAA |
| Primary button | 7.91:1 | AAA |
| Secondary button | 7.81:1 | AAA |
| Muted text | 7.12:1 | AAA |
| Accent | 7.81:1 | AAA |
| Destructive | 6.42:1 | AA |
Paste this into your globals.css to use Hospitable in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.976 0.009 286.223);
--foreground: oklch(0.097 0.035 277.644);
--muted: oklch(0.904 0.02 106.802);
--muted-foreground: oklch(0.464 0.036 107.74);
--popover: oklch(0.976 0.009 286.223);
--popover-foreground: oklch(0.097 0.035 277.644);
--card: oklch(0.976 0.009 286.223);
--card-foreground: oklch(0.097 0.035 277.644);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.313 0.009 285.867);
--primary-foreground: oklch(0.839 0.007 286.247);
--secondary: oklch(0.329 0.009 106.872);
--secondary-foreground: oklch(0.852 0.007 106.547);
--accent: oklch(0.329 0.009 106.872);
--accent-foreground: oklch(0.852 0.007 106.547);
--destructive: oklch(0.515 0.16 38.389);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.313 0.009 285.867);
--chart-1: oklch(0.313 0.009 285.867);
--chart-2: oklch(0.329 0.009 106.872);
--chart-3: oklch(0.329 0.009 106.872);
--chart-4: oklch(0.36 0.01 106.885);
--chart-5: oklch(0.308 0.015 285.516);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.094 0.021 281.534);
--foreground: oklch(1 0 180);
--muted: oklch(0.296 0.026 107.895);
--muted-foreground: oklch(0.788 0.033 107.125);
--popover: oklch(0.094 0.021 281.534);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.094 0.021 281.534);
--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.313 0.009 285.867);
--primary-foreground: oklch(0.839 0.007 286.247);
--secondary: oklch(0.329 0.009 106.872);
--secondary-foreground: oklch(0.852 0.007 106.547);
--accent: oklch(0.329 0.009 106.872);
--accent-foreground: oklch(0.852 0.007 106.547);
--destructive: oklch(0.667 0.187 39.912);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.313 0.009 285.867);
--chart-1: oklch(0.313 0.009 285.867);
--chart-2: oklch(0.329 0.009 106.872);
--chart-3: oklch(0.329 0.009 106.872);
--chart-4: oklch(0.36 0.01 106.885);
--chart-5: oklch(0.308 0.015 285.516);
}