Pier for shadcn/ui

Pier is a shadcn/ui theme built around a green primary color (#3fd95e) with red accents (#d95e3f). The light mode uses a neutral background (#f7fdf8). Dark mode keeps the green primary (#3fd95e) on a green-tinted background (#050b06).

Color palette

TokenLightDark
Background
#f7fdf8mintcream
#050b06black
Foreground
#031106black
#fbfdfcwhite
Card
#f7fdf8mintcream
#050b06black
Card foreground
#031106black
#fbfdfcwhite
Popover
#f7fdf8mintcream
#050b06black
Popover foreground
#031106black
#fbfdfcwhite
Primary
#3fd95emediumseagreen
#3fd95emediumseagreen
Primary foreground
#0d4017darkgreen
#0d4017darkgreen
Secondary
#5e3fd9slateblue
#5e3fd9slateblue
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#e7e7e9lavender
#161618black
Muted foreground
#46454adarkslategray
#b6b5basilver
Accent
#d95e3findianred
#d95e3findianred
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#921507darkred
#e0200bred
Destructive foreground
#fdd3cepink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#3fd95emediumseagreen
#3fd95emediumseagreen

Contrast

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

Light mode
Text on background18.73:1AAA
Text on card18.73:1AAA
Primary button6.41:1AA
Secondary button6.56:1AA
Muted text7.68:1AAA
Accent3.72:1AA Large
Destructive6.59:1AA
Dark mode
Text on background19.48:1AAA
Text on card19.48:1AAA
Primary button6.41:1AA
Secondary button6.56:1AA
Muted text8.89:1AAA
Accent3.72:1AA Large
Destructive4.79:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.988 0.009 151.865);
  --foreground: oklch(0.16 0.032 150.172);
  --muted: oklch(0.928 0.004 295.505);
  --muted-foreground: oklch(0.392 0.01 295.125);
  --popover: oklch(0.988 0.009 151.865);
  --popover-foreground: oklch(0.16 0.032 150.172);
  --card: oklch(0.988 0.009 151.865);
  --card-foreground: oklch(0.16 0.032 150.172);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.78 0.209 146.477);
  --primary-foreground: oklch(0.327 0.087 146.551);
  --secondary: oklch(0.502 0.22 284.337);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.632 0.162 35.209);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.425 0.161 30.549);
  --destructive-foreground: oklch(0.901 0.048 25.508);
  --ring: oklch(0.78 0.209 146.477);
  --chart-1: oklch(0.78 0.209 146.477);
  --chart-2: oklch(0.502 0.22 284.337);
  --chart-3: oklch(0.632 0.162 35.209);
  --chart-4: oklch(0.531 0.208 286.142);
  --chart-5: oklch(0.788 0.216 146.277);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.138 0.017 151.372);
  --foreground: oklch(0.993 0.003 151.961);
  --muted: oklch(0.2 0.005 295.071);
  --muted-foreground: oklch(0.775 0.008 295.386);
  --popover: oklch(0.138 0.017 151.372);
  --popover-foreground: oklch(0.993 0.003 151.961);
  --card: oklch(0.138 0.017 151.372);
  --card-foreground: oklch(0.993 0.003 151.961);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.78 0.209 146.477);
  --primary-foreground: oklch(0.327 0.087 146.551);
  --secondary: oklch(0.502 0.22 284.337);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.632 0.162 35.209);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.58 0.224 30.412);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.78 0.209 146.477);
  --chart-1: oklch(0.78 0.209 146.477);
  --chart-2: oklch(0.502 0.22 284.337);
  --chart-3: oklch(0.632 0.162 35.209);
  --chart-4: oklch(0.531 0.208 286.142);
  --chart-5: oklch(0.788 0.216 146.277);
}