Puzzling for shadcn/ui

Puzzling is a shadcn/ui theme built around a neutral gray primary color (#d6d3d1) with neutral gray accents (#cfcbc9). The light mode uses a neutral background (#fdf9f7). Dark mode keeps the neutral gray primary (#d6d3d1) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fdf9f7snow
#000000black
Foreground
#100904black
#f9f7f6whitesmoke
Card
#fcf6f3floralwhite
#030303black
Card foreground
#0c0703black
#fbfaf9snow
Popover
#fdf9f7snow
#000000black
Popover foreground
#100904black
#f9f7f6whitesmoke
Primary
#d6d3d1lightgrey
#d6d3d1lightgrey
Primary foreground
#3e3a38darkslategray
#3e3a38darkslategray
Secondary
#dededegainsboro
#312d2bdarkslategray
Secondary foreground
#464544darkslategray
#cbc6c3silver
Muted
#f2e9e3linen
#1c130dblack
Muted foreground
#6a625cdimgray
#a39a95darkgray
Accent
#cfcbc9lightgrey
#4c4038darkslategray
Accent foreground
#363230darkslategray
#e1dad6gainsboro
Destructive
#8c3808saddlebrown
#f37730tomato
Destructive foreground
#fcdccabisque
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#d6d3d1lightgrey
#d6d3d1lightgrey

Contrast

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

Light mode
Text on background18.90:1AAA
Text on card18.75:1AAA
Primary button7.55:1AAA
Secondary button7.10:1AAA
Muted text4.98:1AA
Accent7.89:1AAA
Destructive6.03:1AA
Dark mode
Text on background19.66:1AAA
Text on card19.83:1AAA
Primary button7.55:1AAA
Secondary button8.03:1AAA
Muted text6.64:1AA
Accent7.23:1AAA
Destructive7.50:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.985 0.005 54.435);
  --foreground: oklch(0.147 0.017 59.495);
  --muted: oklch(0.939 0.012 54.324);
  --muted-foreground: oklch(0.502 0.014 54.132);
  --popover: oklch(0.985 0.005 54.435);
  --popover-foreground: oklch(0.147 0.017 59.495);
  --card: oklch(0.977 0.008 54.399);
  --card-foreground: oklch(0.133 0.015 62.409);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.869 0.004 54.447);
  --primary-foreground: oklch(0.351 0.006 54.258);
  --secondary: oklch(0.9 0.001 54.498);
  --secondary-foreground: oklch(0.39 0.001 54.455);
  --accent: oklch(0.845 0.005 54.419);
  --accent-foreground: oklch(0.321 0.007 54.218);
  --destructive: oklch(0.451 0.126 44.249);
  --destructive-foreground: oklch(0.917 0.043 51.979);
  --ring: oklch(0.869 0.004 54.447);
  --chart-1: oklch(0.869 0.004 54.447);
  --chart-2: oklch(0.9 0.001 54.498);
  --chart-3: oklch(0.845 0.005 54.419);
  --chart-4: oklch(0.923 0 54.5);
  --chart-5: oklch(0.869 0.006 54.411);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.977 0.003 54.466);
  --muted: oklch(0.195 0.019 53.19);
  --muted-foreground: oklch(0.692 0.013 54.254);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.977 0.003 54.466);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(0.985 0.002 54.48);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.869 0.004 54.447);
  --primary-foreground: oklch(0.351 0.006 54.258);
  --secondary: oklch(0.301 0.007 54.179);
  --secondary-foreground: oklch(0.83 0.007 54.392);
  --accent: oklch(0.382 0.021 53.76);
  --accent-foreground: oklch(0.893 0.009 54.364);
  --destructive: oklch(0.704 0.172 46.883);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.869 0.004 54.447);
  --chart-1: oklch(0.869 0.004 54.447);
  --chart-2: oklch(0.301 0.007 54.179);
  --chart-3: oklch(0.382 0.021 53.76);
  --chart-4: oklch(0.331 0.008 54.168);
  --chart-5: oklch(0.869 0.006 54.411);
}