Doorbell for shadcn/ui

Doorbell is a shadcn/ui theme built around a neutral gray primary color (#cccccc) with muted light red accents (#dec4c4). The light mode uses a neutral background (#ffffff). Dark mode keeps the neutral gray primary (#cccccc) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#110303black
#fdfbfbsnow
Card
#ffffffwhite
#000000black
Card foreground
#110303black
#fdfbfbsnow
Popover
#ffffffwhite
#000000black
Popover foreground
#110303black
#fdfbfbsnow
Primary
#cccccclightgrey
#cccccclightgrey
Primary foreground
#333333darkslategray
#333333darkslategray
Secondary
#ebe0e0gainsboro
#2c2a2adarkslategray
Secondary foreground
#5c3d3ddarkolivegreen
#c6c3c3silver
Muted
#f3f1f1whitesmoke
#0e0c0cblack
Muted foreground
#564848darkslategray
#b7a9a9darkgray
Accent
#dec4c4thistle
#483c3cdarkslategray
Accent foreground
#482828darkslategray
#dfd8d8gainsboro
Destructive
#66200amaroon
#df4516orangered
Destructive foreground
#f7bdablightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#cccccclightgrey
#cccccclightgrey

Contrast

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

Light mode
Text on background20.22:1AAA
Text on card20.22:1AAA
Primary button7.86:1AAA
Secondary button7.44:1AAA
Muted text7.74:1AAA
Accent7.96:1AAA
Destructive7.23:1AAA
Dark mode
Text on background20.36:1AAA
Text on card20.36:1AAA
Primary button7.86:1AAA
Secondary button8.10:1AAA
Muted text8.61:1AAA
Accent7.48:1AAA
Destructive4.20:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.129 0.031 22.516);
  --muted: oklch(0.961 0.002 17.191);
  --muted-foreground: oklch(0.416 0.019 17.958);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.129 0.031 22.516);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.129 0.031 22.516);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.845 0 164.055);
  --primary-foreground: oklch(0.321 0 180);
  --secondary: oklch(0.916 0.011 17.36);
  --secondary-foreground: oklch(0.396 0.043 19.173);
  --accent: oklch(0.843 0.029 17.744);
  --accent-foreground: oklch(0.319 0.047 20.023);
  --destructive: oklch(0.35 0.106 36.559);
  --destructive-foreground: oklch(0.846 0.071 37.6);
  --ring: oklch(0.845 0 164.055);
  --chart-1: oklch(0.845 0 164.055);
  --chart-2: oklch(0.916 0.011 17.36);
  --chart-3: oklch(0.843 0.029 17.744);
  --chart-4: oklch(0.941 0.008 17.294);
  --chart-5: oklch(0.843 0.003 17.225);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.991 0.002 17.193);
  --muted: oklch(0.156 0.003 17.485);
  --muted-foreground: oklch(0.746 0.016 17.528);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.991 0.002 17.193);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.991 0.002 17.193);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.845 0 164.055);
  --primary-foreground: oklch(0.321 0 180);
  --secondary: oklch(0.289 0.003 17.303);
  --secondary-foreground: oklch(0.82 0.003 17.211);
  --accent: oklch(0.37 0.017 17.933);
  --accent-foreground: oklch(0.888 0.007 17.29);
  --destructive: oklch(0.606 0.198 35.764);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.845 0 164.055);
  --chart-1: oklch(0.845 0 164.055);
  --chart-2: oklch(0.289 0.003 17.303);
  --chart-3: oklch(0.37 0.017 17.933);
  --chart-4: oklch(0.319 0.003 17.308);
  --chart-5: oklch(0.843 0.003 17.225);
}