House for shadcn/ui

House is a shadcn/ui theme built around a blue primary color (#9badd4) with indigo accents (#a69bd4). The light mode uses a neutral background (#ffffff). Dark mode keeps the blue primary (#9badd4) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#02050eblack
#f8f9fbghostwhite
Card
#ffffffwhite
#000000black
Card foreground
#02050eblack
#f8f9fbghostwhite
Popover
#ffffffwhite
#000000black
Popover foreground
#02050eblack
#f8f9fbghostwhite
Primary
#9badd4lightsteelblue
#9badd4lightsteelblue
Primary foreground
#121a2bblack
#121a2bblack
Secondary
#9bcad4lightsteelblue
#9bcad4lightsteelblue
Secondary foreground
#12262bblack
#12262bblack
Muted
#d1e2e5gainsboro
#1a2a2edarkslategray
Muted foreground
#576c70dimgray
#8fa4a8darkgray
Accent
#a69bd4lightsteelblue
#a69bd4lightsteelblue
Accent foreground
#17122bblack
#17122bblack
Destructive
#720e09maroon
#da1b10firebrick
Destructive foreground
#f9b7b3lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#9badd4lightsteelblue
#9badd4lightsteelblue

Contrast

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

Light mode
Text on background20.37:1AAA
Text on card20.37:1AAA
Primary button7.72:1AAA
Secondary button8.79:1AAA
Muted text4.14:1AA Large
Accent7.12:1AAA
Destructive7.00:1AAA
Dark mode
Text on background19.93:1AAA
Text on card19.93:1AAA
Primary button7.72:1AAA
Secondary button8.79:1AAA
Muted text5.68:1AA
Accent7.12:1AAA
Destructive5.06:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.117 0.024 254.558);
  --muted: oklch(0.901 0.018 212.695);
  --muted-foreground: oklch(0.515 0.026 212.861);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.117 0.024 254.558);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.117 0.024 254.558);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.748 0.06 265.46);
  --primary-foreground: oklch(0.22 0.035 264.693);
  --secondary: oklch(0.809 0.051 212.975);
  --secondary-foreground: oklch(0.255 0.027 213.743);
  --accent: oklch(0.719 0.083 292.6);
  --accent-foreground: oklch(0.204 0.048 289.925);
  --destructive: oklch(0.355 0.134 29.129);
  --destructive-foreground: oklch(0.839 0.078 22.273);
  --ring: oklch(0.748 0.06 265.46);
  --chart-1: oklch(0.748 0.06 265.46);
  --chart-2: oklch(0.809 0.051 212.975);
  --chart-3: oklch(0.719 0.083 292.6);
  --chart-4: oklch(0.829 0.046 212.897);
  --chart-5: oklch(0.745 0.065 265.404);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.983 0.003 265.993);
  --muted: oklch(0.272 0.023 213.255);
  --muted-foreground: oklch(0.703 0.025 212.756);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.983 0.003 265.993);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.983 0.003 265.993);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.748 0.06 265.46);
  --primary-foreground: oklch(0.22 0.035 264.693);
  --secondary: oklch(0.809 0.051 212.975);
  --secondary-foreground: oklch(0.255 0.027 213.743);
  --accent: oklch(0.719 0.083 292.6);
  --accent-foreground: oklch(0.204 0.048 289.925);
  --destructive: oklch(0.566 0.221 29.4);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.748 0.06 265.46);
  --chart-1: oklch(0.748 0.06 265.46);
  --chart-2: oklch(0.809 0.051 212.975);
  --chart-3: oklch(0.719 0.083 292.6);
  --chart-4: oklch(0.829 0.046 212.897);
  --chart-5: oklch(0.745 0.065 265.404);
}