Squiggly for shadcn/ui

Squiggly is a shadcn/ui theme built around a neutral gray primary color (#a3959a) with neutral gray accents (#95a39d). The light mode uses a neutral background (#ffffff). Dark mode keeps the neutral gray primary (#a3959a) on a pink-tinted background (#0e0709).

Color palette

TokenLightDark
Background
#ffffffwhite
#0e0709black
Foreground
#000000black
#faf5f7whitesmoke
Card
#ffffffwhite
#0e0709black
Card foreground
#000000black
#faf5f7whitesmoke
Popover
#ffffffwhite
#0e0709black
Popover foreground
#000000black
#faf5f7whitesmoke
Primary
#a3959adarkgray
#a3959adarkgray
Primary foreground
#030203black
#030203black
Secondary
#95a39ddarkgray
#95a39ddarkgray
Secondary foreground
#020303black
#020303black
Muted
#e3f2eclavender
#0d1c16black
Muted foreground
#535554dimgray
#aaacabdarkgray
Accent
#95a39ddarkgray
#95a39ddarkgray
Accent foreground
#020303black
#020303black
Destructive
#c91f13firebrick
#db2214crimson
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#a3959adarkgray
#a3959adarkgray

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.18:1AAA
Secondary button7.82:1AAA
Muted text6.51:1AA
Accent7.82:1AAA
Destructive5.71:1AA
Dark mode
Text on background18.51:1AAA
Text on card18.51:1AAA
Primary button7.18:1AAA
Secondary button7.82:1AAA
Muted text7.70:1AAA
Accent7.82:1AAA
Destructive4.93:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.949 0.018 171.045);
  --muted-foreground: oklch(0.448 0.002 171.437);
  --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.682 0.018 352.334);
  --primary-foreground: oklch(0.091 0.002 351.551);
  --secondary: oklch(0.701 0.018 170.853);
  --secondary-foreground: oklch(0.093 0.002 171.63);
  --accent: oklch(0.701 0.018 170.853);
  --accent-foreground: oklch(0.093 0.002 171.63);
  --destructive: oklch(0.536 0.204 29.66);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.682 0.018 352.334);
  --chart-1: oklch(0.682 0.018 352.334);
  --chart-2: oklch(0.701 0.018 170.853);
  --chart-3: oklch(0.701 0.018 170.853);
  --chart-4: oklch(0.725 0.016 170.939);
  --chart-5: oklch(0.679 0.026 352.655);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.139 0.014 352.559);
  --foreground: oklch(0.974 0.006 351.782);
  --muted: oklch(0.21 0.024 167.679);
  --muted-foreground: oklch(0.742 0.002 171.509);
  --popover: oklch(0.139 0.014 352.559);
  --popover-foreground: oklch(0.974 0.006 351.782);
  --card: oklch(0.139 0.014 352.559);
  --card-foreground: oklch(0.974 0.006 351.782);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.682 0.018 352.334);
  --primary-foreground: oklch(0.091 0.002 351.551);
  --secondary: oklch(0.701 0.018 170.853);
  --secondary-foreground: oklch(0.093 0.002 171.63);
  --accent: oklch(0.701 0.018 170.853);
  --accent-foreground: oklch(0.093 0.002 171.63);
  --destructive: oklch(0.572 0.219 29.678);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.682 0.018 352.334);
  --chart-1: oklch(0.682 0.018 352.334);
  --chart-2: oklch(0.701 0.018 170.853);
  --chart-3: oklch(0.701 0.018 170.853);
  --chart-4: oklch(0.725 0.016 170.939);
  --chart-5: oklch(0.679 0.026 352.655);
}