Residence for shadcn/ui

Residence is a shadcn/ui theme built around a pink primary color (#c7297a) with blue accents (#297ac7). The light mode uses a neutral background (#ffffff). Dark mode keeps the pink primary (#c7297a) on a neutral background (#080205).

Color palette

TokenLightDark
Background
#ffffffwhite
#080205black
Foreground
#11030ablack
#ffffffwhite
Card
#ffffffwhite
#080205black
Card foreground
#11030ablack
#ffffffwhite
Popover
#ffffffwhite
#080205black
Popover foreground
#11030ablack
#ffffffwhite
Primary
#c7297amediumvioletred
#c7297amediumvioletred
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#7ac729yellowgreen
#7ac729yellowgreen
Secondary foreground
#121e06black
#121e06black
Muted
#ebf0e5beige
#151a0fblack
Muted foreground
#474a45darkslategray
#b8bab5silver
Accent
#297ac7steelblue
#297ac7steelblue
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#a31800darkred
#ff4929tomato
Destructive foreground
#ffdcd6mistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#c7297amediumvioletred
#c7297amediumvioletred

Contrast

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

Light mode
Text on background20.16:1AAA
Text on card20.16:1AAA
Primary button5.21:1AA
Secondary button8.26:1AAA
Muted text7.78:1AAA
Accent4.44:1AA Large
Destructive6.10:1AA
Dark mode
Text on background20.53:1AAA
Text on card20.53:1AAA
Primary button5.21:1AA
Secondary button8.26:1AAA
Muted text9.04:1AAA
Accent4.44:1AA Large
Destructive3.36:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.134 0.033 346.548);
  --muted: oklch(0.949 0.016 127.991);
  --muted-foreground: oklch(0.406 0.01 128.082);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.134 0.033 346.548);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.134 0.033 346.548);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.56 0.203 354.894);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.751 0.197 132.817);
  --secondary-foreground: oklch(0.216 0.045 130.595);
  --accent: oklch(0.571 0.141 250.692);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.46 0.175 31.84);
  --destructive-foreground: oklch(0.923 0.04 29.678);
  --ring: oklch(0.56 0.203 354.894);
  --chart-1: oklch(0.56 0.203 354.894);
  --chart-2: oklch(0.751 0.197 132.817);
  --chart-3: oklch(0.571 0.141 250.692);
  --chart-4: oklch(0.787 0.207 132.85);
  --chart-5: oklch(0.563 0.209 355.431);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.107 0.019 344.155);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.209 0.023 129.194);
  --muted-foreground: oklch(0.786 0.009 127.916);
  --popover: oklch(0.107 0.019 344.155);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.107 0.019 344.155);
  --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.56 0.203 354.894);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.751 0.197 132.817);
  --secondary-foreground: oklch(0.216 0.045 130.595);
  --accent: oklch(0.571 0.141 250.692);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.665 0.223 32.349);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.56 0.203 354.894);
  --chart-1: oklch(0.56 0.203 354.894);
  --chart-2: oklch(0.751 0.197 132.817);
  --chart-3: oklch(0.571 0.141 250.692);
  --chart-4: oklch(0.787 0.207 132.85);
  --chart-5: oklch(0.563 0.209 355.431);
}