Pass for shadcn/ui

Pass is a shadcn/ui theme built around a muted green primary color (#5e7156) with muted light green accents (#cedac8). The light mode uses a neutral background (#f9fdf7). Dark mode keeps the muted green primary (#5e7156) on a green-tinted background (#060b05).

Color palette

TokenLightDark
Background
#f9fdf7mintcream
#060b05black
Foreground
#060b04black
#ffffffwhite
Card
#f6fcf3whitesmoke
#090e06black
Card foreground
#040803black
#ffffffwhite
Popover
#f6fcf3whitesmoke
#090e06black
Popover foreground
#040803black
#ffffffwhite
Primary
#5e7156dimgray
#5e7156dimgray
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#cedac8lightgrey
#131810black
Secondary foreground
#34432ddarkslategray
#a7be9ddarkgray
Muted
#f2f4f1whitesmoke
#0c0e0bblack
Muted foreground
#53604ddarkolivegreen
#a4b29fdarkgray
Accent
#cedac8lightgrey
#131810black
Accent foreground
#34432ddarkslategray
#a7be9ddarkgray
Destructive
#a30000darkred
#ff1f1fred
Destructive foreground
#ffd6d6mistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#5e7156dimgray
#5e7156dimgray

Contrast

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

Light mode
Text on background19.27:1AAA
Text on card19.28:1AAA
Primary button5.26:1AA
Secondary button7.27:1AAA
Muted text6.02:1AA
Accent7.27:1AAA
Destructive6.18:1AA
Dark mode
Text on background19.88:1AAA
Text on card19.49:1AAA
Primary button5.26:1AA
Secondary button8.97:1AAA
Muted text8.70:1AAA
Accent8.97:1AAA
Destructive3.84:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.989 0.009 136.053);
  --foreground: oklch(0.142 0.022 134.627);
  --muted: oklch(0.964 0.005 136.041);
  --muted-foreground: oklch(0.473 0.034 136.304);
  --popover: oklch(0.983 0.013 136.07);
  --popover-foreground: oklch(0.124 0.019 134.553);
  --card: oklch(0.983 0.013 136.07);
  --card-foreground: oklch(0.124 0.019 134.553);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.526 0.048 136.392);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.874 0.027 136.136);
  --secondary-foreground: oklch(0.362 0.041 136.487);
  --accent: oklch(0.874 0.027 136.136);
  --accent-foreground: oklch(0.362 0.041 136.487);
  --destructive: oklch(0.45 0.185 29.234);
  --destructive-foreground: oklch(0.911 0.046 18.024);
  --ring: oklch(0.526 0.048 136.392);
  --chart-1: oklch(0.526 0.048 136.392);
  --chart-2: oklch(0.874 0.027 136.136);
  --chart-3: oklch(0.874 0.027 136.136);
  --chart-4: oklch(0.895 0.022 136.114);
  --chart-5: oklch(0.532 0.058 136.477);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.14 0.016 134.901);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.162 0.008 136.204);
  --muted-foreground: oklch(0.747 0.031 136.175);
  --popover: oklch(0.155 0.019 135.46);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.155 0.019 135.46);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.526 0.048 136.392);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.202 0.018 136.378);
  --secondary-foreground: oklch(0.774 0.052 136.28);
  --accent: oklch(0.202 0.018 136.378);
  --accent-foreground: oklch(0.774 0.052 136.28);
  --destructive: oklch(0.637 0.249 28.214);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.526 0.048 136.392);
  --chart-1: oklch(0.526 0.048 136.392);
  --chart-2: oklch(0.202 0.018 136.378);
  --chart-3: oklch(0.202 0.018 136.378);
  --chart-4: oklch(0.239 0.024 136.426);
  --chart-5: oklch(0.532 0.058 136.477);
}