Pressurization is a shadcn/ui theme built around a vivid purple primary color (#bd14a4) with muted light purple accents (#e9e2e8). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid purple primary (#bd14a4) on a purple-tinted background (#0d070c).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #0d070cblack |
| Foreground | #160313black | #faf4f9whitesmoke |
| Card | #ffffffwhite | #0d070cblack |
| Card foreground | #160313black | #faf4f9whitesmoke |
| Popover | #ffffffwhite | #0d070cblack |
| Popover foreground | #160313black | #faf4f9whitesmoke |
| Primary | #bd14a4mediumvioletred | #bd14a4mediumvioletred |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #e9e2e8gainsboro | #312b30darkslategray |
| Secondary foreground | #564353darkslategray | #cbc3casilver |
| Muted | #e4dde3gainsboro | #221b21black |
| Muted foreground | #675f66dimgray | #a0989edarkgray |
| Accent | #e9e2e8gainsboro | #312b30darkslategray |
| Accent foreground | #564353darkslategray | #cbc3casilver |
| Destructive | #c6270cfirebrick | #f4593etomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #bd14a4mediumvioletred | #bd14a4mediumvioletred |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.87:1 | AAA |
| Text on card | 19.87:1 | AAA |
| Primary button | 5.52:1 | AA |
| Secondary button | 7.11:1 | AAA |
| Muted text | 4.61:1 | AA |
| Accent | 7.11:1 | AAA |
| Destructive | 5.68:1 | AA |
| Text on background | 18.38:1 | AAA |
| Text on card | 18.38:1 | AAA |
| Primary button | 5.52:1 | AA |
| Secondary button | 8.05:1 | AAA |
| Muted text | 5.99:1 | AA |
| Accent | 8.05:1 | AAA |
| Destructive | 6.35:1 | AA |
Paste this into your globals.css to use Pressurization in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.149 0.047 333.343);
--muted: oklch(0.904 0.012 330.41);
--muted-foreground: oklch(0.497 0.015 330.619);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.149 0.047 333.343);
--card: oklch(1 0 180);
--card-foreground: oklch(0.149 0.047 333.343);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.551 0.235 336.103);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.92 0.01 330.38);
--secondary-foreground: oklch(0.409 0.035 331.308);
--accent: oklch(0.92 0.01 330.38);
--accent-foreground: oklch(0.409 0.035 331.308);
--destructive: oklch(0.535 0.197 31.882);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.551 0.235 336.103);
--chart-1: oklch(0.551 0.235 336.103);
--chart-2: oklch(0.92 0.01 330.38);
--chart-3: oklch(0.92 0.01 330.38);
--chart-4: oklch(0.944 0.007 330.337);
--chart-5: oklch(0.556 0.239 336.258);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.141 0.016 331.379);
--foreground: oklch(0.974 0.009 330.371);
--muted: oklch(0.233 0.016 331.112);
--muted-foreground: oklch(0.687 0.013 330.496);
--popover: oklch(0.141 0.016 331.379);
--popover-foreground: oklch(0.974 0.009 330.371);
--card: oklch(0.141 0.016 331.379);
--card-foreground: oklch(0.974 0.009 330.371);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.551 0.235 336.103);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.297 0.013 330.814);
--secondary-foreground: oklch(0.825 0.013 330.443);
--accent: oklch(0.297 0.013 330.814);
--accent-foreground: oklch(0.825 0.013 330.443);
--destructive: oklch(0.666 0.194 32.275);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.551 0.235 336.103);
--chart-1: oklch(0.551 0.235 336.103);
--chart-2: oklch(0.297 0.013 330.814);
--chart-3: oklch(0.297 0.013 330.814);
--chart-4: oklch(0.327 0.015 330.833);
--chart-5: oklch(0.556 0.239 336.258);
}