Puzzling for shadcn/ui

Puzzling is a shadcn/ui theme built around a vivid light green primary color (#cdf598) with vivid light violet accents (#c198f5). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid light green primary (#cdf598) on a neutral background (#050802).

Color palette

TokenLightDark
Background
#ffffffwhite
#050802black
Foreground
#000000black
#ffffffwhite
Card
#ffffffwhite
#050802black
Card foreground
#000000black
#ffffffwhite
Popover
#ffffffwhite
#050802black
Popover foreground
#000000black
#ffffffwhite
Primary
#cdf598palegoldenrod
#cdf598palegoldenrod
Primary foreground
#335408darkgreen
#335408darkgreen
Secondary
#c198f5plum
#c198f5plum
Secondary foreground
#290854midnightblue
#290854midnightblue
Muted
#ddd9e3gainsboro
#201c26black
Muted foreground
#56525bdimgray
#a8a4addarkgray
Accent
#c198f5plum
#c198f5plum
Accent foreground
#290854midnightblue
#290854midnightblue
Destructive
#75130amaroon
#d82313firebrick
Destructive foreground
#f9beb9lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#cdf598palegoldenrod
#cdf598palegoldenrod

Contrast

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

Light mode
Text on background21.00:1AAA
Text on card21.00:1AAA
Primary button7.11:1AAA
Secondary button7.23:1AAA
Muted text5.47:1AA
Accent7.23:1AAA
Destructive7.04:1AAA
Dark mode
Text on background20.15:1AAA
Text on card20.15:1AAA
Primary button7.11:1AAA
Secondary button7.23:1AAA
Muted text6.82:1AA
Accent7.23:1AAA
Destructive5.04:1AA

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.891 0.015 305.513);
  --muted-foreground: oklch(0.447 0.015 305.301);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(1 0 180);
  --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.922 0.126 127.767);
  --primary-foreground: oklch(0.405 0.106 131.501);
  --secondary: oklch(0.753 0.136 303.227);
  --secondary-foreground: oklch(0.249 0.123 295.199);
  --accent: oklch(0.753 0.136 303.227);
  --accent-foreground: oklch(0.249 0.123 295.199);
  --destructive: oklch(0.366 0.133 29.961);
  --destructive-foreground: oklch(0.853 0.069 24.55);
  --ring: oklch(0.922 0.126 127.767);
  --chart-1: oklch(0.922 0.126 127.767);
  --chart-2: oklch(0.753 0.136 303.227);
  --chart-3: oklch(0.753 0.136 303.227);
  --chart-4: oklch(0.786 0.117 303.704);
  --chart-5: oklch(0.925 0.131 127.837);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.127 0.018 124.936);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.236 0.021 304.545);
  --muted-foreground: oklch(0.724 0.013 305.5);
  --popover: oklch(0.127 0.018 124.936);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.127 0.018 124.936);
  --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.922 0.126 127.767);
  --primary-foreground: oklch(0.405 0.106 131.501);
  --secondary: oklch(0.753 0.136 303.227);
  --secondary-foreground: oklch(0.249 0.123 295.199);
  --accent: oklch(0.753 0.136 303.227);
  --accent-foreground: oklch(0.249 0.123 295.199);
  --destructive: oklch(0.567 0.215 30.085);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.922 0.126 127.767);
  --chart-1: oklch(0.922 0.126 127.767);
  --chart-2: oklch(0.753 0.136 303.227);
  --chart-3: oklch(0.753 0.136 303.227);
  --chart-4: oklch(0.786 0.117 303.704);
  --chart-5: oklch(0.925 0.131 127.837);
}