Imaginative for shadcn/ui

Imaginative is a shadcn/ui theme built around a vivid purple primary color (#ca0bd0) with vivid pink accents (#d00b74). The light mode uses a neutral background (#fefbfe). Dark mode keeps the vivid purple primary (#ca0bd0) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fefbfewhite
#000000black
Foreground
#040104black
#fcf8fcsnow
Card
#fefbfewhite
#000000black
Card foreground
#040104black
#fcf8fcsnow
Popover
#fefbfewhite
#000000black
Popover foreground
#040104black
#fcf8fcsnow
Primary
#ca0bd0darkviolet
#ca0bd0darkviolet
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#670bd0darkviolet
#670bd0darkviolet
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#eae3f2lavender
#140d1cblack
Muted foreground
#4e4559darkslategray
#afa6badarkgray
Accent
#d00b74mediumvioletred
#d00b74mediumvioletred
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#c32b09firebrick
#ef350borangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#ca0bd0darkviolet
#ca0bd0darkviolet

Contrast

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

Light mode
Text on background20.20:1AAA
Text on card20.20:1AAA
Primary button4.70:1AA
Secondary button8.26:1AAA
Muted text7.23:1AAA
Accent5.25:1AA
Destructive5.72:1AA
Dark mode
Text on background19.97:1AAA
Text on card19.97:1AAA
Primary button4.70:1AA
Secondary button8.26:1AAA
Muted text8.14:1AAA
Accent5.25:1AA
Destructive4.06:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.005 324.651);
  --foreground: oklch(0.086 0.02 326.247);
  --muted: oklch(0.926 0.022 306.827);
  --muted-foreground: oklch(0.407 0.036 306.03);
  --popover: oklch(0.991 0.005 324.651);
  --popover-foreground: oklch(0.086 0.02 326.247);
  --card: oklch(0.991 0.005 324.651);
  --card-foreground: oklch(0.086 0.02 326.247);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.594 0.272 326.596);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.459 0.248 293.518);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.561 0.224 357.923);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.533 0.192 32.921);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.594 0.272 326.596);
  --chart-1: oklch(0.594 0.272 326.596);
  --chart-2: oklch(0.459 0.248 293.518);
  --chart-3: oklch(0.561 0.224 357.923);
  --chart-4: oklch(0.482 0.262 293.369);
  --chart-5: oklch(0.601 0.276 326.579);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.983 0.006 324.657);
  --muted: oklch(0.176 0.032 304.796);
  --muted-foreground: oklch(0.739 0.031 306.599);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.983 0.006 324.657);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.983 0.006 324.657);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.594 0.272 326.596);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.459 0.248 293.518);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.561 0.224 357.923);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.619 0.225 32.757);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.594 0.272 326.596);
  --chart-1: oklch(0.594 0.272 326.596);
  --chart-2: oklch(0.459 0.248 293.518);
  --chart-3: oklch(0.561 0.224 357.923);
  --chart-4: oklch(0.482 0.262 293.369);
  --chart-5: oklch(0.601 0.276 326.579);
}