Hospitable for shadcn/ui

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).

Color palette

TokenLightDark
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

Contrast

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

Light mode
Text on background19.24:1AAA
Text on card19.24:1AAA
Primary button7.91:1AAA
Secondary button7.81:1AAA
Muted text5.23:1AA
Accent7.81:1AAA
Destructive6.05:1AA
Dark mode
Text on background20.66:1AAA
Text on card20.66:1AAA
Primary button7.91:1AAA
Secondary button7.81:1AAA
Muted text7.12:1AAA
Accent7.81:1AAA
Destructive6.42:1AA

CSS variables

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);
}