Squiggly for shadcn/ui

Squiggly is a shadcn/ui theme built around a vivid purple primary color (#d803d4) with muted light purple accents (#cdb6cd). The light mode uses a neutral background (#fcf7fc). Dark mode keeps the vivid purple primary (#d803d4) on a purple-tinted background (#0a050a).

Color palette

TokenLightDark
Background
#fcf7fcsnow
#0a050ablack
Foreground
#0c030cblack
#f9f5f9whitesmoke
Card
#fbf4fbghostwhite
#0e060eblack
Card foreground
#080208black
#fbf8fbsnow
Popover
#fbf4fbghostwhite
#0e060eblack
Popover foreground
#080208black
#fbf8fbsnow
Primary
#d803d4magenta
#d803d4magenta
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#d4c9d4lightgrey
#181618black
Secondary foreground
#3c2f3cdarkslategray
#b3adb3darkgray
Muted
#e8d4e7gainsboro
#2b172bblack
Muted foreground
#5d4c5cdimgray
#b3a2b3darkgray
Accent
#cdb6cdthistle
#362b36darkslategray
Accent foreground
#312130darkslategray
#d0c3d0thistle
Destructive
#6e160cmaroon
#e6321eorangered
Destructive foreground
#f7bcb6lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#d803d4magenta
#d803d4magenta

Contrast

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

Light mode
Text on background19.26:1AAA
Text on card18.96:1AAA
Primary button4.29:1AA Large
Secondary button7.86:1AAA
Muted text5.64:1AA
Accent8.04:1AAA
Destructive7.18:1AAA
Dark mode
Text on background18.72:1AAA
Text on card18.92:1AAA
Primary button4.29:1AA Large
Secondary button8.18:1AAA
Muted text6.92:1AA
Accent7.98:1AAA
Destructive4.33:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.983 0.008 326.122);
  --foreground: oklch(0.124 0.031 327.734);
  --muted: oklch(0.892 0.034 326.357);
  --muted-foreground: oklch(0.439 0.034 326.663);
  --popover: oklch(0.974 0.013 326.157);
  --popover-foreground: oklch(0.108 0.027 327.677);
  --card: oklch(0.974 0.013 326.157);
  --card-foreground: oklch(0.108 0.027 327.677);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.618 0.281 329.248);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.848 0.02 326.244);
  --secondary-foreground: oklch(0.325 0.028 326.727);
  --accent: oklch(0.804 0.041 326.455);
  --accent-foreground: oklch(0.273 0.035 327.036);
  --destructive: oklch(0.354 0.123 30.383);
  --destructive-foreground: oklch(0.847 0.069 25.86);
  --ring: oklch(0.618 0.281 329.248);
  --chart-1: oklch(0.618 0.281 329.248);
  --chart-2: oklch(0.848 0.02 326.244);
  --chart-3: oklch(0.804 0.041 326.455);
  --chart-4: oklch(0.872 0.017 326.209);
  --chart-5: oklch(0.624 0.285 329.27);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.127 0.019 327.068);
  --foreground: oklch(0.975 0.007 326.113);
  --muted: oklch(0.241 0.046 327.465);
  --muted-foreground: oklch(0.733 0.03 326.381);
  --popover: oklch(0.141 0.021 327.168);
  --popover-foreground: oklch(0.984 0.005 326.093);
  --card: oklch(0.141 0.021 327.168);
  --card-foreground: oklch(0.984 0.005 326.093);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.618 0.281 329.248);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.203 0.005 326.233);
  --secondary-foreground: oklch(0.754 0.011 326.174);
  --accent: oklch(0.305 0.026 326.713);
  --accent-foreground: oklch(0.832 0.022 326.269);
  --destructive: oklch(0.603 0.218 30.489);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.618 0.281 329.248);
  --chart-1: oklch(0.618 0.281 329.248);
  --chart-2: oklch(0.203 0.005 326.233);
  --chart-3: oklch(0.305 0.026 326.713);
  --chart-4: oklch(0.236 0.006 326.252);
  --chart-5: oklch(0.624 0.285 329.27);
}