Puzzling for shadcn/ui

Puzzling is a shadcn/ui theme built around a near-black primary color (#1d1c1b) with near-black accents (#1c1b1d). The light mode uses a neutral background (#fdf9f6). Dark mode keeps the near-black primary (#1d1c1b) on an orange-tinted background (#0a0705).

Color palette

TokenLightDark
Background
#fdf9f6snow
#0a0705black
Foreground
#0c0603black
#f9f7f5whitesmoke
Card
#fdf9f6snow
#0a0705black
Card foreground
#0c0603black
#f9f7f5whitesmoke
Popover
#fdf9f6snow
#0a0705black
Popover foreground
#0c0603black
#f9f7f5whitesmoke
Primary
#1d1c1bblack
#1d1c1bblack
Primary foreground
#b7b5b4silver
#b7b5b4silver
Secondary
#1b1d1cblack
#1b1d1cblack
Secondary foreground
#b4b7b5silver
#b4b7b5silver
Muted
#eef6f1whitesmoke
#09110bblack
Muted foreground
#4d4d4ddarkslategray
#b3b3b3darkgray
Accent
#1c1b1dblack
#1c1b1dblack
Accent foreground
#b5b4b7silver
#b5b4b7silver
Destructive
#79290csaddlebrown
#e95925chocolate
Destructive foreground
#f9cebepeachpuff
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#1d1c1bblack
#1d1c1bblack

Contrast

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

Light mode
Text on background19.20:1AAA
Text on card19.20:1AAA
Primary button8.34:1AAA
Secondary button8.39:1AAA
Muted text7.70:1AAA
Accent8.29:1AAA
Destructive6.85:1AA
Dark mode
Text on background18.81:1AAA
Text on card18.81:1AAA
Primary button8.34:1AAA
Secondary button8.39:1AAA
Muted text9.14:1AAA
Accent8.29:1AAA
Destructive3.53:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.984 0.006 46.789);
  --foreground: oklch(0.13 0.016 54.999);
  --muted: oklch(0.966 0.011 156.328);
  --muted-foreground: oklch(0.418 0 173.29);
  --popover: oklch(0.984 0.006 46.789);
  --popover-foreground: oklch(0.13 0.016 54.999);
  --card: oklch(0.984 0.006 46.789);
  --card-foreground: oklch(0.13 0.016 54.999);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.226 0.001 46.788);
  --primary-foreground: oklch(0.773 0.003 46.818);
  --secondary: oklch(0.228 0.002 156.365);
  --secondary-foreground: oklch(0.775 0.004 156.449);
  --accent: oklch(0.225 0.002 300.606);
  --accent-foreground: oklch(0.77 0.004 300.676);
  --destructive: oklch(0.396 0.118 38.356);
  --destructive-foreground: oklch(0.883 0.053 40.967);
  --ring: oklch(0.226 0.001 46.788);
  --chart-1: oklch(0.226 0.001 46.788);
  --chart-2: oklch(0.228 0.002 156.365);
  --chart-3: oklch(0.225 0.002 300.606);
  --chart-4: oklch(0.26 0.003 156.35);
  --chart-5: oklch(0.226 0.003 46.689);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.131 0.008 51.261);
  --foreground: oklch(0.977 0.004 46.815);
  --muted: oklch(0.166 0.017 154.485);
  --muted-foreground: oklch(0.765 0 172.405);
  --popover: oklch(0.131 0.008 51.261);
  --popover-foreground: oklch(0.977 0.004 46.815);
  --card: oklch(0.131 0.008 51.261);
  --card-foreground: oklch(0.977 0.004 46.815);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.226 0.001 46.788);
  --primary-foreground: oklch(0.773 0.003 46.818);
  --secondary: oklch(0.228 0.002 156.365);
  --secondary-foreground: oklch(0.775 0.004 156.449);
  --accent: oklch(0.225 0.002 300.606);
  --accent-foreground: oklch(0.77 0.004 300.676);
  --destructive: oklch(0.648 0.189 38.57);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.226 0.001 46.788);
  --chart-1: oklch(0.226 0.001 46.788);
  --chart-2: oklch(0.228 0.002 156.365);
  --chart-3: oklch(0.225 0.002 300.606);
  --chart-4: oklch(0.26 0.003 156.35);
  --chart-5: oklch(0.226 0.003 46.689);
}