Pass for shadcn/ui

Pass is a shadcn/ui theme built around a vivid yellow primary color (#c39413) with vivid violet accents (#9413c3). The light mode uses a neutral background (#fdfcf6). Dark mode keeps the vivid yellow primary (#c39413) on a yellow-tinted background (#100d04).

Color palette

TokenLightDark
Background
#fdfcf6snow
#100d04black
Foreground
#040301black
#ffffffwhite
Card
#fdfaf2floralwhite
#141005black
Card foreground
#000000black
#ffffffwhite
Popover
#fdfaf2floralwhite
#141005black
Popover foreground
#000000black
#ffffffwhite
Primary
#c39413darkgoldenrod
#c39413darkgoldenrod
Primary foreground
#090701black
#090701black
Secondary
#13c394lightseagreen
#13c394lightseagreen
Secondary foreground
#010907black
#010907black
Muted
#e1efeblavender
#101e1ablack
Muted foreground
#525b59dimgray
#a4adaadarkgray
Accent
#9413c3darkviolet
#9413c3darkviolet
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#631d08maroon
#ee5c2ftomato
Destructive foreground
#f8b9a5lightpink
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#c39413darkgoldenrod
#c39413darkgoldenrod

Contrast

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

Light mode
Text on background20.02:1AAA
Text on card20.10:1AAA
Primary button7.26:1AAA
Secondary button8.87:1AAA
Muted text5.92:1AA
Accent6.68:1AA
Destructive7.28:1AAA
Dark mode
Text on background19.42:1AAA
Text on card18.96:1AAA
Primary button7.26:1AAA
Secondary button8.87:1AAA
Muted text7.46:1AAA
Accent6.68:1AA
Destructive6.21:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.007 90.176);
  --foreground: oklch(0.099 0.012 95.314);
  --muted: oklch(0.941 0.016 178.291);
  --muted-foreground: oklch(0.463 0.011 178.053);
  --popover: oklch(0.985 0.011 90.202);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.985 0.011 90.202);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.693 0.138 85.136);
  --primary-foreground: oklch(0.129 0.022 97.178);
  --secondary: oklch(0.727 0.145 167.504);
  --secondary-foreground: oklch(0.128 0.02 178.917);
  --accent: oklch(0.508 0.242 313.56);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.341 0.105 36.447);
  --destructive-foreground: oklch(0.838 0.078 37.609);
  --ring: oklch(0.693 0.138 85.136);
  --chart-1: oklch(0.693 0.138 85.136);
  --chart-2: oklch(0.727 0.145 167.504);
  --chart-3: oklch(0.508 0.242 313.56);
  --chart-4: oklch(0.765 0.153 167.426);
  --chart-5: oklch(0.699 0.14 84.687);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.159 0.019 92.579);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.221 0.021 175.599);
  --muted-foreground: oklch(0.739 0.01 178.378);
  --popover: oklch(0.175 0.022 91.307);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.175 0.022 91.307);
  --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.693 0.138 85.136);
  --primary-foreground: oklch(0.129 0.022 97.178);
  --secondary: oklch(0.727 0.145 167.504);
  --secondary-foreground: oklch(0.128 0.02 178.917);
  --accent: oklch(0.508 0.242 313.56);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.659 0.19 36.938);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.693 0.138 85.136);
  --chart-1: oklch(0.693 0.138 85.136);
  --chart-2: oklch(0.727 0.145 167.504);
  --chart-3: oklch(0.508 0.242 313.56);
  --chart-4: oklch(0.765 0.153 167.426);
  --chart-5: oklch(0.699 0.14 84.687);
}