Liberty Bell Grey Primate for shadcn/ui

Liberty Bell Grey Primate is a shadcn/ui theme built around a neutral gray primary color (#66686b) with neutral gray accents (#67666b). The light mode uses a neutral background (#f7f8fd). Dark mode keeps the neutral gray primary (#66686b) on a neutral background (#020408).

Color palette

TokenLightDark
Background
#f7f8fdghostwhite
#020408black
Foreground
#04060bblack
#fcfcfdwhite
Card
#f3f5fcaliceblue
#04060cblack
Card foreground
#030408black
#ffffffwhite
Popover
#f3f5fcaliceblue
#04060cblack
Popover foreground
#030408black
#ffffffwhite
Primary
#66686bdimgray
#66686bdimgray
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#666a6bdimgray
#666a6bdimgray
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#dbebf0lavender
#0f1f24black
Muted foreground
#5e6a6edimgray
#919da1darkgray
Accent
#67666bdimgray
#67666bdimgray
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#c5310dfirebrick
#f04419orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e9eaeclavender
#1f2023black
Input
#e9eaeclavender
#1f2023black
Ring
#66686bdimgray
#66686bdimgray

Contrast

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

Light mode
Text on background19.14:1AAA
Text on card18.80:1AAA
Primary button5.60:1AA
Secondary button5.48:1AA
Muted text4.55:1AA
Accent5.65:1AA
Destructive5.50:1AA
Dark mode
Text on background20.01:1AAA
Text on card20.28:1AAA
Primary button5.60:1AA
Secondary button5.48:1AA
Muted text6.07:1AA
Accent5.65:1AA
Destructive3.77:1AA Large

CSS variables

Paste this into your globals.css to use Liberty Bell Grey Primate in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.98 0.007 270.066);
  --foreground: oklch(0.121 0.015 263.705);
  --muted: oklch(0.93 0.018 217.869);
  --muted-foreground: oklch(0.516 0.016 217.98);
  --popover: oklch(0.971 0.01 270.036);
  --popover-foreground: oklch(0.106 0.013 263.56);
  --card: oklch(0.971 0.01 270.036);
  --card-foreground: oklch(0.106 0.013 263.56);
  --border: oklch(0.937 0.003 270.099);
  --input: oklch(0.937 0.003 270.099);
  --primary: oklch(0.516 0.005 270.04);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.521 0.004 217.791);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.514 0.007 296.848);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.542 0.189 33.795);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.516 0.005 270.04);
  --chart-1: oklch(0.516 0.005 270.04);
  --chart-2: oklch(0.521 0.004 217.791);
  --chart-3: oklch(0.514 0.007 296.848);
  --chart-4: oklch(0.547 0.005 217.791);
  --chart-5: oklch(0.511 0.013 269.904);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.105 0.014 263.232);
  --foreground: oklch(0.991 0.002 270.108);
  --muted: oklch(0.227 0.023 219.262);
  --muted-foreground: oklch(0.688 0.015 217.894);
  --popover: oklch(0.121 0.016 263.404);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.121 0.016 263.404);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.245 0.006 269.914);
  --input: oklch(0.245 0.006 269.914);
  --primary: oklch(0.516 0.005 270.04);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.521 0.004 217.791);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.514 0.007 296.848);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.635 0.215 34.166);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.516 0.005 270.04);
  --chart-1: oklch(0.516 0.005 270.04);
  --chart-2: oklch(0.521 0.004 217.791);
  --chart-3: oklch(0.514 0.007 296.848);
  --chart-4: oklch(0.547 0.005 217.791);
  --chart-5: oklch(0.511 0.013 269.904);
}