Pea for shadcn/ui

Pea is a shadcn/ui theme built around a deep green primary color (#2e7113) with deep pink accents (#71132e). The light mode uses a neutral background (#f9fcf8). Dark mode keeps the deep green primary (#2e7113) on a green-tinted background (#060a05).

Color palette

TokenLightDark
Background
#f9fcf8mintcream
#060a05black
Foreground
#020401black
#f9fbf9mintcream
Card
#f9fcf8mintcream
#060a05black
Card foreground
#020401black
#f9fbf9mintcream
Popover
#f9fcf8mintcream
#060a05black
Popover foreground
#020401black
#f9fbf9mintcream
Primary
#2e7113forestgreen
#2e7113forestgreen
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#132e71midnightblue
#132e71midnightblue
Secondary foreground
#c2d0f5lightblue
#c2d0f5lightblue
Muted
#dce0eagainsboro
#151923black
Muted foreground
#45484fdarkslategray
#b0b3badarkgray
Accent
#71132emaroon
#71132emaroon
Accent foreground
#f5c2d0pink
#f5c2d0pink
Destructive
#d0360bfirebrick
#da380borangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#2e7113forestgreen
#2e7113forestgreen

Contrast

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

Light mode
Text on background19.87:1AAA
Text on card19.87:1AAA
Primary button5.99:1AA
Secondary button8.22:1AAA
Muted text6.92:1AA
Accent7.33:1AAA
Destructive4.97:1AA
Dark mode
Text on background19.13:1AAA
Text on card19.13:1AAA
Primary button5.99:1AA
Secondary button8.22:1AAA
Muted text8.36:1AAA
Accent7.33:1AAA
Destructive4.60:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.987 0.006 136.626);
  --foreground: oklch(0.101 0.023 134.395);
  --muted: oklch(0.906 0.014 268.675);
  --muted-foreground: oklch(0.401 0.013 268.533);
  --popover: oklch(0.987 0.006 136.626);
  --popover-foreground: oklch(0.101 0.023 134.395);
  --card: oklch(0.987 0.006 136.626);
  --card-foreground: oklch(0.101 0.023 134.395);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.487 0.142 138.855);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.327 0.121 264.307);
  --secondary-foreground: oklch(0.859 0.053 268.249);
  --accent: oklch(0.364 0.128 10.472);
  --accent-foreground: oklch(0.863 0.061 359.655);
  --destructive: oklch(0.566 0.197 34.273);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.487 0.142 138.855);
  --chart-1: oklch(0.487 0.142 138.855);
  --chart-2: oklch(0.327 0.121 264.307);
  --chart-3: oklch(0.364 0.128 10.472);
  --chart-4: oklch(0.351 0.133 264.237);
  --chart-5: oklch(0.493 0.146 138.991);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.139 0.015 135.553);
  --foreground: oklch(0.987 0.004 136.621);
  --muted: oklch(0.214 0.021 267.851);
  --muted-foreground: oklch(0.766 0.011 268.686);
  --popover: oklch(0.139 0.015 135.553);
  --popover-foreground: oklch(0.987 0.004 136.621);
  --card: oklch(0.139 0.015 135.553);
  --card-foreground: oklch(0.987 0.004 136.621);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.487 0.142 138.855);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.327 0.121 264.307);
  --secondary-foreground: oklch(0.859 0.053 268.249);
  --accent: oklch(0.364 0.128 10.472);
  --accent-foreground: oklch(0.863 0.061 359.655);
  --destructive: oklch(0.586 0.204 34.227);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.487 0.142 138.855);
  --chart-1: oklch(0.487 0.142 138.855);
  --chart-2: oklch(0.327 0.121 264.307);
  --chart-3: oklch(0.364 0.128 10.472);
  --chart-4: oklch(0.351 0.133 264.237);
  --chart-5: oklch(0.493 0.146 138.991);
}