Kaleidoscopic for shadcn/ui

Kaleidoscopic is a shadcn/ui theme built around a neutral gray primary color (#7a7a7a) with muted light red accents (#ded8d8). The light mode uses a neutral background (#ffffff). Dark mode keeps the neutral gray primary (#7a7a7a) on a red-tinted background (#100505).

Color palette

TokenLightDark
Background
#ffffffwhite
#100505black
Foreground
#0e0202black
#fdfcfcsnow
Card
#ffffffwhite
#100505black
Card foreground
#0e0202black
#fdfcfcsnow
Popover
#ffffffwhite
#100505black
Popover foreground
#0e0202black
#fdfcfcsnow
Primary
#7a7a7agray
#7a7a7agray
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#ded8d8gainsboro
#332e2edarkslategray
Secondary foreground
#483d3ddarkslategray
#cdc6c6silver
Muted
#e9d2d2gainsboro
#2d1616black
Muted foreground
#493737darkslategray
#c8b6b6silver
Accent
#ded8d8gainsboro
#332e2edarkslategray
Accent foreground
#483d3ddarkslategray
#cdc6c6silver
Destructive
#6e1c08maroon
#ea3c10orangered
Destructive foreground
#f9bdaelightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#7a7a7agray
#7a7a7agray

Contrast

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

Light mode
Text on background20.42:1AAA
Text on card20.42:1AAA
Primary button4.26:1AA Large
Secondary button7.44:1AAA
Muted text7.77:1AAA
Accent7.44:1AAA
Destructive7.06:1AAA
Dark mode
Text on background19.64:1AAA
Text on card19.64:1AAA
Primary button4.26:1AA Large
Secondary button7.97:1AAA
Muted text8.77:1AAA
Accent7.97:1AAA
Destructive4.08:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.113 0.032 23.7);
  --muted: oklch(0.884 0.026 17.653);
  --muted-foreground: oklch(0.356 0.026 18.427);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.113 0.032 23.7);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.113 0.032 23.7);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.581 0 168.69);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.888 0.006 17.275);
  --secondary-foreground: oklch(0.371 0.015 17.839);
  --accent: oklch(0.888 0.006 17.275);
  --accent-foreground: oklch(0.371 0.015 17.839);
  --destructive: oklch(0.359 0.118 34.478);
  --destructive-foreground: oklch(0.849 0.073 34.46);
  --ring: oklch(0.581 0 168.69);
  --chart-1: oklch(0.581 0 168.69);
  --chart-2: oklch(0.888 0.006 17.275);
  --chart-3: oklch(0.888 0.006 17.275);
  --chart-4: oklch(0.912 0.005 17.246);
  --chart-5: oklch(0.575 0.009 17.42);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.132 0.023 20.699);
  --foreground: oklch(0.991 0.002 17.184);
  --muted: oklch(0.231 0.038 20.388);
  --muted-foreground: oklch(0.792 0.02 17.592);
  --popover: oklch(0.132 0.023 20.699);
  --popover-foreground: oklch(0.991 0.002 17.184);
  --card: oklch(0.132 0.023 20.699);
  --card-foreground: oklch(0.991 0.002 17.184);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.581 0 168.69);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.306 0.008 17.624);
  --secondary-foreground: oklch(0.832 0.007 17.301);
  --accent: oklch(0.306 0.008 17.624);
  --accent-foreground: oklch(0.832 0.007 17.301);
  --destructive: oklch(0.616 0.216 33.735);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.581 0 168.69);
  --chart-1: oklch(0.581 0 168.69);
  --chart-2: oklch(0.306 0.008 17.624);
  --chart-3: oklch(0.306 0.008 17.624);
  --chart-4: oklch(0.335 0.01 17.64);
  --chart-5: oklch(0.575 0.009 17.42);
}