Mysterious for shadcn/ui

Mysterious is a shadcn/ui theme built around a muted violet primary color (#8b7fad) with muted purple accents (#a27fad). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted violet primary (#8b7fad) on a violet-tinted background (#06040b).

Color palette

TokenLightDark
Background
#ffffffwhite
#06040bblack
Foreground
#020104black
#fcfcfdwhite
Card
#ffffffwhite
#06040bblack
Card foreground
#020104black
#fcfcfdwhite
Popover
#ffffffwhite
#06040bblack
Popover foreground
#020104black
#fcfcfdwhite
Primary
#8b7fadlightslategray
#8b7fadlightslategray
Primary foreground
#000000black
#000000black
Secondary
#7f8badlightslategray
#7f8badlightslategray
Secondary foreground
#000000black
#000000black
Muted
#d8dce9gainsboro
#161a27black
Muted foreground
#3b3e44darkslategray
#bbbdc4silver
Accent
#a27faddarkgray
#a27faddarkgray
Accent foreground
#000000black
#000000black
Destructive
#651d0bmaroon
#dc4018chocolate
Destructive foreground
#f6bbaclightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#8b7fadlightslategray
#8b7fadlightslategray

Contrast

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

Light mode
Text on background20.81:1AAA
Text on card20.81:1AAA
Primary button5.76:1AA
Secondary button6.20:1AA
Muted text7.84:1AAA
Accent6.20:1AA
Destructive7.27:1AAA
Dark mode
Text on background19.87:1AAA
Text on card19.87:1AAA
Primary button5.76:1AA
Secondary button6.20:1AA
Muted text9.20:1AAA
Accent6.20:1AA
Destructive4.38:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.073 0.023 297.308);
  --muted: oklch(0.896 0.017 271.219);
  --muted-foreground: oklch(0.362 0.012 271.076);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.073 0.023 297.308);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.073 0.023 297.308);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.625 0.069 295.798);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.64 0.054 270.444);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.647 0.078 317.557);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.345 0.107 34.818);
  --destructive-foreground: oklch(0.842 0.071 34.454);
  --ring: oklch(0.625 0.069 295.798);
  --chart-1: oklch(0.625 0.069 295.798);
  --chart-2: oklch(0.64 0.054 270.444);
  --chart-3: oklch(0.647 0.078 317.557);
  --chart-4: oklch(0.667 0.049 270.58);
  --chart-5: oklch(0.619 0.079 295.477);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.117 0.02 297.493);
  --foreground: oklch(0.992 0.001 297.812);
  --muted: oklch(0.222 0.025 270.028);
  --muted-foreground: oklch(0.799 0.01 271.294);
  --popover: oklch(0.117 0.02 297.493);
  --popover-foreground: oklch(0.992 0.001 297.812);
  --card: oklch(0.117 0.02 297.493);
  --card-foreground: oklch(0.992 0.001 297.812);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.625 0.069 295.798);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.64 0.054 270.444);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.647 0.078 317.557);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.597 0.199 34.304);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.625 0.069 295.798);
  --chart-1: oklch(0.625 0.069 295.798);
  --chart-2: oklch(0.64 0.054 270.444);
  --chart-3: oklch(0.647 0.078 317.557);
  --chart-4: oklch(0.667 0.049 270.58);
  --chart-5: oklch(0.619 0.079 295.477);
}