Pearl for shadcn/ui

Pearl is a shadcn/ui theme built around a neutral gray primary color (#beb6bd) with neutral gray accents (#b6bdbe). The light mode uses a neutral background (#fefbfd). Dark mode keeps the neutral gray primary (#beb6bd) on a neutral background (#030203).

Color palette

TokenLightDark
Background
#fefbfdsnow
#030203black
Foreground
#10040eblack
#fbf8fbsnow
Card
#fefbfdsnow
#030203black
Card foreground
#10040eblack
#fbf8fbsnow
Popover
#fefbfdsnow
#030203black
Popover foreground
#10040eblack
#fbf8fbsnow
Primary
#beb6bdsilver
#beb6bdsilver
Primary foreground
#231f22black
#231f22black
Secondary
#bdbeb6silver
#bdbeb6silver
Secondary foreground
#22231fblack
#22231fblack
Muted
#eeefecwhitesmoke
#131310black
Muted foreground
#4f5148darkslategray
#b5b7aedarkgray
Accent
#b6bdbesilver
#b6bdbesilver
Accent foreground
#1f2223black
#1f2223black
Destructive
#692102maroon
#e74804orangered
Destructive foreground
#febca0lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#beb6bdsilver
#beb6bdsilver

Contrast

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

Light mode
Text on background19.54:1AAA
Text on card19.54:1AAA
Primary button8.22:1AAA
Secondary button8.44:1AAA
Muted text6.96:1AA
Accent8.37:1AAA
Destructive7.08:1AAA
Dark mode
Text on background19.66:1AAA
Text on card19.66:1AAA
Primary button8.22:1AAA
Secondary button8.44:1AAA
Muted text9.15:1AAA
Accent8.37:1AAA
Destructive3.94:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.004 332.065);
  --foreground: oklch(0.137 0.033 334.289);
  --muted: oklch(0.95 0.004 115.653);
  --muted-foreground: oklch(0.431 0.015 116.214);
  --popover: oklch(0.991 0.004 332.065);
  --popover-foreground: oklch(0.137 0.033 334.289);
  --card: oklch(0.991 0.004 332.065);
  --card-foreground: oklch(0.137 0.033 334.289);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.785 0.013 332.251);
  --primary-foreground: oklch(0.246 0.008 332.505);
  --secondary: oklch(0.799 0.012 115.844);
  --secondary-foreground: oklch(0.254 0.007 116.111);
  --accent: oklch(0.792 0.008 214.344);
  --accent-foreground: oklch(0.25 0.005 214.384);
  --destructive: oklch(0.357 0.111 39.813);
  --destructive-foreground: oklch(0.848 0.086 44.206);
  --ring: oklch(0.785 0.013 332.251);
  --chart-1: oklch(0.785 0.013 332.251);
  --chart-2: oklch(0.799 0.012 115.844);
  --chart-3: oklch(0.792 0.008 214.344);
  --chart-4: oklch(0.822 0.01 115.807);
  --chart-5: oklch(0.783 0.02 332.373);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.088 0.012 332.601);
  --foreground: oklch(0.983 0.004 332.072);
  --muted: oklch(0.186 0.006 116.143);
  --muted-foreground: oklch(0.776 0.013 115.885);
  --popover: oklch(0.088 0.012 332.601);
  --popover-foreground: oklch(0.983 0.004 332.072);
  --card: oklch(0.088 0.012 332.601);
  --card-foreground: oklch(0.983 0.004 332.072);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.785 0.013 332.251);
  --primary-foreground: oklch(0.246 0.008 332.505);
  --secondary: oklch(0.799 0.012 115.844);
  --secondary-foreground: oklch(0.254 0.007 116.111);
  --accent: oklch(0.792 0.008 214.344);
  --accent-foreground: oklch(0.25 0.005 214.384);
  --destructive: oklch(0.623 0.205 37.439);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.785 0.013 332.251);
  --chart-1: oklch(0.785 0.013 332.251);
  --chart-2: oklch(0.799 0.012 115.844);
  --chart-3: oklch(0.792 0.008 214.344);
  --chart-4: oklch(0.822 0.01 115.807);
  --chart-5: oklch(0.783 0.02 332.373);
}