Kaleidoscopic is a shadcn/ui theme built around a vivid violet primary color (#a665f1) with vivid purple accents (#ec65f1). The light mode uses a neutral background (#fcfbfe). Dark mode keeps the vivid violet primary (#a665f1) on a neutral background (#020203).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfbfewhite | #020203black |
| Foreground | #020104black | #faf8fcghostwhite |
| Card | #fcfbfewhite | #020203black |
| Card foreground | #020104black | #faf8fcghostwhite |
| Popover | #fcfbfewhite | #020203black |
| Popover foreground | #020104black | #faf8fcghostwhite |
| Primary | #a665f1mediumpurple | #a665f1mediumpurple |
| Primary foreground | #000000black | #000000black |
| Secondary | #656af1mediumslateblue | #656af1mediumslateblue |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #ededf2whitesmoke | #0d0d12black |
| Muted foreground | #525266dimgray | #999aaddarkgray |
| Accent | #ec65f1violet | #ec65f1violet |
| Accent foreground | #200321black | #200321black |
| Destructive | #d55210chocolate | #df5511chocolate |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #a665f1mediumpurple | #a665f1mediumpurple |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.20:1 | AAA |
| Text on card | 20.20:1 | AAA |
| Primary button | 5.75:1 | AA |
| Secondary button | 4.31:1 | AA Large |
| Muted text | 6.54:1 | AA |
| Accent | 7.01:1 | AAA |
| Destructive | 4.15:1 | AA Large |
| Text on background | 19.66:1 | AAA |
| Text on card | 19.66:1 | AAA |
| Primary button | 5.75:1 | AA |
| Secondary button | 4.31:1 | AA Large |
| Muted text | 7.00:1 | AAA |
| Accent | 7.01:1 | AAA |
| Destructive | 3.84:1 | AA Large |
Paste this into your globals.css to use Kaleidoscopic in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.99 0.004 307.061);
--foreground: oklch(0.081 0.017 308.517);
--muted: oklch(0.948 0.007 284.683);
--muted-foreground: oklch(0.447 0.032 283.476);
--popover: oklch(0.99 0.004 307.061);
--popover-foreground: oklch(0.081 0.017 308.517);
--card: oklch(0.99 0.004 307.061);
--card-foreground: oklch(0.081 0.017 308.517);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.642 0.204 302.548);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.593 0.199 276.98);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.724 0.231 326.315);
--accent-foreground: oklch(0.177 0.07 326.689);
--destructive: oklch(0.606 0.179 41.359);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.642 0.204 302.548);
--chart-1: oklch(0.642 0.204 302.548);
--chart-2: oklch(0.593 0.199 276.98);
--chart-3: oklch(0.724 0.231 326.315);
--chart-4: oklch(0.628 0.18 278.366);
--chart-5: oklch(0.64 0.21 302.324);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.085 0.011 307.933);
--foreground: oklch(0.981 0.005 307.044);
--muted: oklch(0.161 0.011 283.582);
--muted-foreground: oklch(0.691 0.028 284.058);
--popover: oklch(0.085 0.011 307.933);
--popover-foreground: oklch(0.981 0.005 307.044);
--card: oklch(0.085 0.011 307.933);
--card-foreground: oklch(0.981 0.005 307.044);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.642 0.204 302.548);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.593 0.199 276.98);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.724 0.231 326.315);
--accent-foreground: oklch(0.177 0.07 326.689);
--destructive: oklch(0.626 0.185 41.29);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.642 0.204 302.548);
--chart-1: oklch(0.642 0.204 302.548);
--chart-2: oklch(0.593 0.199 276.98);
--chart-3: oklch(0.724 0.231 326.315);
--chart-4: oklch(0.628 0.18 278.366);
--chart-5: oklch(0.64 0.21 302.324);
}