Puzzled for shadcn/ui

Puzzled is a shadcn/ui theme built around a purple primary color (#bd69c3) with pink accents (#c3699c). The light mode uses a neutral background (#fefbfe). Dark mode keeps the purple primary (#bd69c3) on a purple-tinted background (#0b040b).

Color palette

TokenLightDark
Background
#fefbfewhite
#0b040bblack
Foreground
#000000black
#ffffffwhite
Card
#fdf6fdsnow
#0e060fblack
Card foreground
#000000black
#ffffffwhite
Popover
#fefbfewhite
#0b040bblack
Popover foreground
#000000black
#ffffffwhite
Primary
#bd69c3mediumorchid
#bd69c3mediumorchid
Primary foreground
#000000black
#000000black
Secondary
#9069c3mediumpurple
#9069c3mediumpurple
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#efeaf5lavender
#0f0a15black
Muted foreground
#443b4edarkslategray
#b9b1c4silver
Accent
#c3699cpalevioletred
#c3699cpalevioletred
Accent foreground
#000000black
#000000black
Destructive
#af200dfirebrick
#ee3820orangered
Destructive foreground
#fef2f1seashell
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#bd69c3mediumorchid
#bd69c3mediumorchid

Contrast

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

Light mode
Text on background20.41:1AAA
Text on card19.83:1AAA
Primary button6.00:1AA
Secondary button4.17:1AA Large
Muted text8.98:1AAA
Accent5.85:1AA
Destructive6.29:1AA
Dark mode
Text on background20.24:1AAA
Text on card19.98:1AAA
Primary button6.00:1AA
Secondary button4.17:1AA Large
Muted text9.45:1AAA
Accent5.85:1AA
Destructive4.01:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.006 323.665);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.945 0.015 305.527);
  --muted-foreground: oklch(0.37 0.034 304.5);
  --popover: oklch(0.991 0.006 323.665);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.981 0.011 323.695);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.65 0.157 324.722);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.6 0.137 302.454);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.641 0.129 346.292);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.489 0.181 30.99);
  --destructive-foreground: oklch(0.971 0.013 26.531);
  --ring: oklch(0.65 0.157 324.722);
  --chart-1: oklch(0.65 0.157 324.722);
  --chart-2: oklch(0.6 0.137 302.454);
  --chart-3: oklch(0.641 0.129 346.292);
  --chart-4: oklch(0.629 0.127 302.905);
  --chart-5: oklch(0.65 0.167 324.774);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.126 0.022 324.861);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.156 0.023 303.695);
  --muted-foreground: oklch(0.772 0.029 305.247);
  --popover: oklch(0.126 0.022 324.861);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.139 0.025 324.648);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.65 0.157 324.722);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.6 0.137 302.454);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.641 0.129 346.292);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.622 0.221 31.041);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.65 0.157 324.722);
  --chart-1: oklch(0.65 0.157 324.722);
  --chart-2: oklch(0.6 0.137 302.454);
  --chart-3: oklch(0.641 0.129 346.292);
  --chart-4: oklch(0.629 0.127 302.905);
  --chart-5: oklch(0.65 0.167 324.774);
}