P. \ Zenith is a shadcn/ui theme built around a vivid light violet primary color (#b885ff) with deep violet accents (#3c274e). The light mode uses a violet-tinted background (#150e1b). Dark mode keeps the vivid light violet primary (#b885ff) on a violet-tinted background (#150e1b).
| Token | Light | Dark |
|---|---|---|
| Background | #150e1bblack | #150e1bblack |
| Foreground | #f3b9bblightpink | #f3b9bblightpink |
| Card | #100a14black | #100a14black |
| Card foreground | #f7cfd0pink | #f7cfd0pink |
| Popover | #0d0911black | #0d0911black |
| Popover foreground | #fbe5e6mistyrose | #fbe5e6mistyrose |
| Primary | #b885ffmediumpurple | #b885ffmediumpurple |
| Primary foreground | #220052midnightblue | #220052midnightblue |
| Secondary | #3d2d53darkslategray | #3d2d53darkslategray |
| Secondary foreground | #d7cde4gainsboro | #d7cde4gainsboro |
| Muted | #27222bdarkslategray | #27222bdarkslategray |
| Muted foreground | #a69bb0darkgray | #a69bb0darkgray |
| Accent | #3c274edarkslategray | #3c274edarkslategray |
| Accent foreground | #d5c5e2thistle | #d5c5e2thistle |
| Destructive | #ea301fcrimson | #ea301fcrimson |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #221a29black | #221a29black |
| Input | #291f32darkslategray | #291f32darkslategray |
| Ring | #b885ffmediumpurple | #b885ffmediumpurple |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 11.24:1 | AAA |
| Text on card | 13.74:1 | AAA |
| Primary button | 6.55:1 | AA |
| Secondary button | 8.13:1 | AAA |
| Muted text | 5.90:1 | AA |
| Accent | 8.09:1 | AAA |
| Destructive | 4.24:1 | AA Large |
| Text on background | 11.24:1 | AAA |
| Text on card | 13.74:1 | AAA |
| Primary button | 6.55:1 | AA |
| Secondary button | 8.13:1 | AAA |
| Muted text | 5.90:1 | AA |
| Accent | 8.09:1 | AAA |
| Destructive | 4.24:1 | AA Large |
Paste this into your globals.css to use P. \ Zenith in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.179 0.029 308.133);
--foreground: oklch(0.84 0.067 16.368);
--muted: oklch(0.26 0.018 309.089);
--muted-foreground: oklch(0.706 0.033 309.319);
--popover: oklch(0.148 0.019 308.638);
--popover-foreground: oklch(0.939 0.024 15.271);
--card: oklch(0.158 0.023 308.351);
--card-foreground: oklch(0.889 0.045 15.764);
--border: oklch(0.233 0.031 308.45);
--input: oklch(0.262 0.037 308.362);
--primary: oklch(0.716 0.177 301.294);
--primary-foreground: oklch(0.229 0.128 291.667);
--secondary: oklch(0.332 0.068 302.042);
--secondary-foreground: oklch(0.864 0.033 304.518);
--accent: oklch(0.318 0.071 307.413);
--accent-foreground: oklch(0.846 0.042 309.288);
--destructive: oklch(0.609 0.223 29.975);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.716 0.177 301.294);
--chart-1: oklch(0.716 0.177 301.294);
--chart-2: oklch(0.332 0.068 302.042);
--chart-3: oklch(0.318 0.071 307.413);
--chart-4: oklch(0.357 0.075 301.97);
--chart-5: oklch(0.714 0.182 301.151);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.179 0.029 308.133);
--foreground: oklch(0.84 0.067 16.368);
--muted: oklch(0.26 0.018 309.089);
--muted-foreground: oklch(0.706 0.033 309.319);
--popover: oklch(0.148 0.019 308.638);
--popover-foreground: oklch(0.939 0.024 15.271);
--card: oklch(0.158 0.023 308.351);
--card-foreground: oklch(0.889 0.045 15.764);
--border: oklch(0.233 0.031 308.45);
--input: oklch(0.262 0.037 308.362);
--primary: oklch(0.716 0.177 301.294);
--primary-foreground: oklch(0.229 0.128 291.667);
--secondary: oklch(0.332 0.068 302.042);
--secondary-foreground: oklch(0.864 0.033 304.518);
--accent: oklch(0.318 0.071 307.413);
--accent-foreground: oklch(0.846 0.042 309.288);
--destructive: oklch(0.609 0.223 29.975);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.716 0.177 301.294);
--chart-1: oklch(0.716 0.177 301.294);
--chart-2: oklch(0.332 0.068 302.042);
--chart-3: oklch(0.318 0.071 307.413);
--chart-4: oklch(0.357 0.075 301.97);
--chart-5: oklch(0.714 0.182 301.151);
}