Passing is a shadcn/ui theme built around a vivid light violet primary color (#dabffc) with vivid light purple accents (#f8bffc). The light mode uses a neutral background (#faf8fc). Dark mode keeps the vivid light violet primary (#dabffc) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #faf8fcghostwhite | #000000black |
| Foreground | #07030dblack | #fcfbfdsnow |
| Card | #faf8fcghostwhite | #000000black |
| Card foreground | #07030dblack | #fcfbfdsnow |
| Popover | #faf8fcghostwhite | #000000black |
| Popover foreground | #07030dblack | #fcfbfdsnow |
| Primary | #dabffcthistle | #dabffcthistle |
| Primary foreground | #3c0684indigo | #3c0684indigo |
| Secondary | #bfc3fclightsteelblue | #bfc3fclightsteelblue |
| Secondary foreground | #060e84navy | #060e84navy |
| Muted | #d7d8e5gainsboro | #1a1b28black |
| Muted foreground | #525360dimgray | #9fa0addarkgray |
| Accent | #f8bffclavender | #f8bffclavender |
| Accent foreground | #7c0684purple | #7c0684purple |
| Destructive | #b82b0ffirebrick | #de3412orangered |
| Destructive foreground | #fffbfasnow | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #dabffcthistle | #dabffcthistle |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.36:1 | AAA |
| Text on card | 19.36:1 | AAA |
| Primary button | 8.29:1 | AAA |
| Secondary button | 8.88:1 | AAA |
| Muted text | 5.34:1 | AA |
| Accent | 6.26:1 | AA |
| Destructive | 6.02:1 | AA |
| Text on background | 20.35:1 | AAA |
| Text on card | 20.35:1 | AAA |
| Primary button | 8.29:1 | AAA |
| Secondary button | 8.88:1 | AAA |
| Muted text | 6.59:1 | AA |
| Accent | 6.26:1 | AA |
| Destructive | 4.56:1 | AA |
Paste this into your globals.css to use Passing in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.982 0.005 305.676);
--foreground: oklch(0.113 0.03 306.886);
--muted: oklch(0.884 0.019 282.743);
--muted-foreground: oklch(0.447 0.022 282.242);
--popover: oklch(0.982 0.005 305.676);
--popover-foreground: oklch(0.113 0.03 306.886);
--card: oklch(0.982 0.005 305.676);
--card-foreground: oklch(0.113 0.03 306.886);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.848 0.088 304.35);
--primary-foreground: oklch(0.326 0.177 291.851);
--secondary: oklch(0.835 0.08 281.331);
--secondary-foreground: oklch(0.291 0.183 265.604);
--accent: oklch(0.876 0.102 324.211);
--accent-foreground: oklch(0.419 0.192 324.872);
--destructive: oklch(0.514 0.181 32.702);
--destructive-foreground: oklch(0.991 0.004 31.051);
--ring: oklch(0.848 0.088 304.35);
--chart-1: oklch(0.848 0.088 304.35);
--chart-2: oklch(0.835 0.08 281.331);
--chart-3: oklch(0.876 0.102 324.211);
--chart-4: oklch(0.873 0.06 281.849);
--chart-5: oklch(0.847 0.091 304.3);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.991 0.003 305.703);
--muted: oklch(0.227 0.026 280.901);
--muted-foreground: oklch(0.708 0.019 282.633);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.991 0.003 305.703);
--card: oklch(0 0 0);
--card-foreground: oklch(0.991 0.003 305.703);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.848 0.088 304.35);
--primary-foreground: oklch(0.326 0.177 291.851);
--secondary: oklch(0.835 0.08 281.331);
--secondary-foreground: oklch(0.291 0.183 265.604);
--accent: oklch(0.876 0.102 324.211);
--accent-foreground: oklch(0.419 0.192 324.872);
--destructive: oklch(0.589 0.21 32.603);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.848 0.088 304.35);
--chart-1: oklch(0.848 0.088 304.35);
--chart-2: oklch(0.835 0.08 281.331);
--chart-3: oklch(0.876 0.102 324.211);
--chart-4: oklch(0.873 0.06 281.849);
--chart-5: oklch(0.847 0.091 304.3);
}