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).
| Token | Light | Dark |
|---|---|---|
| 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 |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.02:1 | AAA |
| Text on card | 20.10:1 | AAA |
| Primary button | 7.26:1 | AAA |
| Secondary button | 8.87:1 | AAA |
| Muted text | 5.92:1 | AA |
| Accent | 6.68:1 | AA |
| Destructive | 7.28:1 | AAA |
| Text on background | 19.42:1 | AAA |
| Text on card | 18.96:1 | AAA |
| Primary button | 7.26:1 | AAA |
| Secondary button | 8.87:1 | AAA |
| Muted text | 7.46:1 | AAA |
| Accent | 6.68:1 | AA |
| Destructive | 6.21:1 | AA |
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);
}