Homeownership for shadcn/ui

Homeownership is a shadcn/ui theme built around a neutral gray primary color (#cfcfcf) with neutral gray accents (#cfcfcf). The light mode uses a neutral background (#fbf8f8). Dark mode keeps the neutral gray primary (#cfcfcf) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fbf8f8snow
#000000black
Foreground
#080303black
#f9f6f6whitesmoke
Card
#faf5f5whitesmoke
#030303black
Card foreground
#040101black
#fbf9f9snow
Popover
#fbf8f8snow
#000000black
Popover foreground
#080303black
#f9f6f6whitesmoke
Primary
#cfcfcflightgrey
#cfcfcflightgrey
Primary foreground
#363636darkslategray
#363636darkslategray
Secondary
#cfcfcflightgrey
#cfcfcflightgrey
Secondary foreground
#363636darkslategray
#363636darkslategray
Muted
#f4e6e6linen
#190b0bblack
Muted foreground
#4e3c3cdarkslategray
#c3b1b1silver
Accent
#cfcfcflightgrey
#cfcfcflightgrey
Accent foreground
#363636darkslategray
#363636darkslategray
Destructive
#ba160dfirebrick
#e51b10red
Destructive foreground
#fffafasnow
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#cfcfcflightgrey
#cfcfcflightgrey

Contrast

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

Light mode
Text on background19.47:1AAA
Text on card19.24:1AAA
Primary button7.72:1AAA
Secondary button7.72:1AAA
Muted text8.50:1AAA
Accent7.72:1AAA
Destructive6.33:1AA
Dark mode
Text on background19.54:1AAA
Text on card19.71:1AAA
Primary button7.72:1AAA
Secondary button7.72:1AAA
Muted text9.37:1AAA
Accent7.72:1AAA
Destructive4.67:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.983 0.003 17.213);
  --foreground: oklch(0.105 0.016 20.039);
  --muted: oklch(0.936 0.016 17.435);
  --muted-foreground: oklch(0.375 0.025 18.341);
  --popover: oklch(0.983 0.003 17.213);
  --popover-foreground: oklch(0.105 0.016 20.039);
  --card: oklch(0.974 0.005 17.241);
  --card-foreground: oklch(0.083 0.012 20.039);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.853 0 168.69);
  --primary-foreground: oklch(0.331 0 180);
  --secondary: oklch(0.853 0 168.69);
  --secondary-foreground: oklch(0.331 0 180);
  --accent: oklch(0.853 0 168.69);
  --accent-foreground: oklch(0.331 0 180);
  --destructive: oklch(0.503 0.196 29.383);
  --destructive-foreground: oklch(0.99 0.005 20.947);
  --ring: oklch(0.853 0 168.69);
  --chart-1: oklch(0.853 0 168.69);
  --chart-2: oklch(0.853 0 168.69);
  --chart-3: oklch(0.853 0 168.69);
  --chart-4: oklch(0.877 0 180);
  --chart-5: oklch(0.851 0.003 17.22);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.975 0.003 17.211);
  --muted: oklch(0.17 0.025 20.023);
  --muted-foreground: oklch(0.776 0.021 17.605);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.975 0.003 17.211);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(0.983 0.002 17.193);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.853 0 168.69);
  --primary-foreground: oklch(0.331 0 180);
  --secondary: oklch(0.853 0 168.69);
  --secondary-foreground: oklch(0.331 0 180);
  --accent: oklch(0.853 0 168.69);
  --accent-foreground: oklch(0.331 0 180);
  --destructive: oklch(0.586 0.23 29.432);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.853 0 168.69);
  --chart-1: oklch(0.853 0 168.69);
  --chart-2: oklch(0.853 0 168.69);
  --chart-3: oklch(0.853 0 168.69);
  --chart-4: oklch(0.877 0 180);
  --chart-5: oklch(0.851 0.003 17.22);
}