Piracy is a shadcn/ui theme built around a muted purple primary color (#947f92) with muted cyan accents (#7f9294). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted purple primary (#947f92) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #000000black | #ffffffwhite |
| Card | #ffffffwhite | #000000black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #ffffffwhite | #000000black |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #947f92gray | #947f92gray |
| Primary foreground | #000000black | #000000black |
| Secondary | #92947fgray | #92947fgray |
| Secondary foreground | #000000black | #000000black |
| Muted | #f5f6eewhitesmoke | #101109black |
| Muted foreground | #585a49darkolivegreen | #b4b6a5darkgray |
| Accent | #7f9294lightslategray | #7f9294lightslategray |
| Accent foreground | #000000black | #000000black |
| Destructive | #75180amaroon | #eb391eorangered |
| Destructive foreground | #f9c1b9lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #947f92gray | #947f92gray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 21.00:1 | AAA |
| Text on card | 21.00:1 | AAA |
| Primary button | 5.72:1 | AA |
| Secondary button | 6.77:1 | AA |
| Muted text | 6.50:1 | AA |
| Accent | 6.43:1 | AA |
| Destructive | 7.03:1 | AAA |
| Text on background | 21.00:1 | AAA |
| Text on card | 21.00:1 | AAA |
| Primary button | 5.72:1 | AA |
| Secondary button | 6.77:1 | AA |
| Muted text | 9.21:1 | AAA |
| Accent | 6.43:1 | AA |
| Destructive | 4.07:1 | AA Large |
Paste this into your globals.css to use Piracy in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0 0 0);
--muted: oklch(0.971 0.01 111.982);
--muted-foreground: oklch(0.46 0.026 112.815);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0 0 0);
--card: oklch(1 0 180);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.622 0.037 329.809);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.659 0.03 112.638);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.645 0.022 206.285);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.371 0.129 31.643);
--destructive-foreground: oklch(0.859 0.065 28.516);
--ring: oklch(0.622 0.037 329.809);
--chart-1: oklch(0.622 0.037 329.809);
--chart-2: oklch(0.659 0.03 112.638);
--chart-3: oklch(0.645 0.022 206.285);
--chart-4: oklch(0.683 0.028 112.55);
--chart-5: oklch(0.62 0.05 330.029);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(1 0 180);
--muted: oklch(0.172 0.016 113.436);
--muted-foreground: oklch(0.769 0.023 112.333);
--popover: oklch(0 0 0);
--popover-foreground: oklch(1 0 180);
--card: oklch(0 0 0);
--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.622 0.037 329.809);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.659 0.03 112.638);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.645 0.022 206.285);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.618 0.218 31.626);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.622 0.037 329.809);
--chart-1: oklch(0.622 0.037 329.809);
--chart-2: oklch(0.659 0.03 112.638);
--chart-3: oklch(0.645 0.022 206.285);
--chart-4: oklch(0.683 0.028 112.55);
--chart-5: oklch(0.62 0.05 330.029);
}