Peppery for shadcn/ui

Peppery is a shadcn/ui theme built around a light yellow primary color (#f8f6f1) with light green accents (#f7f8f1). The light mode uses a neutral background (#fdfbf7). Dark mode keeps the light yellow primary (#f8f6f1) on a yellow-tinted background (#0b0905).

Color palette

TokenLightDark
Background
#fdfbf7snow
#0b0905black
Foreground
#000000black
#fbfaf9snow
Card
#fcf9f3floralwhite
#0e0c06black
Card foreground
#000000black
#fdfdfcwhite
Popover
#fdfbf7snow
#0b0905black
Popover foreground
#000000black
#fbfaf9snow
Primary
#f8f6f1whitesmoke
#f8f6f1whitesmoke
Primary foreground
#372f1bdarkslategray
#372f1bdarkslategray
Secondary
#f8f3f1whitesmoke
#f8f3f1whitesmoke
Secondary foreground
#7b4a3dsienna
#7b4a3dsienna
Muted
#efe0dcantiquewhite
#231410black
Muted foreground
#494341darkslategray
#beb8b6silver
Accent
#f7f8f1whitesmoke
#f7f8f1whitesmoke
Accent foreground
#31371bdarkslategray
#31371bdarkslategray
Destructive
#af3412firebrick
#de4217orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#f8f6f1whitesmoke
#f8f6f1whitesmoke

Contrast

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

Light mode
Text on background20.34:1AAA
Text on card20.02:1AAA
Primary button12.30:1AAA
Secondary button6.60:1AA
Muted text7.57:1AAA
Accent11.62:1AAA
Destructive6.28:1AA
Dark mode
Text on background19.09:1AAA
Text on card19.20:1AAA
Primary button12.30:1AAA
Secondary button6.60:1AA
Muted text9.08:1AAA
Accent11.62:1AAA
Destructive4.29:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.989 0.006 88.831);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.918 0.017 35.961);
  --muted-foreground: oklch(0.387 0.009 35.953);
  --popover: oklch(0.989 0.006 88.831);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.983 0.009 88.85);
  --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.974 0.007 88.836);
  --primary-foreground: oklch(0.307 0.034 88.736);
  --secondary: oklch(0.967 0.006 35.99);
  --secondary-foreground: oklch(0.463 0.071 36.24);
  --accent: oklch(0.977 0.009 116.503);
  --accent-foreground: oklch(0.322 0.046 119.057);
  --destructive: oklch(0.508 0.165 35.198);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.974 0.007 88.836);
  --chart-1: oklch(0.974 0.007 88.836);
  --chart-2: oklch(0.967 0.006 35.99);
  --chart-3: oklch(0.977 0.009 116.503);
  --chart-4: oklch(0.992 0.002 36.006);
  --chart-5: oklch(0.975 0.008 88.84);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.14 0.012 92.66);
  --foreground: oklch(0.986 0.002 88.802);
  --muted: oklch(0.211 0.026 36.131);
  --muted-foreground: oklch(0.787 0.008 35.981);
  --popover: oklch(0.14 0.012 92.66);
  --popover-foreground: oklch(0.986 0.002 88.802);
  --card: oklch(0.155 0.013 90.543);
  --card-foreground: oklch(0.993 0.001 88.797);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.974 0.007 88.836);
  --primary-foreground: oklch(0.307 0.034 88.736);
  --secondary: oklch(0.967 0.006 35.99);
  --secondary-foreground: oklch(0.463 0.071 36.24);
  --accent: oklch(0.977 0.009 116.503);
  --accent-foreground: oklch(0.322 0.046 119.057);
  --destructive: oklch(0.602 0.199 35.021);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.974 0.007 88.836);
  --chart-1: oklch(0.974 0.007 88.836);
  --chart-2: oklch(0.967 0.006 35.99);
  --chart-3: oklch(0.977 0.009 116.503);
  --chart-4: oklch(0.992 0.002 36.006);
  --chart-5: oklch(0.975 0.008 88.84);
}