Purple is a shadcn/ui theme built around a vivid deep pink primary color (#320618) with vivid deep red accents (#320a06). The light mode uses a neutral background (#fefbfc). Dark mode keeps the vivid deep pink primary (#320618) on a neutral background (#070305).
| Token | Light | Dark |
|---|---|---|
| Background | #fefbfcsnow | #070305black |
| Foreground | #000000black | #fcf8fasnow |
| Card | #fdf7f9snow | #0a0507black |
| Card foreground | #000000black | #fdfcfcsnow |
| Popover | #fdf7f9snow | #0a0507black |
| Popover foreground | #000000black | #fdfcfcsnow |
| Primary | #320618black | #320618black |
| Primary foreground | #f07aa9hotpink | #f07aa9hotpink |
| Secondary | #32062eblack | #32062eblack |
| Secondary foreground | #f07ae4violet | #f07ae4violet |
| Muted | #f3ecf2whitesmoke | #130c12black |
| Muted foreground | #4f4a4edarkslategray | #b5b0b4darkgray |
| Accent | #320a06black | #320a06black |
| Accent foreground | #f0867alightcoral | #f0867alightcoral |
| Destructive | #981210darkred | #ea3b39crimson |
| Destructive foreground | #fcdfdfmistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #320618black | #320618black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.40:1 | AAA |
| Text on card | 19.83:1 | AAA |
| Primary button | 6.85:1 | AA |
| Secondary button | 7.16:1 | AAA |
| Muted text | 7.48:1 | AAA |
| Accent | 7.08:1 | AAA |
| Destructive | 6.87:1 | AA |
| Text on background | 19.45:1 | AAA |
| Text on card | 19.75:1 | AAA |
| Primary button | 6.85:1 | AA |
| Secondary button | 7.16:1 | AAA |
| Muted text | 9.03:1 | AAA |
| Accent | 7.08:1 | AAA |
| Destructive | 4.03:1 | AA Large |
Paste this into your globals.css to use Purple in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.004 350.727);
--foreground: oklch(0 0 0);
--muted: oklch(0.951 0.011 328.717);
--muted-foreground: oklch(0.416 0.009 328.83);
--popover: oklch(0.981 0.007 350.832);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.981 0.007 350.832);
--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.216 0.074 1.006);
--primary-foreground: oklch(0.727 0.153 356.325);
--secondary: oklch(0.228 0.089 332.55);
--secondary-foreground: oklch(0.749 0.192 331.162);
--accent: oklch(0.217 0.066 30.513);
--accent-foreground: oklch(0.733 0.132 27.399);
--destructive: oklch(0.436 0.167 28.329);
--destructive-foreground: oklch(0.927 0.031 18.899);
--ring: oklch(0.216 0.074 1.006);
--chart-1: oklch(0.216 0.074 1.006);
--chart-2: oklch(0.228 0.089 332.55);
--chart-3: oklch(0.217 0.066 30.513);
--chart-4: oklch(0.264 0.106 332.759);
--chart-5: oklch(0.216 0.076 1.352);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.11 0.011 350.413);
--foreground: oklch(0.983 0.004 350.735);
--muted: oklch(0.166 0.017 329.646);
--muted-foreground: oklch(0.763 0.008 328.705);
--popover: oklch(0.126 0.013 350.413);
--popover-foreground: oklch(0.991 0.002 350.678);
--card: oklch(0.126 0.013 350.413);
--card-foreground: oklch(0.991 0.002 350.678);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.216 0.074 1.006);
--primary-foreground: oklch(0.727 0.153 356.325);
--secondary: oklch(0.228 0.089 332.55);
--secondary-foreground: oklch(0.749 0.192 331.162);
--accent: oklch(0.217 0.066 30.513);
--accent-foreground: oklch(0.733 0.132 27.399);
--destructive: oklch(0.62 0.212 26.678);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.216 0.074 1.006);
--chart-1: oklch(0.216 0.074 1.006);
--chart-2: oklch(0.228 0.089 332.55);
--chart-3: oklch(0.217 0.066 30.513);
--chart-4: oklch(0.264 0.106 332.759);
--chart-5: oklch(0.216 0.076 1.352);
}