purple1 is a shadcn/ui theme built around a light purple primary color (#e2b3ef) with light teal accents (#b3efe2). The light mode uses a neutral background (#fdfbfe). Dark mode keeps the light purple primary (#e2b3ef) on a purple-tinted background (#0a030c).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfbfewhite | #0a030cblack |
| Foreground | #000000black | #fbf8fcghostwhite |
| Card | #fcf6fdghostwhite | #0d0510black |
| Card foreground | #000000black | #fdfcfdwhite |
| Popover | #fdfbfewhite | #0a030cblack |
| Popover foreground | #000000black | #fbf8fcghostwhite |
| Primary | #e2b3efplum | #e2b3efplum |
| Primary foreground | #4d135dindigo | #4d135dindigo |
| Secondary | #efe2b3wheat | #efe2b3wheat |
| Secondary foreground | #5d4d13darkolivegreen | #5d4d13darkolivegreen |
| Muted | #ece7d4antiquewhite | #2b2513black |
| Muted foreground | #5c5c5cdimgray | #a3a3a3darkgray |
| Accent | #b3efe2paleturquoise | #b3efe2paleturquoise |
| Accent foreground | #135d4ddarkslategray | #135d4ddarkslategray |
| Destructive | #61270amaroon | #d95717chocolate |
| Destructive foreground | #f6c1a7lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #e2b3efplum | #e2b3efplum |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.38:1 | AAA |
| Text on card | 19.78:1 | AAA |
| Primary button | 7.61:1 | AAA |
| Secondary button | 6.40:1 | AA |
| Muted text | 5.40:1 | AA |
| Accent | 6.07:1 | AA |
| Destructive | 7.26:1 | AAA |
| Text on background | 19.29:1 | AAA |
| Text on card | 19.63:1 | AAA |
| Primary button | 7.61:1 | AAA |
| Secondary button | 6.40:1 | AA |
| Muted text | 6.03:1 | AA |
| Accent | 6.07:1 | AA |
| Destructive | 3.93:1 | AA Large |
Paste this into your globals.css to use purple1 in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.99 0.006 318.889);
--foreground: oklch(0 0 0);
--muted: oklch(0.927 0.025 94.141);
--muted-foreground: oklch(0.474 0 198.435);
--popover: oklch(0.99 0.006 318.889);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.98 0.011 318.887);
--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.828 0.097 318.837);
--primary-foreground: oklch(0.322 0.13 317.806);
--secondary: oklch(0.912 0.063 94.43);
--secondary-foreground: oklch(0.425 0.077 92.92);
--accent: oklch(0.909 0.064 179.947);
--accent-foreground: oklch(0.431 0.075 174.357);
--destructive: oklch(0.352 0.093 43.591);
--destructive-foreground: oklch(0.852 0.07 47.88);
--ring: oklch(0.828 0.097 318.837);
--chart-1: oklch(0.828 0.097 318.837);
--chart-2: oklch(0.912 0.063 94.43);
--chart-3: oklch(0.909 0.064 179.947);
--chart-4: oklch(0.927 0.053 94.366);
--chart-5: oklch(0.827 0.102 318.833);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.122 0.027 320.472);
--foreground: oklch(0.983 0.005 318.889);
--muted: oklch(0.266 0.032 94.425);
--muted-foreground: oklch(0.716 0 165.964);
--popover: oklch(0.122 0.027 320.472);
--popover-foreground: oklch(0.983 0.005 318.889);
--card: oklch(0.135 0.031 319.597);
--card-foreground: oklch(0.991 0.003 318.89);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.828 0.097 318.837);
--primary-foreground: oklch(0.322 0.13 317.806);
--secondary: oklch(0.912 0.063 94.43);
--secondary-foreground: oklch(0.425 0.077 92.92);
--accent: oklch(0.909 0.064 179.947);
--accent-foreground: oklch(0.431 0.075 174.357);
--destructive: oklch(0.619 0.177 42.14);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.828 0.097 318.837);
--chart-1: oklch(0.828 0.097 318.837);
--chart-2: oklch(0.912 0.063 94.43);
--chart-3: oklch(0.909 0.064 179.947);
--chart-4: oklch(0.927 0.053 94.366);
--chart-5: oklch(0.827 0.102 318.833);
}