Neighbour for shadcn/ui

Neighbour is a shadcn/ui theme built around a muted deep red primary color (#271717) with muted deep orange accents (#271f17). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted deep red primary (#271717) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#080202black
#faf5f5whitesmoke
Card
#ffffffwhite
#000000black
Card foreground
#080202black
#faf5f5whitesmoke
Popover
#ffffffwhite
#000000black
Popover foreground
#080202black
#faf5f5whitesmoke
Primary
#271717black
#271717black
Primary foreground
#caa5a5tan
#caa5a5tan
Secondary
#27171fblack
#27171fblack
Secondary foreground
#caa5b8silver
#caa5b8silver
Muted
#efecedwhitesmoke
#131012black
Muted foreground
#463940darkslategray
#c6b9bfsilver
Accent
#271f17black
#271f17black
Accent foreground
#cab8a5tan
#cab8a5tan
Destructive
#cf3202firebrick
#fd5421orangered
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#271717black
#271717black

Contrast

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

Light mode
Text on background20.59:1AAA
Text on card20.59:1AAA
Primary button7.75:1AAA
Secondary button7.83:1AAA
Muted text9.29:1AAA
Accent8.46:1AAA
Destructive5.11:1AA
Dark mode
Text on background19.44:1AAA
Text on card19.44:1AAA
Primary button7.75:1AAA
Secondary button7.83:1AAA
Muted text9.96:1AAA
Accent8.46:1AAA
Destructive6.46:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.103 0.019 20.789);
  --muted: oklch(0.945 0.004 345.243);
  --muted-foreground: oklch(0.362 0.021 346.574);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.103 0.019 20.789);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.103 0.019 20.789);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.224 0.026 19.31);
  --primary-foreground: oklch(0.755 0.044 18.167);
  --secondary: oklch(0.227 0.029 348.256);
  --secondary-foreground: oklch(0.761 0.05 346.783);
  --accent: oklch(0.244 0.019 66.74);
  --accent-foreground: oklch(0.792 0.033 67.315);
  --destructive: oklch(0.56 0.199 34.306);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.224 0.026 19.31);
  --chart-1: oklch(0.224 0.026 19.31);
  --chart-2: oklch(0.227 0.029 348.256);
  --chart-3: oklch(0.244 0.019 66.74);
  --chart-4: oklch(0.258 0.035 348.466);
  --chart-5: oklch(0.223 0.029 19.623);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.973 0.006 17.253);
  --muted: oklch(0.179 0.005 345.926);
  --muted-foreground: oklch(0.798 0.017 345.686);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.973 0.006 17.253);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.973 0.006 17.253);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.224 0.026 19.31);
  --primary-foreground: oklch(0.755 0.044 18.167);
  --secondary: oklch(0.227 0.029 348.256);
  --secondary-foreground: oklch(0.761 0.05 346.783);
  --accent: oklch(0.244 0.019 66.74);
  --accent-foreground: oklch(0.792 0.033 67.315);
  --destructive: oklch(0.672 0.213 36.133);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.224 0.026 19.31);
  --chart-1: oklch(0.224 0.026 19.31);
  --chart-2: oklch(0.227 0.029 348.256);
  --chart-3: oklch(0.244 0.019 66.74);
  --chart-4: oklch(0.258 0.035 348.466);
  --chart-5: oklch(0.223 0.029 19.623);
}