Pressurisation is a shadcn/ui theme built around a light violet primary color (#d1c4f2) with light purple accents (#e7c4f2). The light mode uses a neutral background (#ffffff). Dark mode keeps the light violet primary (#d1c4f2) on a violet-tinted background (#06050b).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #06050bblack |
| Foreground | #06040cblack | #ffffffwhite |
| Card | #ffffffwhite | #06050bblack |
| Card foreground | #06040cblack | #ffffffwhite |
| Popover | #ffffffwhite | #06050bblack |
| Popover foreground | #06040cblack | #ffffffwhite |
| Primary | #d1c4f2thistle | #d1c4f2thistle |
| Primary foreground | #2e186dmidnightblue | #2e186dmidnightblue |
| Secondary | #c4cff2lightblue | #c4cff2lightblue |
| Secondary foreground | #182c6dmidnightblue | #182c6dmidnightblue |
| Muted | #e2e5eelavender | #11141dblack |
| Muted foreground | #414349darkslategray | #b6b8besilver |
| Accent | #e7c4f2thistle | #e7c4f2thistle |
| Accent foreground | #59186dindigo | #59186dindigo |
| Destructive | #6b2505maroon | #f45810orangered |
| Destructive foreground | #fbc2a7lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #d1c4f2thistle | #d1c4f2thistle |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.38:1 | AAA |
| Text on card | 20.38:1 | AAA |
| Primary button | 8.80:1 | AAA |
| Secondary button | 8.38:1 | AAA |
| Muted text | 7.85:1 | AAA |
| Accent | 7.67:1 | AAA |
| Destructive | 7.04:1 | AAA |
| Text on background | 20.34:1 | AAA |
| Text on card | 20.34:1 | AAA |
| Primary button | 8.80:1 | AAA |
| Secondary button | 8.38:1 | AAA |
| Muted text | 9.28:1 | AAA |
| Accent | 7.67:1 | AAA |
| Destructive | 3.35:1 | AA Large |
Paste this into your globals.css to use Pressurisation in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.115 0.022 298.317);
--muted: oklch(0.922 0.012 272.517);
--muted-foreground: oklch(0.382 0.011 272.338);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.115 0.022 298.317);
--card: oklch(1 0 180);
--card-foreground: oklch(0.115 0.022 298.317);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.847 0.064 297.225);
--primary-foreground: oklch(0.301 0.136 287.341);
--secondary: oklch(0.858 0.05 271.964);
--secondary-foreground: oklch(0.32 0.116 266.763);
--accent: oklch(0.866 0.072 318.244);
--accent-foreground: oklch(0.357 0.145 316.945);
--destructive: oklch(0.367 0.107 41.14);
--destructive-foreground: oklch(0.858 0.075 46.046);
--ring: oklch(0.847 0.064 297.225);
--chart-1: oklch(0.847 0.064 297.225);
--chart-2: oklch(0.858 0.05 271.964);
--chart-3: oklch(0.866 0.072 318.244);
--chart-4: oklch(0.889 0.039 272.154);
--chart-5: oklch(0.844 0.067 297.157);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.119 0.017 298.439);
--foreground: oklch(1 0 180);
--muted: oklch(0.192 0.018 271.437);
--muted-foreground: oklch(0.783 0.009 272.534);
--popover: oklch(0.119 0.017 298.439);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.119 0.017 298.439);
--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.847 0.064 297.225);
--primary-foreground: oklch(0.301 0.136 287.341);
--secondary: oklch(0.858 0.05 271.964);
--secondary-foreground: oklch(0.32 0.116 266.763);
--accent: oklch(0.866 0.072 318.244);
--accent-foreground: oklch(0.357 0.145 316.945);
--destructive: oklch(0.662 0.203 39.794);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.847 0.064 297.225);
--chart-1: oklch(0.847 0.064 297.225);
--chart-2: oklch(0.858 0.05 271.964);
--chart-3: oklch(0.866 0.072 318.244);
--chart-4: oklch(0.889 0.039 272.154);
--chart-5: oklch(0.844 0.067 297.157);
}