Peppery for shadcn/ui

Peppery is a shadcn/ui theme built around a vivid light green primary color (#f8fdc3) with vivid light green accents (#dbfdc3). The light mode uses a neutral background (#fcfcf8). Dark mode keeps the vivid light green primary (#f8fdc3) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fcfcf8snow
#000000black
Foreground
#131505black
#ffffffwhite
Card
#fafbf4floralwhite
#030303black
Card foreground
#0f1004black
#ffffffwhite
Popover
#fcfcf8snow
#000000black
Popover foreground
#131505black
#ffffffwhite
Primary
#f8fdc3lemonchiffon
#f8fdc3lemonchiffon
Primary foreground
#242801black
#242801black
Secondary
#fde6c3bisque
#fde6c3bisque
Secondary foreground
#281801black
#281801black
Muted
#e4dbcdgainsboro
#32291bdarkslategray
Muted foreground
#55524edarkslategray
#b1aeaadarkgray
Accent
#dbfdc3lightgoldenrodyellow
#dbfdc3lightgoldenrodyellow
Accent foreground
#112801black
#112801black
Destructive
#78200dmaroon
#e73e18orangered
Destructive foreground
#f8c9bepink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#f8fdc3lemonchiffon
#f8fdc3lemonchiffon

Contrast

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

Light mode
Text on background17.97:1AAA
Text on card18.39:1AAA
Primary button14.41:1AAA
Secondary button14.18:1AAA
Muted text5.67:1AA
Accent14.23:1AAA
Destructive6.99:1AA
Dark mode
Text on background21.00:1AAA
Text on card20.67:1AAA
Primary button14.41:1AAA
Secondary button14.18:1AAA
Muted text6.50:1AA
Accent14.23:1AAA
Destructive4.12: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.99 0.006 111.133);
  --foreground: oklch(0.187 0.03 113.713);
  --muted: oklch(0.895 0.021 78.219);
  --muted-foreground: oklch(0.441 0.007 78.254);
  --popover: oklch(0.99 0.006 111.133);
  --popover-foreground: oklch(0.187 0.03 113.713);
  --card: oklch(0.985 0.009 111.194);
  --card-foreground: oklch(0.169 0.026 113.343);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.977 0.075 112.426);
  --primary-foreground: oklch(0.263 0.058 115.293);
  --secondary: oklch(0.936 0.052 77.983);
  --secondary-foreground: oklch(0.225 0.046 75.821);
  --accent: oklch(0.956 0.084 133.066);
  --accent-foreground: oklch(0.247 0.07 135.02);
  --destructive: oklch(0.384 0.125 33.833);
  --destructive-foreground: oklch(0.874 0.056 32.822);
  --ring: oklch(0.977 0.075 112.426);
  --chart-1: oklch(0.977 0.075 112.426);
  --chart-2: oklch(0.936 0.052 77.983);
  --chart-3: oklch(0.956 0.084 133.066);
  --chart-4: oklch(0.951 0.039 78.108);
  --chart-5: oklch(0.979 0.077 112.464);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.285 0.027 77.431);
  --muted-foreground: oklch(0.752 0.006 78.285);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.977 0.075 112.426);
  --primary-foreground: oklch(0.263 0.058 115.293);
  --secondary: oklch(0.936 0.052 77.983);
  --secondary-foreground: oklch(0.225 0.046 75.821);
  --accent: oklch(0.956 0.084 133.066);
  --accent-foreground: oklch(0.247 0.07 135.02);
  --destructive: oklch(0.614 0.21 33.473);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.977 0.075 112.426);
  --chart-1: oklch(0.977 0.075 112.426);
  --chart-2: oklch(0.936 0.052 77.983);
  --chart-3: oklch(0.956 0.084 133.066);
  --chart-4: oklch(0.951 0.039 78.108);
  --chart-5: oklch(0.979 0.077 112.464);
}