Piercing is a shadcn/ui theme built around a vivid violet primary color (#7402bb) with vivid teal accents (#02bb74). The light mode uses a neutral background (#fbf7fd). Dark mode keeps the vivid violet primary (#7402bb) on a violet-tinted background (#09040b).
| Token | Light | Dark |
|---|---|---|
| Background | #fbf7fdghostwhite | #09040bblack |
| Foreground | #030104black | #faf8fcghostwhite |
| Card | #fbf7fdghostwhite | #09040bblack |
| Card foreground | #030104black | #faf8fcghostwhite |
| Popover | #fbf7fdghostwhite | #09040bblack |
| Popover foreground | #030104black | #faf8fcghostwhite |
| Primary | #7402bbdarkviolet | #7402bbdarkviolet |
| Primary foreground | #f9f0ffghostwhite | #f9f0ffghostwhite |
| Secondary | #bb7402darkgoldenrod | #bb7402darkgoldenrod |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #e9e0d3gainsboro | #2c2416black |
| Muted foreground | #514c43darkslategray | #bcb7aesilver |
| Accent | #02bb74darkcyan | #02bb74darkcyan |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #74110bmaroon | #d51f15firebrick |
| Destructive foreground | #f8bdb9lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #7402bbdarkviolet | #7402bbdarkviolet |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.64:1 | AAA |
| Text on card | 19.64:1 | AAA |
| Primary button | 7.67:1 | AAA |
| Secondary button | 3.74:1 | AA Large |
| Muted text | 6.53:1 | AA |
| Accent | 2.51:1 | Fail |
| Destructive | 7.10:1 | AAA |
| Text on background | 19.26:1 | AAA |
| Text on card | 19.26:1 | AAA |
| Primary button | 7.67:1 | AAA |
| Secondary button | 3.74:1 | AA Large |
| Muted text | 7.69:1 | AAA |
| Accent | 2.51:1 | Fail |
| Destructive | 5.18:1 | AA |
Paste this into your globals.css to use Piercing in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.981 0.008 312.932);
--foreground: oklch(0.08 0.022 315.302);
--muted: oklch(0.911 0.02 79.879);
--muted-foreground: oklch(0.417 0.015 79.819);
--popover: oklch(0.981 0.008 312.932);
--popover-foreground: oklch(0.08 0.022 315.302);
--card: oklch(0.981 0.008 312.932);
--card-foreground: oklch(0.08 0.022 315.302);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.451 0.234 304.011);
--primary-foreground: oklch(0.966 0.022 312.83);
--secondary: oklch(0.621 0.136 67.982);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.697 0.164 157.548);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.362 0.134 28.936);
--destructive-foreground: oklch(0.85 0.069 22.077);
--ring: oklch(0.451 0.234 304.011);
--chart-1: oklch(0.451 0.234 304.011);
--chart-2: oklch(0.621 0.136 67.982);
--chart-3: oklch(0.697 0.164 157.548);
--chart-4: oklch(0.657 0.144 67.738);
--chart-5: oklch(0.453 0.238 303.624);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.121 0.023 314.43);
--foreground: oklch(0.982 0.005 312.952);
--muted: oklch(0.265 0.026 79.09);
--muted-foreground: oklch(0.78 0.013 79.898);
--popover: oklch(0.121 0.023 314.43);
--popover-foreground: oklch(0.982 0.005 312.952);
--card: oklch(0.121 0.023 314.43);
--card-foreground: oklch(0.982 0.005 312.952);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.451 0.234 304.011);
--primary-foreground: oklch(0.966 0.022 312.83);
--secondary: oklch(0.621 0.136 67.982);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.697 0.164 157.548);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.56 0.215 29.274);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.451 0.234 304.011);
--chart-1: oklch(0.451 0.234 304.011);
--chart-2: oklch(0.621 0.136 67.982);
--chart-3: oklch(0.697 0.164 157.548);
--chart-4: oklch(0.657 0.144 67.738);
--chart-5: oklch(0.453 0.238 303.624);
}