Prickly is a shadcn/ui theme built around a vivid violet primary color (#4c0abd) with muted light violet accents (#cec7dc). The light mode uses a neutral background (#fcfbfe). Dark mode keeps the vivid violet primary (#4c0abd) on a neutral background (#040308).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfbfewhite | #040308black |
| Foreground | #020104black | #ffffffwhite |
| Card | #fcfbfewhite | #040308black |
| Card foreground | #020104black | #ffffffwhite |
| Popover | #fcfbfewhite | #040308black |
| Popover foreground | #020104black | #ffffffwhite |
| Primary | #4c0abdindigo | #4c0abdindigo |
| Primary foreground | #fcfaffghostwhite | #fcfaffghostwhite |
| Secondary | #eae7eelavender | #141316black |
| Secondary foreground | #4e455fdarkslategray | #aca8b3darkgray |
| Muted | #dfdce5gainsboro | #1d1a23black |
| Muted foreground | #524d5bdarkslategray | #a9a4b2darkgray |
| Accent | #cec7dcthistle | #221f29black |
| Accent foreground | #352b45darkslategray | #bab3c6silver |
| Destructive | #942405saddlebrown | #f84f20orangered |
| Destructive foreground | #fdd8cebisque | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #4c0abdindigo | #4c0abdindigo |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.18:1 | AAA |
| Text on card | 20.18:1 | AAA |
| Primary button | 9.73:1 | AAA |
| Secondary button | 7.34:1 | AAA |
| Muted text | 6.02:1 | AA |
| Accent | 8.08:1 | AAA |
| Destructive | 6.31:1 | AA |
| Text on background | 20.57:1 | AAA |
| Text on card | 20.57:1 | AAA |
| Primary button | 9.73:1 | AAA |
| Secondary button | 7.94:1 | AAA |
| Muted text | 7.04:1 | AAA |
| Accent | 8.00:1 | AAA |
| Destructive | 3.42:1 | AA Large |
Paste this into your globals.css to use Prickly in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.99 0.004 302.863);
--foreground: oklch(0.081 0.015 303.636);
--muted: oklch(0.899 0.013 302.71);
--muted-foreground: oklch(0.432 0.023 302.124);
--popover: oklch(0.99 0.004 302.863);
--popover-foreground: oklch(0.081 0.015 303.636);
--card: oklch(0.99 0.004 302.863);
--card-foreground: oklch(0.081 0.015 303.636);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.408 0.231 285.941);
--primary-foreground: oklch(0.988 0.006 302.832);
--secondary: oklch(0.933 0.009 302.78);
--secondary-foreground: oklch(0.409 0.045 301.244);
--accent: oklch(0.841 0.03 302.382);
--accent-foreground: oklch(0.312 0.047 300.568);
--destructive: oklch(0.441 0.153 34.463);
--destructive-foreground: oklch(0.911 0.045 35.947);
--ring: oklch(0.408 0.231 285.941);
--chart-1: oklch(0.408 0.231 285.941);
--chart-2: oklch(0.933 0.009 302.78);
--chart-3: oklch(0.841 0.03 302.382);
--chart-4: oklch(0.958 0.006 302.839);
--chart-5: oklch(0.41 0.235 285.147);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.103 0.018 303.6);
--foreground: oklch(1 0 180);
--muted: oklch(0.226 0.018 301.692);
--muted-foreground: oklch(0.727 0.02 302.511);
--popover: oklch(0.103 0.018 303.6);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.103 0.018 303.6);
--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.408 0.231 285.941);
--primary-foreground: oklch(0.988 0.006 302.832);
--secondary: oklch(0.189 0.006 302.451);
--secondary-foreground: oklch(0.738 0.017 302.58);
--accent: oklch(0.247 0.019 301.722);
--accent-foreground: oklch(0.779 0.027 302.4);
--destructive: oklch(0.66 0.213 35.273);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.408 0.231 285.941);
--chart-1: oklch(0.408 0.231 285.941);
--chart-2: oklch(0.189 0.006 302.451);
--chart-3: oklch(0.247 0.019 301.722);
--chart-4: oklch(0.221 0.008 302.389);
--chart-5: oklch(0.41 0.235 285.147);
}