Peppery for shadcn/ui

Peppery is a shadcn/ui theme built around a muted green primary color (#a6bfa1) with muted light green accents (#c0d8bb). The light mode uses a neutral background (#f8fdf6). Dark mode keeps the muted green primary (#a6bfa1) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#f8fdf6mintcream
#000000black
Foreground
#081505black
#f9fbf9mintcream
Card
#f8fdf6mintcream
#000000black
Card foreground
#081505black
#f9fbf9mintcream
Popover
#f8fdf6mintcream
#000000black
Popover foreground
#081505black
#f9fbf9mintcream
Primary
#a6bfa1darkgray
#a6bfa1darkgray
Primary foreground
#141b13black
#141b13black
Secondary
#d4e0d1lightgrey
#2f332edarkslategray
Secondary foreground
#384c34darkslategray
#c7cdc6silver
Muted
#d9dfd8gainsboro
#212720black
Muted foreground
#4e5d4bdarkolivegreen
#a5b4a2darkgray
Accent
#c0d8bbsilver
#3a4937darkslategray
Accent foreground
#283e23darkslategray
#d5ded3lightgrey
Destructive
#8e1f01darkred
#ef3501orangered
Destructive foreground
#ffcfc2peachpuff
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#a6bfa1darkgray
#a6bfa1darkgray

Contrast

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

Light mode
Text on background18.23:1AAA
Text on card18.23:1AAA
Primary button8.85:1AAA
Secondary button6.83:1AA
Muted text5.17:1AA
Accent7.64:1AAA
Destructive6.35:1AA
Dark mode
Text on background20.19:1AAA
Text on card20.19:1AAA
Primary button8.85:1AAA
Secondary button7.92:1AAA
Muted text6.98:1AA
Accent6.98:1AA
Destructive4.07: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.011 139.981);
  --foreground: oklch(0.177 0.038 138.997);
  --muted: oklch(0.897 0.011 139.98);
  --muted-foreground: oklch(0.461 0.035 139.929);
  --popover: oklch(0.989 0.011 139.981);
  --popover-foreground: oklch(0.177 0.038 138.997);
  --card: oklch(0.989 0.011 139.981);
  --card-foreground: oklch(0.177 0.038 138.997);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.778 0.05 139.937);
  --primary-foreground: oklch(0.213 0.02 139.919);
  --secondary: oklch(0.894 0.023 139.968);
  --secondary-foreground: oklch(0.392 0.047 139.91);
  --accent: oklch(0.857 0.047 139.944);
  --accent-foreground: oklch(0.336 0.052 139.914);
  --destructive: oklch(0.425 0.15 34.407);
  --destructive-foreground: oklch(0.893 0.057 35.964);
  --ring: oklch(0.778 0.05 139.937);
  --chart-1: oklch(0.778 0.05 139.937);
  --chart-2: oklch(0.894 0.023 139.968);
  --chart-3: oklch(0.857 0.047 139.944);
  --chart-4: oklch(0.915 0.019 139.973);
  --chart-5: oklch(0.781 0.057 139.93);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.986 0.003 139.988);
  --muted: oklch(0.265 0.015 139.941);
  --muted-foreground: oklch(0.753 0.031 139.955);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.986 0.003 139.988);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.986 0.003 139.988);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.778 0.05 139.937);
  --primary-foreground: oklch(0.213 0.02 139.919);
  --secondary: oklch(0.316 0.012 139.957);
  --secondary-foreground: oklch(0.841 0.01 139.98);
  --accent: oklch(0.386 0.035 139.92);
  --accent-foreground: oklch(0.891 0.017 139.974);
  --destructive: oklch(0.618 0.226 33.35);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.778 0.05 139.937);
  --chart-1: oklch(0.778 0.05 139.937);
  --chart-2: oklch(0.316 0.012 139.957);
  --chart-3: oklch(0.386 0.035 139.92);
  --chart-4: oklch(0.347 0.014 139.956);
  --chart-5: oklch(0.781 0.057 139.93);
}