Piercing is a shadcn/ui theme built around a vivid light pink primary color (#fbb1d1) with vivid light red accents (#fbb6b1). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid light pink primary (#fbb1d1) on a pink-tinted background (#0c0307).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #0c0307black |
| Foreground | #000000black | #fdfcfcsnow |
| Card | #fcfcfcsnow | #100409black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #ffffffwhite | #0c0307black |
| Popover foreground | #000000black | #fdfcfcsnow |
| Primary | #fbb1d1pink | #fbb1d1pink |
| Primary foreground | #740636maroon | #740636maroon |
| Secondary | #fbb1f6plum | #fbb1f6plum |
| Secondary foreground | #74066dpurple | #74066dpurple |
| Muted | #eadce9gainsboro | #231522black |
| Muted foreground | #614c60dimgray | #b39eb1darkgray |
| Accent | #fbb6b1lightpink | #fbb6b1lightpink |
| Accent foreground | #740d06maroon | #740d06maroon |
| Destructive | #8d2701saddlebrown | #fc4503orangered |
| Destructive foreground | #fed2c2peachpuff | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #fbb1d1pink | #fbb1d1pink |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 21.00:1 | AAA |
| Text on card | 20.54:1 | AAA |
| Primary button | 6.77:1 | AA |
| Secondary button | 6.41:1 | AA |
| Muted text | 5.87:1 | AA |
| Accent | 6.91:1 | AA |
| Destructive | 6.26:1 | AA |
| Text on background | 19.84:1 | AAA |
| Text on card | 20.08:1 | AAA |
| Primary button | 6.77:1 | AA |
| Secondary button | 6.41:1 | AA |
| Muted text | 7.01:1 | AAA |
| Accent | 6.91:1 | AA |
| Destructive | 3.49:1 | AA Large |
Paste this into your globals.css to use Piercing in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0 0 0);
--muted: oklch(0.91 0.022 327.784);
--muted-foreground: oklch(0.446 0.041 328.409);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.992 0 161.565);
--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.84 0.094 351.648);
--primary-foreground: oklch(0.364 0.141 3.778);
--secondary: oklch(0.852 0.122 328.862);
--secondary-foreground: oklch(0.391 0.172 331.684);
--accent: oklch(0.84 0.081 23.531);
--accent-foreground: oklch(0.36 0.137 29.779);
--destructive: oklch(0.431 0.144 36.77);
--destructive-foreground: oklch(0.899 0.054 40.966);
--ring: oklch(0.84 0.094 351.648);
--chart-1: oklch(0.84 0.094 351.648);
--chart-2: oklch(0.852 0.122 328.862);
--chart-3: oklch(0.84 0.081 23.531);
--chart-4: oklch(0.879 0.099 328.594);
--chart-5: oklch(0.839 0.097 351.747);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.121 0.023 348.68);
--foreground: oklch(0.992 0.002 348.783);
--muted: oklch(0.22 0.031 328.855);
--muted-foreground: oklch(0.723 0.036 328.029);
--popover: oklch(0.121 0.023 348.68);
--popover-foreground: oklch(0.992 0.002 348.783);
--card: oklch(0.135 0.026 350.39);
--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.84 0.094 351.648);
--primary-foreground: oklch(0.364 0.141 3.778);
--secondary: oklch(0.852 0.122 328.862);
--secondary-foreground: oklch(0.391 0.172 331.684);
--accent: oklch(0.84 0.081 23.531);
--accent-foreground: oklch(0.36 0.137 29.779);
--destructive: oklch(0.656 0.227 35.444);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.84 0.094 351.648);
--chart-1: oklch(0.84 0.094 351.648);
--chart-2: oklch(0.852 0.122 328.862);
--chart-3: oklch(0.84 0.081 23.531);
--chart-4: oklch(0.879 0.099 328.594);
--chart-5: oklch(0.839 0.097 351.747);
}