Roommate for shadcn/ui

Roommate is a shadcn/ui theme built around a muted orange primary color (#6c5a4b) with muted light orange accents (#d9d3ce). The light mode uses a neutral background (#fcfaf8). Dark mode keeps the muted orange primary (#6c5a4b) on a neutral background (#040201).

Color palette

TokenLightDark
Background
#fcfaf8snow
#040201black
Foreground
#080502black
#fdfcfcsnow
Card
#fbf7f4whitesmoke
#080502black
Card foreground
#040201black
#ffffffwhite
Popover
#fcfaf8snow
#040201black
Popover foreground
#080502black
#fdfcfcsnow
Primary
#6c5a4bdimgray
#6c5a4bdimgray
Primary foreground
#f7f5f3whitesmoke
#f7f5f3whitesmoke
Secondary
#d9d3celightgrey
#353331darkslategray
Secondary foreground
#423a34darkslategray
#cecccalightgrey
Muted
#efe4dcantiquewhite
#231810black
Muted foreground
#453f3adarkslategray
#c5bebasilver
Accent
#d9d3celightgrey
#353331darkslategray
Accent foreground
#423a34darkslategray
#cecccalightgrey
Destructive
#b32a05firebrick
#ea3706orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#6c5a4bdimgray
#6c5a4bdimgray

Contrast

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

Light mode
Text on background19.47:1AAA
Text on card19.41:1AAA
Primary button6.04:1AA
Secondary button7.50:1AAA
Muted text8.30:1AAA
Accent7.50:1AAA
Destructive6.45:1AA
Dark mode
Text on background20.18:1AAA
Text on card20.35:1AAA
Primary button6.04:1AA
Secondary button7.88:1AAA
Muted text9.45:1AAA
Accent7.88:1AAA
Destructive4.16:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.985 0.004 60.23);
  --foreground: oklch(0.117 0.015 70.261);
  --muted: oklch(0.926 0.016 60.052);
  --muted-foreground: oklch(0.373 0.012 59.827);
  --popover: oklch(0.985 0.004 60.23);
  --popover-foreground: oklch(0.117 0.015 70.261);
  --card: oklch(0.978 0.006 60.202);
  --card-foreground: oklch(0.093 0.012 70.261);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.481 0.033 59.278);
  --primary-foreground: oklch(0.97 0.003 60.24);
  --secondary: oklch(0.87 0.009 60.142);
  --secondary-foreground: oklch(0.354 0.015 59.68);
  --accent: oklch(0.87 0.009 60.142);
  --accent-foreground: oklch(0.354 0.015 59.68);
  --destructive: oklch(0.504 0.178 34.07);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.481 0.033 59.278);
  --chart-1: oklch(0.481 0.033 59.278);
  --chart-2: oklch(0.87 0.009 60.142);
  --chart-3: oklch(0.87 0.009 60.142);
  --chart-4: oklch(0.893 0.007 60.171);
  --chart-5: oklch(0.482 0.039 59.086);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.093 0.01 68.146);
  --foreground: oklch(0.993 0.002 60.262);
  --muted: oklch(0.221 0.022 58.684);
  --muted-foreground: oklch(0.807 0.01 60.112);
  --popover: oklch(0.093 0.01 68.146);
  --popover-foreground: oklch(0.993 0.002 60.262);
  --card: oklch(0.117 0.012 68.146);
  --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.481 0.033 59.278);
  --primary-foreground: oklch(0.97 0.003 60.24);
  --secondary: oklch(0.322 0.003 60.139);
  --secondary-foreground: oklch(0.846 0.003 60.24);
  --accent: oklch(0.322 0.003 60.139);
  --accent-foreground: oklch(0.846 0.003 60.24);
  --destructive: oklch(0.612 0.219 33.685);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.481 0.033 59.278);
  --chart-1: oklch(0.481 0.033 59.278);
  --chart-2: oklch(0.322 0.003 60.139);
  --chart-3: oklch(0.322 0.003 60.139);
  --chart-4: oklch(0.352 0.004 60.135);
  --chart-5: oklch(0.482 0.039 59.086);
}