Scattered Burple is a shadcn/ui theme built around a vivid violet primary color (#692fe4) with muted light violet accents (#c9c3d5). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid violet primary (#692fe4) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #040208black | #f7f6f8whitesmoke |
| Card | #ffffffwhite | #000000black |
| Card foreground | #040208black | #f7f6f8whitesmoke |
| Popover | #ffffffwhite | #000000black |
| Popover foreground | #040208black | #f7f6f8whitesmoke |
| Primary | #692fe4blueviolet | #692fe4blueviolet |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #dddbe1gainsboro | #262626darkslategray |
| Secondary foreground | #433f4bdarkslategray | #bfbfbfsilver |
| Muted | #e9e7eelavender | #181111black |
| Muted foreground | #49474ddarkslategray | #b8b2b2darkgray |
| Accent | #c9c3d5thistle | #3e3232darkslategray |
| Accent foreground | #302a3cdarkslategray | #d6cdcdlightgrey |
| Destructive | #d5340bfirebrick | #f55e38tomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #eaeaeblavender | #19181bblack |
| Input | #eaeaeblavender | #19181bblack |
| Ring | #692fe4blueviolet | #692fe4blueviolet |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.64:1 | AAA |
| Text on card | 20.64:1 | AAA |
| Primary button | 6.71:1 | AA |
| Secondary button | 7.44:1 | AAA |
| Muted text | 7.47:1 | AAA |
| Accent | 8.03:1 | AAA |
| Destructive | 4.85:1 | AA |
| Text on background | 19.49:1 | AAA |
| Text on card | 19.49:1 | AAA |
| Primary button | 6.71:1 | AA |
| Secondary button | 8.20:1 | AAA |
| Muted text | 8.92:1 | AAA |
| Accent | 7.85:1 | AAA |
| Destructive | 6.52:1 | AA |
Paste this into your globals.css to use Scattered Burple in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.1 0.02 301.126);
--muted: oklch(0.932 0.01 300.589);
--muted-foreground: oklch(0.402 0.01 300.355);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.1 0.02 301.126);
--card: oklch(1 0 180);
--card-foreground: oklch(0.1 0.02 301.126);
--border: oklch(0.937 0.002 300.728);
--input: oklch(0.937 0.002 300.728);
--primary: oklch(0.503 0.247 288.41);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.894 0.008 300.615);
--secondary-foreground: oklch(0.375 0.021 299.82);
--accent: oklch(0.827 0.026 300.247);
--accent-foreground: oklch(0.299 0.034 298.876);
--destructive: oklch(0.573 0.203 33.559);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.503 0.247 288.41);
--chart-1: oklch(0.503 0.247 288.41);
--chart-2: oklch(0.894 0.008 300.615);
--chart-3: oklch(0.827 0.026 300.247);
--chart-4: oklch(0.919 0.006 300.654);
--chart-5: oklch(0.502 0.253 287.679);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.975 0.003 300.715);
--muted: oklch(0.186 0.012 18.324);
--muted-foreground: oklch(0.769 0.007 17.303);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.975 0.003 300.715);
--card: oklch(0 0 0);
--card-foreground: oklch(0.975 0.003 300.715);
--border: oklch(0.213 0.004 300.452);
--input: oklch(0.213 0.004 300.452);
--primary: oklch(0.503 0.247 288.41);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.27 0 180);
--secondary-foreground: oklch(0.805 0 169.695);
--accent: oklch(0.331 0.016 18);
--accent-foreground: oklch(0.854 0.01 17.356);
--destructive: oklch(0.673 0.192 35.093);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.503 0.247 288.41);
--chart-1: oklch(0.503 0.247 288.41);
--chart-2: oklch(0.27 0 180);
--chart-3: oklch(0.331 0.016 18);
--chart-4: oklch(0.301 0 189.462);
--chart-5: oklch(0.502 0.253 287.679);
}