Homely for shadcn/ui

Homely is a shadcn/ui theme built around a muted light pink primary color (#f9f6f8) with muted light pink accents (#dcd0d8). The light mode uses a neutral background (#fcf7fa). Dark mode keeps the muted light pink primary (#f9f6f8) on a neutral background (#070306).

Color palette

TokenLightDark
Background
#fcf7fasnow
#070306black
Foreground
#0c0309black
#fdfcfdwhite
Card
#fcf7fasnow
#070306black
Card foreground
#0c0309black
#fdfcfdwhite
Popover
#fcf7fasnow
#070306black
Popover foreground
#0c0309black
#fdfcfdwhite
Primary
#f9f6f8whitesmoke
#f9f6f8whitesmoke
Primary foreground
#744963dimgray
#744963dimgray
Secondary
#dcd0d8lightgrey
#1b1318black
Secondary foreground
#46353fdarkslategray
#bfa1b3darkgray
Muted
#eae6e8lavender
#191517black
Muted foreground
#60525bdimgray
#ad9fa7darkgray
Accent
#dcd0d8lightgrey
#1b1318black
Accent foreground
#46353fdarkslategray
#bfa1b3darkgray
Destructive
#c54a0dchocolate
#eb580forangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#f9f6f8whitesmoke
#f9f6f8whitesmoke

Contrast

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

Light mode
Text on background19.26:1AAA
Text on card19.26:1AAA
Primary button6.78:1AA
Secondary button7.65:1AAA
Muted text5.96:1AA
Accent7.65:1AAA
Destructive4.83:1AA
Dark mode
Text on background20.00:1AAA
Text on card20.00:1AAA
Primary button6.78:1AA
Secondary button7.78:1AAA
Muted text7.13:1AAA
Accent7.78:1AAA
Destructive3.53:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.982 0.007 339.619);
  --foreground: oklch(0.122 0.027 340.085);
  --muted: oklch(0.929 0.004 339.572);
  --muted-foreground: oklch(0.456 0.023 340.557);
  --popover: oklch(0.982 0.007 339.619);
  --popover-foreground: oklch(0.122 0.027 340.085);
  --card: oklch(0.982 0.007 339.619);
  --card-foreground: oklch(0.122 0.027 340.085);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.975 0.005 339.575);
  --primary-foreground: oklch(0.463 0.07 342.578);
  --secondary: oklch(0.87 0.016 339.864);
  --secondary-foreground: oklch(0.35 0.03 341.253);
  --accent: oklch(0.87 0.016 339.864);
  --accent-foreground: oklch(0.35 0.03 341.253);
  --destructive: oklch(0.569 0.169 41.172);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.975 0.005 339.575);
  --chart-1: oklch(0.975 0.005 339.575);
  --chart-2: oklch(0.87 0.016 339.864);
  --chart-3: oklch(0.87 0.016 339.864);
  --chart-4: oklch(0.895 0.013 339.78);
  --chart-5: oklch(0.975 0.005 339.589);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.11 0.013 339.597);
  --foreground: oklch(0.992 0.001 339.485);
  --muted: oklch(0.202 0.006 340.154);
  --muted-foreground: oklch(0.716 0.021 340.095);
  --popover: oklch(0.11 0.013 339.597);
  --popover-foreground: oklch(0.992 0.001 339.485);
  --card: oklch(0.11 0.013 339.597);
  --card-foreground: oklch(0.992 0.001 339.485);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.975 0.005 339.575);
  --primary-foreground: oklch(0.463 0.07 342.578);
  --secondary: oklch(0.198 0.017 341.316);
  --secondary-foreground: oklch(0.741 0.043 340.712);
  --accent: oklch(0.198 0.017 341.316);
  --accent-foreground: oklch(0.741 0.043 340.712);
  --destructive: oklch(0.648 0.195 40.872);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.975 0.005 339.575);
  --chart-1: oklch(0.975 0.005 339.575);
  --chart-2: oklch(0.198 0.017 341.316);
  --chart-3: oklch(0.198 0.017 341.316);
  --chart-4: oklch(0.23 0.022 341.506);
  --chart-5: oklch(0.975 0.005 339.589);
}