Puzzled for shadcn/ui

Puzzled is a shadcn/ui theme built around a vivid light yellow primary color (#fdffd1) with vivid light purple accents (#ffd1fd). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid light yellow primary (#fdffd1) on a neutral background (#070703).

Color palette

TokenLightDark
Background
#ffffffwhite
#070703black
Foreground
#080802black
#ffffffwhite
Card
#ffffffwhite
#070703black
Card foreground
#080802black
#ffffffwhite
Popover
#ffffffwhite
#070703black
Popover foreground
#080802black
#ffffffwhite
Primary
#fdffd1lightgoldenrodyellow
#fdffd1lightgoldenrodyellow
Primary foreground
#353800darkgreen
#353800darkgreen
Secondary
#d1fdfflightcyan
#d1fdfflightcyan
Secondary foreground
#003538darkslategray
#003538darkslategray
Muted
#ecefefwhitesmoke
#101313black
Muted foreground
#4c5757darkslategray
#a8b3b3darkgray
Accent
#ffd1fdlavenderblush
#ffd1fdlavenderblush
Accent foreground
#380035midnightblue
#380035midnightblue
Destructive
#7e280csaddlebrown
#eb5524chocolate
Destructive foreground
#f9d0c2peachpuff
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#fdffd1lightgoldenrodyellow
#fdffd1lightgoldenrodyellow

Contrast

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

Light mode
Text on background20.07:1AAA
Text on card20.07:1AAA
Primary button11.87:1AAA
Secondary button12.23:1AAA
Muted text6.44:1AA
Accent12.95:1AAA
Destructive6.74:1AA
Dark mode
Text on background20.16:1AAA
Text on card20.16:1AAA
Primary button11.87:1AAA
Secondary button12.23:1AAA
Muted text8.66:1AAA
Accent12.95:1AAA
Destructive3.58:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.13 0.017 110.439);
  --muted: oklch(0.949 0.003 200.847);
  --muted-foreground: oklch(0.447 0.014 200.537);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.13 0.017 110.439);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.13 0.017 110.439);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.987 0.059 109.792);
  --primary-foreground: oklch(0.327 0.073 112.858);
  --secondary: oklch(0.963 0.045 200.38);
  --secondary-foreground: oklch(0.3 0.051 200.499);
  --accent: oklch(0.913 0.076 327.78);
  --accent-foreground: oklch(0.237 0.108 330.706);
  --destructive: oklch(0.405 0.124 37.196);
  --destructive-foreground: oklch(0.89 0.05 39.27);
  --ring: oklch(0.987 0.059 109.792);
  --chart-1: oklch(0.987 0.059 109.792);
  --chart-2: oklch(0.963 0.045 200.38);
  --chart-3: oklch(0.913 0.076 327.78);
  --chart-4: oklch(0.975 0.03 200.534);
  --chart-5: oklch(0.989 0.061 109.82);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.127 0.013 110.071);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.185 0.005 200.585);
  --muted-foreground: oklch(0.757 0.012 200.697);
  --popover: oklch(0.127 0.013 110.071);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.127 0.013 110.071);
  --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.987 0.059 109.792);
  --primary-foreground: oklch(0.327 0.073 112.858);
  --secondary: oklch(0.963 0.045 200.38);
  --secondary-foreground: oklch(0.3 0.051 200.499);
  --accent: oklch(0.913 0.076 327.78);
  --accent-foreground: oklch(0.237 0.108 330.706);
  --destructive: oklch(0.645 0.194 37.442);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.987 0.059 109.792);
  --chart-1: oklch(0.987 0.059 109.792);
  --chart-2: oklch(0.963 0.045 200.38);
  --chart-3: oklch(0.913 0.076 327.78);
  --chart-4: oklch(0.975 0.03 200.534);
  --chart-5: oklch(0.989 0.061 109.82);
}