Hostel for shadcn/ui

Hostel is a shadcn/ui theme built around a neutral gray primary color (#474847) with neutral gray accents (#474847). The light mode uses a neutral background (#ffffff). Dark mode keeps the neutral gray primary (#474847) on a neutral background (#030703).

Color palette

TokenLightDark
Background
#ffffffwhite
#030703black
Foreground
#020d02black
#fcfdfcwhite
Card
#ffffffwhite
#030703black
Card foreground
#020d02black
#fcfdfcwhite
Popover
#ffffffwhite
#030703black
Popover foreground
#020d02black
#fcfdfcwhite
Primary
#474847darkslategray
#474847darkslategray
Primary foreground
#e0e1e0gainsboro
#e0e1e0gainsboro
Secondary
#474847darkslategray
#474847darkslategray
Secondary foreground
#e0e1e0gainsboro
#e0e1e0gainsboro
Muted
#eef1e9linen
#12160eblack
Muted foreground
#484f40darkslategray
#b8bfb0silver
Accent
#474847darkslategray
#474847darkslategray
Accent foreground
#e0e1e0gainsboro
#e0e1e0gainsboro
Destructive
#61200amaroon
#e95e2fchocolate
Destructive foreground
#f6bba7lightpink
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#474847darkslategray
#474847darkslategray

Contrast

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

Light mode
Text on background19.79:1AAA
Text on card19.79:1AAA
Primary button7.00:1AAA
Secondary button6.98:1AA
Muted text7.46:1AAA
Accent7.00:1AAA
Destructive7.32:1AAA
Dark mode
Text on background19.88:1AAA
Text on card19.88:1AAA
Primary button7.00:1AAA
Secondary button6.98:1AA
Muted text9.68:1AAA
Accent7.00:1AAA
Destructive6.10:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.144 0.037 141.831);
  --muted: oklch(0.954 0.012 126.591);
  --muted-foreground: oklch(0.417 0.027 127.281);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.144 0.037 141.831);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.144 0.037 141.831);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.4 0.003 144.087);
  --primary-foreground: oklch(0.908 0.001 144.123);
  --secondary: oklch(0.401 0.002 126.508);
  --secondary-foreground: oklch(0.908 0.001 126.441);
  --accent: oklch(0.4 0.002 162.477);
  --accent-foreground: oklch(0.908 0.001 162.597);
  --destructive: oklch(0.341 0.1 37.693);
  --destructive-foreground: oklch(0.84 0.074 39.225);
  --ring: oklch(0.4 0.003 144.087);
  --chart-1: oklch(0.4 0.003 144.087);
  --chart-2: oklch(0.401 0.002 126.508);
  --chart-3: oklch(0.4 0.002 162.477);
  --chart-4: oklch(0.429 0.003 126.51);
  --chart-5: oklch(0.403 0.012 143.958);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.12 0.015 143.083);
  --foreground: oklch(0.993 0.003 144.113);
  --muted: oklch(0.194 0.018 127.659);
  --muted-foreground: oklch(0.796 0.023 126.804);
  --popover: oklch(0.12 0.015 143.083);
  --popover-foreground: oklch(0.993 0.003 144.113);
  --card: oklch(0.12 0.015 143.083);
  --card-foreground: oklch(0.993 0.003 144.113);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.4 0.003 144.087);
  --primary-foreground: oklch(0.908 0.001 144.123);
  --secondary: oklch(0.401 0.002 126.508);
  --secondary-foreground: oklch(0.908 0.001 126.441);
  --accent: oklch(0.4 0.002 162.477);
  --accent-foreground: oklch(0.908 0.001 162.597);
  --destructive: oklch(0.654 0.183 38.048);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.4 0.003 144.087);
  --chart-1: oklch(0.4 0.003 144.087);
  --chart-2: oklch(0.401 0.002 126.508);
  --chart-3: oklch(0.4 0.002 162.477);
  --chart-4: oklch(0.429 0.003 126.51);
  --chart-5: oklch(0.403 0.012 143.958);
}