Puissant Purple Leopard is a shadcn/ui theme built around a violet primary color (#7a2dbe) with near-white accents (#e8e7e9). The light mode uses a neutral background (#faf8fc). Dark mode keeps the violet primary (#7a2dbe) on a violet-tinted background (#08030c).
| Token | Light | Dark |
|---|---|---|
| Background | #faf8fcghostwhite | #08030cblack |
| Foreground | #0b0510black | #ffffffwhite |
| Card | #f8f4fbghostwhite | #110719black |
| Card foreground | #08030cblack | #ffffffwhite |
| Popover | #f8f4fbghostwhite | #0b0410black |
| Popover foreground | #08030cblack | #ffffffwhite |
| Primary | #7a2dbedarkorchid | #7a2dbedarkorchid |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #e8e7e9lavender | #1a161dblack |
| Secondary foreground | #4f4b53darkslategray | #b3a9bcdarkgray |
| Muted | #e3dde9gainsboro | #1c1622black |
| Muted foreground | #57515ddimgray | #a9a2aedarkgray |
| Accent | #e8e7e9lavender | #1a161dblack |
| Accent foreground | #4f4b53darkslategray | #b3a9bcdarkgray |
| Destructive | #8c2508saddlebrown | #f24f21orangered |
| Destructive foreground | #fcd5cabisque | #ffffffwhite |
| Border | #ededeewhitesmoke | #262527darkslategray |
| Input | #ededeewhitesmoke | #262527darkslategray |
| Ring | #7a2dbedarkorchid | #7a2dbedarkorchid |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.03:1 | AAA |
| Text on card | 18.76:1 | AAA |
| Primary button | 7.13:1 | AAA |
| Secondary button | 6.91:1 | AA |
| Muted text | 5.75:1 | AA |
| Accent | 6.91:1 | AA |
| Destructive | 6.53:1 | AA |
| Text on background | 20.39:1 | AAA |
| Text on card | 19.64:1 | AAA |
| Primary button | 7.13:1 | AAA |
| Secondary button | 7.90:1 | AAA |
| Muted text | 7.12:1 | AAA |
| Accent | 7.90:1 | AAA |
| Destructive | 3.55:1 | AA Large |
Paste this into your globals.css to use Puissant Purple Leopard in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.981 0.006 309.72);
--foreground: oklch(0.13 0.029 309.641);
--muted: oklch(0.906 0.018 309.588);
--muted-foreground: oklch(0.444 0.021 309.314);
--popover: oklch(0.972 0.01 309.686);
--popover-foreground: oklch(0.118 0.025 311.195);
--card: oklch(0.972 0.01 309.686);
--card-foreground: oklch(0.118 0.025 311.195);
--border: oklch(0.946 0.002 309.769);
--input: oklch(0.946 0.002 309.769);
--primary: oklch(0.486 0.212 303.415);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.929 0.003 309.749);
--secondary-foreground: oklch(0.42 0.014 309.455);
--accent: oklch(0.929 0.003 309.749);
--accent-foreground: oklch(0.42 0.014 309.455);
--destructive: oklch(0.426 0.143 34.83);
--destructive-foreground: oklch(0.903 0.047 35.949);
--ring: oklch(0.486 0.212 303.415);
--chart-1: oklch(0.486 0.212 303.415);
--chart-2: oklch(0.929 0.003 309.749);
--chart-3: oklch(0.929 0.003 309.749);
--chart-4: oklch(0.953 0.002 309.762);
--chart-5: oklch(0.486 0.219 302.946);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.117 0.026 311.234);
--foreground: oklch(1 0 180);
--muted: oklch(0.214 0.026 308.585);
--muted-foreground: oklch(0.722 0.019 309.528);
--popover: oklch(0.13 0.03 309.649);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.156 0.04 307.293);
--card-foreground: oklch(1 0 180);
--border: oklch(0.267 0.005 309.616);
--input: oklch(0.267 0.005 309.616);
--primary: oklch(0.486 0.212 303.415);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.209 0.013 309.175);
--secondary-foreground: oklch(0.75 0.028 309.414);
--accent: oklch(0.209 0.013 309.175);
--accent-foreground: oklch(0.75 0.028 309.414);
--destructive: oklch(0.649 0.207 35.368);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.486 0.212 303.415);
--chart-1: oklch(0.486 0.212 303.415);
--chart-2: oklch(0.209 0.013 309.175);
--chart-3: oklch(0.209 0.013 309.175);
--chart-4: oklch(0.24 0.016 309.118);
--chart-5: oklch(0.486 0.219 302.946);
}