Passing is a shadcn/ui theme built around a neutral gray primary color (#bdbebb) with neutral gray accents (#bcbbbe). The light mode uses a neutral background (#fdfefb). Dark mode keeps the neutral gray primary (#bdbebb) on a neutral background (#060802).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfefbwhite | #060802black |
| Foreground | #0a0e02black | #fafbf9snow |
| Card | #fbfcf8snow | #0a0c03black |
| Card foreground | #070901black | #fdfdfcwhite |
| Popover | #fbfcf8snow | #0a0c03black |
| Popover foreground | #070901black | #fdfdfcwhite |
| Primary | #bdbebbsilver | #bdbebbsilver |
| Primary foreground | #242423black | #242423black |
| Secondary | #bcbbbesilver | #bcbbbesilver |
| Secondary foreground | #232324black | #232324black |
| Muted | #d9d6e1gainsboro | #211e29black |
| Muted foreground | #4c4757darkslategray | #ada8b8darkgray |
| Accent | #bcbbbesilver | #bcbbbesilver |
| Accent foreground | #232324black | #232324black |
| Destructive | #8b2c04saddlebrown | #fa6b2etomato |
| Destructive foreground | #fdd5c3peachpuff | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #bdbebbsilver | #bdbebbsilver |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.23:1 | AAA |
| Text on card | 19.46:1 | AAA |
| Primary button | 8.33:1 | AAA |
| Secondary button | 8.24:1 | AAA |
| Muted text | 6.22:1 | AA |
| Accent | 8.24:1 | AAA |
| Destructive | 6.27:1 | AA |
| Text on background | 19.36:1 | AAA |
| Text on card | 19.32:1 | AAA |
| Primary button | 8.33:1 | AAA |
| Secondary button | 8.24:1 | AAA |
| Muted text | 7.06:1 | AAA |
| Accent | 8.24:1 | AAA |
| Destructive | 7.20:1 | AAA |
Paste this into your globals.css to use Passing in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.995 0.003 119.36);
--foreground: oklch(0.154 0.031 120.103);
--muted: oklch(0.881 0.016 298.995);
--muted-foreground: oklch(0.409 0.027 298.175);
--popover: oklch(0.99 0.006 119.416);
--popover-foreground: oklch(0.133 0.026 119.269);
--card: oklch(0.99 0.006 119.416);
--card-foreground: oklch(0.133 0.026 119.269);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.8 0.004 119.385);
--primary-foreground: oklch(0.261 0.003 119.481);
--secondary: oklch(0.795 0.004 299.223);
--secondary-foreground: oklch(0.257 0.003 299.124);
--accent: oklch(0.795 0.004 299.223);
--accent-foreground: oklch(0.257 0.003 299.124);
--destructive: oklch(0.433 0.136 38.892);
--destructive-foreground: oklch(0.902 0.052 44.495);
--ring: oklch(0.8 0.004 119.385);
--chart-1: oklch(0.8 0.004 119.385);
--chart-2: oklch(0.795 0.004 299.223);
--chart-3: oklch(0.795 0.004 299.223);
--chart-4: oklch(0.819 0.003 299.235);
--chart-5: oklch(0.804 0.009 119.505);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.129 0.02 119.277);
--foreground: oklch(0.987 0.003 119.359);
--muted: oklch(0.244 0.022 297.735);
--muted-foreground: oklch(0.74 0.023 298.771);
--popover: oklch(0.149 0.023 119.684);
--popover-foreground: oklch(0.994 0.002 119.332);
--card: oklch(0.149 0.023 119.684);
--card-foreground: oklch(0.994 0.002 119.332);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.8 0.004 119.385);
--primary-foreground: oklch(0.261 0.003 119.481);
--secondary: oklch(0.795 0.004 299.223);
--secondary-foreground: oklch(0.257 0.003 299.124);
--accent: oklch(0.795 0.004 299.223);
--accent-foreground: oklch(0.257 0.003 299.124);
--destructive: oklch(0.696 0.189 41.247);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.8 0.004 119.385);
--chart-1: oklch(0.8 0.004 119.385);
--chart-2: oklch(0.795 0.004 299.223);
--chart-3: oklch(0.795 0.004 299.223);
--chart-4: oklch(0.819 0.003 299.235);
--chart-5: oklch(0.804 0.009 119.505);
}