Knuckle for shadcn/ui

Knuckle is a shadcn/ui theme built around a vivid purple primary color (#d82deb) with vivid teal accents (#2debd8). The light mode uses a neutral background (#fdfbfe). Dark mode keeps the vivid purple primary (#d82deb) on a purple-tinted background (#0a040b).

Color palette

TokenLightDark
Background
#fdfbfewhite
#0a040bblack
Foreground
#000000black
#fbf9fbsnow
Card
#fcf7fcsnow
#0e060fblack
Card foreground
#000000black
#fdfcfdwhite
Popover
#fcf7fcsnow
#0e060fblack
Popover foreground
#000000black
#fdfcfdwhite
Primary
#d82debmediumorchid
#d82debmediumorchid
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#ebd82dgold
#ebd82dgold
Secondary foreground
#464007darkolivegreen
#464007darkolivegreen
Muted
#e2e0cfgainsboro
#302e1ddarkslategray
Muted foreground
#6b6852dimgray
#adaa94darkgray
Accent
#2debd8turquoise
#2debd8turquoise
Accent foreground
#074640darkslategray
#074640darkslategray
Destructive
#ca2e16firebrick
#dc3318orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#d82debmediumorchid
#d82debmediumorchid

Contrast

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

Light mode
Text on background20.44:1AAA
Text on card19.89:1AAA
Primary button3.80:1AA Large
Secondary button7.23:1AAA
Muted text4.25:1AA Large
Accent7.17:1AAA
Destructive5.35:1AA
Dark mode
Text on background19.33:1AAA
Text on card19.54:1AAA
Primary button3.80:1AA Large
Secondary button7.23:1AAA
Muted text5.84:1AA
Accent7.17:1AAA
Destructive4.63:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.004 322.643);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.905 0.023 101.681);
  --muted-foreground: oklch(0.514 0.033 102.227);
  --popover: oklch(0.982 0.008 322.66);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.982 0.008 322.66);
  --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.646 0.279 323.404);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.873 0.173 102.506);
  --secondary-foreground: oklch(0.366 0.072 102.573);
  --accent: oklch(0.85 0.143 184.219);
  --accent-foreground: oklch(0.356 0.06 184.314);
  --destructive: oklch(0.549 0.195 31.608);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.646 0.279 323.404);
  --chart-1: oklch(0.646 0.279 323.404);
  --chart-2: oklch(0.873 0.173 102.506);
  --chart-3: oklch(0.85 0.143 184.219);
  --chart-4: oklch(0.88 0.169 102.727);
  --chart-5: oklch(0.65 0.285 323.361);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.125 0.022 323.895);
  --foreground: oklch(0.984 0.004 322.643);
  --muted: oklch(0.298 0.029 102.606);
  --muted-foreground: oklch(0.735 0.031 101.92);
  --popover: oklch(0.139 0.025 323.546);
  --popover-foreground: oklch(0.992 0.002 322.635);
  --card: oklch(0.139 0.025 323.546);
  --card-foreground: oklch(0.992 0.002 322.635);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.646 0.279 323.404);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.873 0.173 102.506);
  --secondary-foreground: oklch(0.366 0.072 102.573);
  --accent: oklch(0.85 0.143 184.219);
  --accent-foreground: oklch(0.356 0.06 184.314);
  --destructive: oklch(0.586 0.209 31.594);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.646 0.279 323.404);
  --chart-1: oklch(0.646 0.279 323.404);
  --chart-2: oklch(0.873 0.173 102.506);
  --chart-3: oklch(0.85 0.143 184.219);
  --chart-4: oklch(0.88 0.169 102.727);
  --chart-5: oklch(0.65 0.285 323.361);
}