Lobby for shadcn/ui

Lobby is a shadcn/ui theme built around a muted violet primary color (#a28fb3) with muted purple accents (#b38fb1). The light mode uses a neutral background (#faf8fc). Dark mode keeps the muted violet primary (#a28fb3) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#faf8fcghostwhite
#000000black
Foreground
#08040cblack
#fcfcfdwhite
Card
#f8f5fawhitesmoke
#030303black
Card foreground
#050208black
#ffffffwhite
Popover
#faf8fcghostwhite
#000000black
Popover foreground
#08040cblack
#fcfcfdwhite
Primary
#a28fb3darkgray
#a28fb3darkgray
Primary foreground
#080609black
#080609black
Secondary
#918fb3darkgray
#918fb3darkgray
Secondary foreground
#060609black
#060609black
Muted
#dbdae1gainsboro
#1e1e25black
Muted foreground
#5c5b6bdimgray
#9494a4darkgray
Accent
#b38fb1darkgray
#b38fb1darkgray
Accent foreground
#090609black
#090609black
Destructive
#771909maroon
#ef4325orangered
Destructive foreground
#fac2b8lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#a28fb3darkgray
#a28fb3darkgray

Contrast

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

Light mode
Text on background19.26:1AAA
Text on card19.00:1AAA
Primary button6.83:1AA
Secondary button6.50:1AA
Muted text4.78:1AA
Accent7.15:1AAA
Destructive7.00:1AAA
Dark mode
Text on background20.48:1AAA
Text on card20.67:1AAA
Primary button6.83:1AA
Secondary button6.50:1AA
Muted text5.57:1AA
Accent7.15:1AAA
Destructive3.82:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.982 0.005 310.386);
  --foreground: oklch(0.118 0.025 311.871);
  --muted: oklch(0.891 0.01 288.502);
  --muted-foreground: oklch(0.48 0.025 287.694);
  --popover: oklch(0.982 0.005 310.386);
  --popover-foreground: oklch(0.118 0.025 311.871);
  --card: oklch(0.973 0.008 310.359);
  --card-foreground: oklch(0.103 0.022 312.104);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.679 0.056 309.666);
  --primary-foreground: oklch(0.128 0.008 310.962);
  --secondary: oklch(0.663 0.053 287.155);
  --secondary-foreground: oklch(0.125 0.008 287.804);
  --accent: oklch(0.693 0.064 327.852);
  --accent-foreground: oklch(0.13 0.009 327.52);
  --destructive: oklch(0.374 0.13 32.253);
  --destructive-foreground: oklch(0.861 0.066 29.939);
  --ring: oklch(0.679 0.056 309.666);
  --chart-1: oklch(0.679 0.056 309.666);
  --chart-2: oklch(0.663 0.053 287.155);
  --chart-3: oklch(0.693 0.064 327.852);
  --chart-4: oklch(0.692 0.048 287.364);
  --chart-5: oklch(0.675 0.065 309.537);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.992 0.001 310.427);
  --muted: oklch(0.237 0.014 287.579);
  --muted-foreground: oklch(0.671 0.023 288.051);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.992 0.001 310.427);
  --card: oklch(0.092 0 180);
  --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.679 0.056 309.666);
  --primary-foreground: oklch(0.128 0.008 310.962);
  --secondary: oklch(0.663 0.053 287.155);
  --secondary-foreground: oklch(0.125 0.008 287.804);
  --accent: oklch(0.693 0.064 327.852);
  --accent-foreground: oklch(0.13 0.009 327.52);
  --destructive: oklch(0.632 0.212 32.344);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.679 0.056 309.666);
  --chart-1: oklch(0.679 0.056 309.666);
  --chart-2: oklch(0.663 0.053 287.155);
  --chart-3: oklch(0.693 0.064 327.852);
  --chart-4: oklch(0.692 0.048 287.364);
  --chart-5: oklch(0.675 0.065 309.537);
}