Neighboring for shadcn/ui

Neighboring is a shadcn/ui theme built around a neutral gray primary color (#dddfde) with neutral gray accents (#dddfdf). The light mode uses a neutral background (#f7fdfb). Dark mode keeps the neutral gray primary (#dddfde) on a neutral background (#010403).

Color palette

TokenLightDark
Background
#f7fdfbmintcream
#010403black
Foreground
#020806black
#ffffffwhite
Card
#f3fcf8mintcream
#030706black
Card foreground
#010403black
#ffffffwhite
Popover
#f7fdfbmintcream
#010403black
Popover foreground
#020806black
#ffffffwhite
Primary
#dddfdegainsboro
#dddfdegainsboro
Primary foreground
#424845darkslategray
#424845darkslategray
Secondary
#dddfddgainsboro
#dddfddgainsboro
Secondary foreground
#424843darkslategray
#424843darkslategray
Muted
#e0f0e2gainsboro
#0f1f11black
Muted foreground
#595f5adimgray
#a0a6a1darkgray
Accent
#dddfdfgainsboro
#dddfdfgainsboro
Accent foreground
#424748darkslategray
#424748darkslategray
Destructive
#b4190efirebrick
#ef3b2ecrimson
Destructive foreground
#fef6f6snow
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#dddfdegainsboro
#dddfdegainsboro

Contrast

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

Light mode
Text on background19.57:1AAA
Text on card19.65:1AAA
Primary button6.99:1AA
Secondary button6.99:1AA
Muted text5.52:1AA
Accent7.03:1AAA
Destructive6.38:1AA
Dark mode
Text on background20.60:1AAA
Text on card20.22:1AAA
Primary button6.99:1AA
Secondary button6.99:1AA
Muted text6.91:1AA
Accent7.03:1AAA
Destructive3.92:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.988 0.007 171.4);
  --foreground: oklch(0.125 0.017 171.881);
  --muted: oklch(0.94 0.025 148.811);
  --muted-foreground: oklch(0.477 0.01 148.876);
  --popover: oklch(0.988 0.007 171.4);
  --popover-foreground: oklch(0.125 0.017 171.881);
  --card: oklch(0.983 0.01 171.301);
  --card-foreground: oklch(0.099 0.013 171.881);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.902 0.003 171.49);
  --primary-foreground: oklch(0.394 0.008 170.993);
  --secondary: oklch(0.901 0.004 149.077);
  --secondary-foreground: oklch(0.393 0.011 148.805);
  --accent: oklch(0.902 0.003 206.423);
  --accent-foreground: oklch(0.394 0.007 206.35);
  --destructive: oklch(0.494 0.189 29.697);
  --destructive-foreground: oklch(0.98 0.009 22.316);
  --ring: oklch(0.902 0.003 171.49);
  --chart-1: oklch(0.902 0.003 171.49);
  --chart-2: oklch(0.901 0.004 149.077);
  --chart-3: oklch(0.902 0.003 206.423);
  --chart-4: oklch(0.924 0.003 149.092);
  --chart-5: oklch(0.903 0.006 171.414);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.097 0.01 171.82);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.22 0.035 147.017);
  --muted-foreground: oklch(0.719 0.009 148.98);
  --popover: oklch(0.097 0.01 171.82);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.123 0.013 171.82);
  --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.902 0.003 171.49);
  --primary-foreground: oklch(0.394 0.008 170.993);
  --secondary: oklch(0.901 0.004 149.077);
  --secondary-foreground: oklch(0.393 0.011 148.805);
  --accent: oklch(0.902 0.003 206.423);
  --accent-foreground: oklch(0.394 0.007 206.35);
  --destructive: oklch(0.627 0.218 29.019);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.902 0.003 171.49);
  --chart-1: oklch(0.902 0.003 171.49);
  --chart-2: oklch(0.901 0.004 149.077);
  --chart-3: oklch(0.902 0.003 206.423);
  --chart-4: oklch(0.924 0.003 149.092);
  --chart-5: oklch(0.903 0.006 171.414);
}