Puzzling for shadcn/ui

Puzzling is a shadcn/ui theme built around a light pink primary color (#ecb6c6) with light blue accents (#b6c6ec). The light mode uses a neutral background (#ffffff). Dark mode keeps the light pink primary (#ecb6c6) on a neutral background (#040102).

Color palette

TokenLightDark
Background
#ffffffwhite
#040102black
Foreground
#000000black
#ffffffwhite
Card
#fcfcfcsnow
#080204black
Card foreground
#000000black
#ffffffwhite
Popover
#fcfcfcsnow
#080204black
Popover foreground
#000000black
#ffffffwhite
Primary
#ecb6c6lightpink
#ecb6c6lightpink
Primary foreground
#59182bmaroon
#59182bmaroon
Secondary
#c6ecb6lightgrey
#c6ecb6lightgrey
Secondary foreground
#2b5918darkgreen
#2b5918darkgreen
Muted
#e6ede3beige
#151c12black
Muted foreground
#4f584bdarkslategray
#abb4a7darkgray
Accent
#b6c6eclightsteelblue
#b6c6eclightsteelblue
Accent foreground
#182b59midnightblue
#182b59midnightblue
Destructive
#c52c02firebrick
#ed3502orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#ecb6c6lightpink
#ecb6c6lightpink

Contrast

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

Light mode
Text on background21.00:1AAA
Text on card20.54:1AAA
Primary button7.61:1AAA
Secondary button6.31:1AA
Muted text6.20:1AA
Accent8.06:1AAA
Destructive5.62:1AA
Dark mode
Text on background20.78:1AAA
Text on card20.56:1AAA
Primary button7.61:1AAA
Secondary button6.31:1AA
Muted text8.16:1AAA
Accent8.06:1AAA
Destructive4.09:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.938 0.014 136.076);
  --muted-foreground: oklch(0.449 0.024 136.223);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.992 0 161.565);
  --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.83 0.065 358.812);
  --primary-foreground: oklch(0.32 0.096 6.21);
  --secondary: oklch(0.902 0.081 136.381);
  --secondary-foreground: oklch(0.415 0.107 137.836);
  --accent: oklch(0.828 0.055 266.903);
  --accent-foreground: oklch(0.301 0.086 264.392);
  --destructive: oklch(0.538 0.194 33.727);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.83 0.065 358.812);
  --chart-1: oklch(0.83 0.065 358.812);
  --chart-2: oklch(0.902 0.081 136.381);
  --chart-3: oklch(0.828 0.055 266.903);
  --chart-4: oklch(0.918 0.067 136.308);
  --chart-5: oklch(0.829 0.068 358.927);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.083 0.016 356.349);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.215 0.02 136.396);
  --muted-foreground: oklch(0.759 0.021 136.124);
  --popover: oklch(0.104 0.02 356.349);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.104 0.02 356.349);
  --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.83 0.065 358.812);
  --primary-foreground: oklch(0.32 0.096 6.21);
  --secondary: oklch(0.902 0.081 136.381);
  --secondary-foreground: oklch(0.415 0.107 137.836);
  --accent: oklch(0.828 0.055 266.903);
  --accent-foreground: oklch(0.301 0.086 264.392);
  --destructive: oklch(0.617 0.224 33.429);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.83 0.065 358.812);
  --chart-1: oklch(0.83 0.065 358.812);
  --chart-2: oklch(0.902 0.081 136.381);
  --chart-3: oklch(0.828 0.055 266.903);
  --chart-4: oklch(0.918 0.067 136.308);
  --chart-5: oklch(0.829 0.068 358.927);
}