Pork for shadcn/ui

Pork is a shadcn/ui theme built around a vivid green primary color (#2fd90d) with vivid red accents (#d90d2f). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid green primary (#2fd90d) on a green-tinted background (#060b05).

Color palette

TokenLightDark
Background
#ffffffwhite
#060b05black
Foreground
#020401black
#f6f9f5whitesmoke
Card
#ffffffwhite
#060b05black
Card foreground
#020401black
#f6f9f5whitesmoke
Popover
#ffffffwhite
#060b05black
Popover foreground
#020401black
#f6f9f5whitesmoke
Primary
#2fd90dlimegreen
#2fd90dlimegreen
Primary foreground
#051801black
#051801black
Secondary
#0d2fd9mediumblue
#0d2fd9mediumblue
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#e7e7e9lavender
#161618black
Muted foreground
#545769dimgray
#969aabdarkgray
Accent
#d90d2fcrimson
#d90d2fcrimson
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#792002maroon
#fc5822tomato
Destructive foreground
#fec2aflightpink
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#2fd90dlimegreen
#2fd90dlimegreen

Contrast

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

Light mode
Text on background20.58:1AAA
Text on card20.58:1AAA
Primary button9.70:1AAA
Secondary button8.68:1AAA
Muted text5.77:1AA
Accent5.19:1AA
Destructive6.74:1AA
Dark mode
Text on background18.75:1AAA
Text on card18.75:1AAA
Primary button9.70:1AAA
Secondary button8.68:1AAA
Muted text6.46:1AA
Accent5.19:1AA
Destructive6.55:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.098 0.018 138.739);
  --muted: oklch(0.929 0.003 277.213);
  --muted-foreground: oklch(0.462 0.028 276.329);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.098 0.018 138.739);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.098 0.018 138.739);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.771 0.254 141.494);
  --primary-foreground: oklch(0.186 0.053 138.831);
  --secondary: oklch(0.437 0.252 265.016);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.561 0.222 23.022);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.384 0.128 36.467);
  --destructive-foreground: oklch(0.864 0.074 39.227);
  --ring: oklch(0.771 0.254 141.494);
  --chart-1: oklch(0.771 0.254 141.494);
  --chart-2: oklch(0.437 0.252 265.016);
  --chart-3: oklch(0.561 0.222 23.022);
  --chart-4: oklch(0.458 0.265 264.967);
  --chart-5: oklch(0.78 0.258 141.578);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.139 0.017 139.356);
  --foreground: oklch(0.98 0.007 140.521);
  --muted: oklch(0.201 0.005 276.934);
  --muted-foreground: oklch(0.688 0.026 276.718);
  --popover: oklch(0.139 0.017 139.356);
  --popover-foreground: oklch(0.98 0.007 140.521);
  --card: oklch(0.139 0.017 139.356);
  --card-foreground: oklch(0.98 0.007 140.521);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.771 0.254 141.494);
  --primary-foreground: oklch(0.186 0.053 138.831);
  --secondary: oklch(0.437 0.252 265.016);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.561 0.222 23.022);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.675 0.208 37.146);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.771 0.254 141.494);
  --chart-1: oklch(0.771 0.254 141.494);
  --chart-2: oklch(0.437 0.252 265.016);
  --chart-3: oklch(0.561 0.222 23.022);
  --chart-4: oklch(0.458 0.265 264.967);
  --chart-5: oklch(0.78 0.258 141.578);
}