Inn for shadcn/ui

Inn is a shadcn/ui theme built around a muted purple primary color (#af749d) with muted red accents (#af7480). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted purple primary (#af749d) on a purple-tinted background (#0e070c).

Color palette

TokenLightDark
Background
#ffffffwhite
#0e070cblack
Foreground
#000000black
#faf5f8whitesmoke
Card
#fcfcfcsnow
#11090eblack
Card foreground
#000000black
#fcf8fbsnow
Popover
#fcfcfcsnow
#11090eblack
Popover foreground
#000000black
#fcf8fbsnow
Primary
#af749drosybrown
#af749drosybrown
Primary foreground
#000000black
#000000black
Secondary
#a374afmediumpurple
#a374afmediumpurple
Secondary foreground
#000000black
#000000black
Muted
#e7d6ebgainsboro
#251429black
Muted foreground
#655a68dimgray
#a297a5darkgray
Accent
#af7480rosybrown
#af7480rosybrown
Accent foreground
#000000black
#000000black
Destructive
#921207darkred
#ef1e0bred
Destructive foreground
#fdd2cepink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#af749drosybrown
#af749drosybrown

Contrast

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

Light mode
Text on background21.00:1AAA
Text on card20.54:1AAA
Primary button5.79:1AA
Secondary button5.66:1AA
Muted text4.72:1AA
Accent5.61:1AA
Destructive6.59:1AA
Dark mode
Text on background18.50:1AAA
Text on card18.69:1AAA
Primary button5.79:1AA
Secondary button5.66:1AA
Muted text6.20:1AA
Accent5.61:1AA
Destructive4.32:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.895 0.034 319.455);
  --muted-foreground: oklch(0.483 0.025 319.458);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.633 0.093 338.433);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.627 0.102 319.451);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.623 0.076 6.417);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.423 0.162 30.145);
  --destructive-foreground: oklch(0.9 0.048 24.186);
  --ring: oklch(0.633 0.093 338.433);
  --chart-1: oklch(0.633 0.093 338.433);
  --chart-2: oklch(0.627 0.102 319.451);
  --chart-3: oklch(0.623 0.076 6.417);
  --chart-4: oklch(0.654 0.094 319.459);
  --chart-5: oklch(0.632 0.103 338.708);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.14 0.016 337.255);
  --foreground: oklch(0.975 0.007 336.005);
  --muted: oklch(0.225 0.047 319.415);
  --muted-foreground: oklch(0.691 0.023 319.454);
  --popover: oklch(0.152 0.019 337.964);
  --popover-foreground: oklch(0.983 0.005 335.959);
  --card: oklch(0.152 0.019 337.964);
  --card-foreground: oklch(0.983 0.005 335.959);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.633 0.093 338.433);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.627 0.102 319.451);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.623 0.076 6.417);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.606 0.237 30.057);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.633 0.093 338.433);
  --chart-1: oklch(0.633 0.093 338.433);
  --chart-2: oklch(0.627 0.102 319.451);
  --chart-3: oklch(0.623 0.076 6.417);
  --chart-4: oklch(0.654 0.094 319.459);
  --chart-5: oklch(0.632 0.103 338.708);
}