Peppery for shadcn/ui

Peppery is a shadcn/ui theme built around a neutral gray primary color (#c2c2c2) with neutral gray accents (#c2c2c2). The light mode uses a neutral background (#ffffff). Dark mode keeps the neutral gray primary (#c2c2c2) on a neutral background (#070303).

Color palette

TokenLightDark
Background
#ffffffwhite
#070303black
Foreground
#000000black
#fbf9f9snow
Card
#fcfcfcsnow
#0b0404black
Card foreground
#000000black
#fdfcfcsnow
Popover
#ffffffwhite
#070303black
Popover foreground
#000000black
#fbf9f9snow
Primary
#c2c2c2silver
#c2c2c2silver
Primary foreground
#292929darkslategray
#292929darkslategray
Secondary
#c2c2c2silver
#c2c2c2silver
Secondary foreground
#292929darkslategray
#292929darkslategray
Muted
#eee7e7linen
#181111black
Muted foreground
#6e5959dimgray
#a69191rosybrown
Accent
#c2c2c2silver
#c2c2c2silver
Accent foreground
#292929darkslategray
#292929darkslategray
Destructive
#b4400efirebrick
#e45011chocolate
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#c2c2c2silver
#c2c2c2silver

Contrast

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

Light mode
Text on background21.00:1AAA
Text on card20.54:1AAA
Primary button8.15:1AAA
Secondary button8.15:1AAA
Muted text5.33:1AA
Accent8.15:1AAA
Destructive5.71:1AA
Dark mode
Text on background19.56:1AAA
Text on card19.81:1AAA
Primary button8.15:1AAA
Secondary button8.15:1AAA
Muted text6.28:1AA
Accent8.15:1AAA
Destructive3.85:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.934 0.007 17.283);
  --muted-foreground: oklch(0.484 0.029 18.197);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.813 0 165.964);
  --primary-foreground: oklch(0.28 0 180);
  --secondary: oklch(0.813 0 165.964);
  --secondary-foreground: oklch(0.28 0 180);
  --accent: oklch(0.813 0 165.964);
  --accent-foreground: oklch(0.28 0 180);
  --destructive: oklch(0.529 0.161 39.388);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.813 0 165.964);
  --chart-1: oklch(0.813 0 165.964);
  --chart-2: oklch(0.813 0 165.964);
  --chart-3: oklch(0.813 0 165.964);
  --chart-4: oklch(0.837 0 171.254);
  --chart-5: oklch(0.811 0.004 17.242);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.107 0.013 19.476);
  --foreground: oklch(0.983 0.002 17.195);
  --muted: oklch(0.187 0.011 18.177);
  --muted-foreground: oklch(0.675 0.026 17.822);
  --popover: oklch(0.107 0.013 19.476);
  --popover-foreground: oklch(0.983 0.002 17.195);
  --card: oklch(0.122 0.015 19.482);
  --card-foreground: oklch(0.992 0.001 17.176);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.813 0 165.964);
  --primary-foreground: oklch(0.28 0 180);
  --secondary: oklch(0.813 0 165.964);
  --secondary-foreground: oklch(0.28 0 180);
  --accent: oklch(0.813 0 165.964);
  --accent-foreground: oklch(0.28 0 180);
  --destructive: oklch(0.627 0.194 39.044);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.813 0 165.964);
  --chart-1: oklch(0.813 0 165.964);
  --chart-2: oklch(0.813 0 165.964);
  --chart-3: oklch(0.813 0 165.964);
  --chart-4: oklch(0.837 0 171.254);
  --chart-5: oklch(0.811 0.004 17.242);
}