Passive is a shadcn/ui theme built around a pink primary color (#d17595) with muted light pink accents (#dac8ce). The light mode uses a neutral background (#fefbfc). Dark mode keeps the pink primary (#d17595) on a pink-tinted background (#0a0507).
| Token | Light | Dark |
|---|---|---|
| Background | #fefbfcsnow | #0a0507black |
| Foreground | #040102black | #f9f6f7whitesmoke |
| Card | #fefbfcsnow | #0a0507black |
| Card foreground | #040102black | #f9f6f7whitesmoke |
| Popover | #fefbfcsnow | #0a0507black |
| Popover foreground | #040102black | #f9f6f7whitesmoke |
| Primary | #d17595palevioletred | #d17595palevioletred |
| Primary foreground | #0f0509black | #0f0509black |
| Secondary | #dac8cethistle | #36262bdarkslategray |
| Secondary foreground | #432d35darkslategray | #d1bdc4silver |
| Muted | #ebdbe0gainsboro | #24141ablack |
| Muted foreground | #5d464edimgray | #b9a2aadarkgray |
| Accent | #dac8cethistle | #36262bdarkslategray |
| Accent foreground | #432d35darkslategray | #d1bdc4silver |
| Destructive | #b50303darkred | #e20303red |
| Destructive foreground | #ffebeblinen | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #d17595palevioletred | #d17595palevioletred |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.18:1 | AAA |
| Text on card | 20.18:1 | AAA |
| Primary button | 6.41:1 | AA |
| Secondary button | 7.88:1 | AAA |
| Muted text | 6.40:1 | AA |
| Accent | 7.88:1 | AAA |
| Destructive | 6.16:1 | AA |
| Text on background | 18.83:1 | AAA |
| Text on card | 18.83:1 | AAA |
| Primary button | 6.41:1 | AA |
| Secondary button | 8.04:1 | AAA |
| Muted text | 7.41:1 | AAA |
| Accent | 8.04:1 | AAA |
| Destructive | 4.93:1 | AA |
Paste this into your globals.css to use Passive in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.99 0.004 353.684);
--foreground: oklch(0.084 0.014 353.233);
--muted: oklch(0.905 0.02 354.203);
--muted-foreground: oklch(0.422 0.033 355.756);
--popover: oklch(0.99 0.004 353.684);
--popover-foreground: oklch(0.084 0.014 353.233);
--card: oklch(0.99 0.004 353.684);
--card-foreground: oklch(0.084 0.014 353.233);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.674 0.12 358.462);
--primary-foreground: oklch(0.136 0.022 354.877);
--secondary: oklch(0.85 0.022 354.316);
--secondary-foreground: oklch(0.326 0.035 356.52);
--accent: oklch(0.85 0.022 354.316);
--accent-foreground: oklch(0.326 0.035 356.52);
--destructive: oklch(0.486 0.198 29.086);
--destructive-foreground: oklch(0.956 0.022 17.536);
--ring: oklch(0.674 0.12 358.462);
--chart-1: oklch(0.674 0.12 358.462);
--chart-2: oklch(0.85 0.022 354.316);
--chart-3: oklch(0.85 0.022 354.316);
--chart-4: oklch(0.875 0.018 354.171);
--chart-5: oklch(0.673 0.127 358.779);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.126 0.013 353.367);
--foreground: oklch(0.976 0.003 353.658);
--muted: oklch(0.215 0.029 357.29);
--muted-foreground: oklch(0.734 0.029 354.676);
--popover: oklch(0.126 0.013 353.367);
--popover-foreground: oklch(0.976 0.003 353.658);
--card: oklch(0.126 0.013 353.367);
--card-foreground: oklch(0.976 0.003 353.658);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.674 0.12 358.462);
--primary-foreground: oklch(0.136 0.022 354.877);
--secondary: oklch(0.289 0.027 356.101);
--secondary-foreground: oklch(0.817 0.025 354.43);
--accent: oklch(0.289 0.027 356.101);
--accent-foreground: oklch(0.817 0.025 354.43);
--destructive: oklch(0.574 0.234 29.122);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.674 0.12 358.462);
--chart-1: oklch(0.674 0.12 358.462);
--chart-2: oklch(0.289 0.027 356.101);
--chart-3: oklch(0.289 0.027 356.101);
--chart-4: oklch(0.318 0.03 356.191);
--chart-5: oklch(0.673 0.127 358.779);
}