Kaleidoscopic for shadcn/ui

Kaleidoscopic is a shadcn/ui theme built around a vivid light indigo primary color (#ae9dfb) with vivid light violet accents (#dd9dfb). The light mode uses a neutral background (#f9f8fc). Dark mode keeps the vivid light indigo primary (#ae9dfb) on an indigo-tinted background (#06050a).

Color palette

TokenLightDark
Background
#f9f8fcghostwhite
#06050ablack
Foreground
#030208black
#fcfcfdwhite
Card
#f9f8fcghostwhite
#06050ablack
Card foreground
#030208black
#fcfcfdwhite
Popover
#f9f8fcghostwhite
#06050ablack
Popover foreground
#030208black
#fcfcfdwhite
Primary
#ae9dfblightsteelblue
#ae9dfblightsteelblue
Primary foreground
#150462midnightblue
#150462midnightblue
Secondary
#9dbbfblightskyblue
#9dbbfblightskyblue
Secondary foreground
#042262midnightblue
#042262midnightblue
Muted
#d0d5e2gainsboro
#1d232fdarkslategray
Muted foreground
#4d4d4ddarkslategray
#b3b3b3darkgray
Accent
#dd9dfbplum
#dd9dfbplum
Accent foreground
#440462indigo
#440462indigo
Destructive
#6d0d08maroon
#e81c11red
Destructive foreground
#f9b2aelightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#ae9dfblightsteelblue
#ae9dfblightsteelblue

Contrast

WCAG 2 contrast ratios between each background and its foreground color.

Light mode
Text on background19.56:1AAA
Text on card19.56:1AAA
Primary button7.36:1AAA
Secondary button7.74:1AAA
Muted text5.76:1AA
Accent7.15:1AAA
Destructive7.00:1AAA
Dark mode
Text on background19.80:1AAA
Text on card19.80:1AAA
Primary button7.36:1AAA
Secondary button7.74:1AAA
Muted text7.51:1AAA
Accent7.15:1AAA
Destructive4.54:1AA

CSS variables

Paste this into your globals.css to use Kaleidoscopic in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.981 0.004 294.739);
  --foreground: oklch(0.097 0.022 293.53);
  --muted: oklch(0.873 0.018 265.9);
  --muted-foreground: oklch(0.418 0 173.29);
  --popover: oklch(0.981 0.004 294.739);
  --popover-foreground: oklch(0.097 0.022 293.53);
  --card: oklch(0.981 0.004 294.739);
  --card-foreground: oklch(0.097 0.022 293.53);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.748 0.134 291.235);
  --primary-foreground: oklch(0.242 0.145 275.351);
  --secondary: oklch(0.793 0.097 265.063);
  --secondary-foreground: oklch(0.28 0.119 262.366);
  --accent: oklch(0.791 0.145 314.603);
  --accent-foreground: oklch(0.3 0.146 310.536);
  --destructive: oklch(0.345 0.129 29.109);
  --destructive-foreground: oklch(0.829 0.083 22.404);
  --ring: oklch(0.748 0.134 291.235);
  --chart-1: oklch(0.748 0.134 291.235);
  --chart-2: oklch(0.793 0.097 265.063);
  --chart-3: oklch(0.791 0.145 314.603);
  --chart-4: oklch(0.824 0.082 265.287);
  --chart-5: oklch(0.745 0.138 291.088);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.121 0.014 294.18);
  --foreground: oklch(0.992 0.001 294.807);
  --muted: oklch(0.256 0.025 265.293);
  --muted-foreground: oklch(0.765 0 172.405);
  --popover: oklch(0.121 0.014 294.18);
  --popover-foreground: oklch(0.992 0.001 294.807);
  --card: oklch(0.121 0.014 294.18);
  --card-foreground: oklch(0.992 0.001 294.807);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.748 0.134 291.235);
  --primary-foreground: oklch(0.242 0.145 275.351);
  --secondary: oklch(0.793 0.097 265.063);
  --secondary-foreground: oklch(0.28 0.119 262.366);
  --accent: oklch(0.791 0.145 314.603);
  --accent-foreground: oklch(0.3 0.146 310.536);
  --destructive: oklch(0.594 0.232 29.414);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.748 0.134 291.235);
  --chart-1: oklch(0.748 0.134 291.235);
  --chart-2: oklch(0.793 0.097 265.063);
  --chart-3: oklch(0.791 0.145 314.603);
  --chart-4: oklch(0.824 0.082 265.287);
  --chart-5: oklch(0.745 0.138 291.088);
}