Past for shadcn/ui

Past is a shadcn/ui theme built around a green primary color (#50b036) with purple accents (#9536b0). The light mode uses a neutral background (#f9fcf8). Dark mode keeps the green primary (#50b036) on a green-tinted background (#050c03).

Color palette

TokenLightDark
Background
#f9fcf8mintcream
#050c03black
Foreground
#081604black
#f9fbf9mintcream
Card
#f6faf4whitesmoke
#071004black
Card foreground
#061103black
#fcfdfcwhite
Popover
#f6faf4whitesmoke
#071004black
Popover foreground
#061103black
#fcfdfcwhite
Primary
#50b036limegreen
#50b036limegreen
Primary foreground
#091406black
#091406black
Secondary
#9536b0darkorchid
#9536b0darkorchid
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#e5dfe7gainsboro
#1e1820black
Muted foreground
#67566cdimgray
#a493a9darkgray
Accent
#9536b0darkorchid
#9536b0darkorchid
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#8b1804darkred
#f94d2ftomato
Destructive foreground
#fdccc4pink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#50b036limegreen
#50b036limegreen

Contrast

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

Light mode
Text on background18.00:1AAA
Text on card18.31:1AAA
Primary button6.79:1AA
Secondary button6.11:1AA
Muted text5.13:1AA
Accent6.11:1AA
Destructive6.56:1AA
Dark mode
Text on background19.03:1AAA
Text on card18.98:1AAA
Primary button6.79:1AA
Secondary button6.11:1AA
Muted text6.06:1AA
Accent6.11:1AA
Destructive3.42:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.987 0.006 138.893);
  --foreground: oklch(0.18 0.042 137.959);
  --muted: oklch(0.911 0.012 318.886);
  --muted-foreground: oklch(0.478 0.039 318.858);
  --popover: oklch(0.981 0.01 138.894);
  --popover-foreground: oklch(0.163 0.036 137.407);
  --card: oklch(0.981 0.01 138.894);
  --card-foreground: oklch(0.163 0.036 137.407);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.673 0.182 139.658);
  --primary-foreground: oklch(0.174 0.032 138.321);
  --secondary: oklch(0.52 0.195 318.07);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.52 0.195 318.07);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.412 0.151 32.07);
  --destructive-foreground: oklch(0.886 0.057 29.835);
  --ring: oklch(0.673 0.182 139.658);
  --chart-1: oklch(0.673 0.182 139.658);
  --chart-2: oklch(0.52 0.195 318.07);
  --chart-3: oklch(0.52 0.195 318.07);
  --chart-4: oklch(0.545 0.206 318.056);
  --chart-5: oklch(0.681 0.189 139.75);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.142 0.026 137.228);
  --foreground: oklch(0.987 0.004 138.892);
  --muted: oklch(0.22 0.018 318.859);
  --muted-foreground: oklch(0.686 0.036 318.871);
  --popover: oklch(0.159 0.03 137.681);
  --popover-foreground: oklch(0.993 0.002 138.891);
  --card: oklch(0.159 0.03 137.681);
  --card-foreground: oklch(0.993 0.002 138.891);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.673 0.182 139.658);
  --primary-foreground: oklch(0.174 0.032 138.321);
  --secondary: oklch(0.52 0.195 318.07);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.52 0.195 318.07);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.66 0.212 32.383);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.673 0.182 139.658);
  --chart-1: oklch(0.673 0.182 139.658);
  --chart-2: oklch(0.52 0.195 318.07);
  --chart-3: oklch(0.52 0.195 318.07);
  --chart-4: oklch(0.545 0.206 318.056);
  --chart-5: oklch(0.681 0.189 139.75);
}