Pepper for shadcn/ui

Pepper is a shadcn/ui theme built around a light red primary color (#f4ebed) with neutral gray accents (#d7d5d5). The light mode uses a neutral background (#fdf7f8). Dark mode keeps the light red primary (#f4ebed) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fdf7f8snow
#000000black
Foreground
#000000black
#fdfcfcsnow
Card
#fdf7f8snow
#000000black
Card foreground
#000000black
#fdfcfcsnow
Popover
#fdf7f8snow
#000000black
Popover foreground
#000000black
#fdfcfcsnow
Primary
#f4ebedlinen
#f4ebedlinen
Primary foreground
#713d46dimgray
#713d46dimgray
Secondary
#d7d5d5lightgrey
#353132darkslategray
Secondary foreground
#3f3b3cdarkslategray
#cecacblightgrey
Muted
#e9e2e4gainsboro
#1d1618black
Muted foreground
#4c393cdarkslategray
#c6b3b7silver
Accent
#d7d5d5lightgrey
#353132darkslategray
Accent foreground
#3f3b3cdarkslategray
#cecacblightgrey
Destructive
#b83f0ffirebrick
#ee652ftomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#f4ebedlinen
#f4ebedlinen

Contrast

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

Light mode
Text on background19.82:1AAA
Text on card19.82:1AAA
Primary button7.31:1AAA
Secondary button7.56:1AAA
Muted text8.42:1AAA
Accent7.56:1AAA
Destructive5.59:1AA
Dark mode
Text on background20.50:1AAA
Text on card20.50:1AAA
Primary button7.31:1AAA
Secondary button7.87:1AAA
Muted text8.91:1AAA
Accent7.87:1AAA
Destructive6.56:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.981 0.006 4.484);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.919 0.007 4.508);
  --muted-foreground: oklch(0.366 0.027 6.213);
  --popover: oklch(0.981 0.006 4.484);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.981 0.006 4.484);
  --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.948 0.01 4.595);
  --primary-foreground: oklch(0.426 0.074 8.934);
  --secondary: oklch(0.875 0.003 4.395);
  --secondary-foreground: oklch(0.358 0.005 4.695);
  --accent: oklch(0.875 0.003 4.395);
  --accent-foreground: oklch(0.358 0.005 4.695);
  --destructive: oklch(0.534 0.165 38.447);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.948 0.01 4.595);
  --chart-1: oklch(0.948 0.01 4.595);
  --chart-2: oklch(0.875 0.003 4.395);
  --chart-3: oklch(0.875 0.003 4.395);
  --chart-4: oklch(0.899 0.002 4.377);
  --chart-5: oklch(0.947 0.011 4.623);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.991 0.002 4.362);
  --muted: oklch(0.21 0.01 5.56);
  --muted-foreground: oklch(0.785 0.022 5.038);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.991 0.002 4.362);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.991 0.002 4.362);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.948 0.01 4.595);
  --primary-foreground: oklch(0.426 0.074 8.934);
  --secondary: oklch(0.318 0.004 4.681);
  --secondary-foreground: oklch(0.843 0.003 4.421);
  --accent: oklch(0.318 0.004 4.681);
  --accent-foreground: oklch(0.843 0.003 4.421);
  --destructive: oklch(0.672 0.181 40.285);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.948 0.01 4.595);
  --chart-1: oklch(0.948 0.01 4.595);
  --chart-2: oklch(0.318 0.004 4.681);
  --chart-3: oklch(0.318 0.004 4.681);
  --chart-4: oklch(0.348 0.005 4.692);
  --chart-5: oklch(0.947 0.011 4.623);
}