Quirky for shadcn/ui

Quirky is a shadcn/ui theme built around a light purple primary color (#f5d8f8) with muted light purple accents (#cbc2cc). The light mode uses a neutral background (#ffffff). Dark mode keeps the light purple primary (#f5d8f8) on a purple-tinted background (#0b040b).

Color palette

TokenLightDark
Background
#ffffffwhite
#0b040bblack
Foreground
#0c030dblack
#f9f6f9whitesmoke
Card
#ffffffwhite
#0b040bblack
Card foreground
#0c030dblack
#f9f6f9whitesmoke
Popover
#ffffffwhite
#0b040bblack
Popover foreground
#0c030dblack
#f9f6f9whitesmoke
Primary
#f5d8f8lavender
#f5d8f8lavender
Primary foreground
#7c1985purple
#7c1985purple
Secondary
#d9d8dagainsboro
#161217black
Secondary foreground
#413e41darkslategray
#b6a4b7darkgray
Muted
#e5e0e5gainsboro
#1e1a1fblack
Muted foreground
#453a45darkslategray
#c4bac5silver
Accent
#cbc2ccsilver
#2c1f2ddarkslategray
Accent foreground
#312a32darkslategray
#c9b4cbsilver
Destructive
#7f1805maroon
#f52d0aorangered
Destructive foreground
#fcc4balightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#f5d8f8lavender
#f5d8f8lavender

Contrast

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

Light mode
Text on background20.30:1AAA
Text on card20.30:1AAA
Primary button6.89:1AA
Secondary button7.43:1AAA
Muted text8.32:1AAA
Accent8.03:1AAA
Destructive6.74:1AA
Dark mode
Text on background18.90:1AAA
Text on card18.90:1AAA
Primary button6.89:1AA
Secondary button7.92:1AAA
Muted text9.17:1AAA
Accent8.08:1AAA
Destructive3.99:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.122 0.035 324.951);
  --muted: oklch(0.913 0.008 323.177);
  --muted-foreground: oklch(0.364 0.024 323.43);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.122 0.035 324.951);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.122 0.035 324.951);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.916 0.052 323.389);
  --primary-foreground: oklch(0.429 0.179 324.274);
  --secondary: oklch(0.884 0.003 323.148);
  --secondary-foreground: oklch(0.369 0.005 323.201);
  --accent: oklch(0.824 0.017 323.23);
  --accent-foreground: oklch(0.296 0.018 323.411);
  --destructive: oklch(0.389 0.141 32.175);
  --destructive-foreground: oklch(0.868 0.066 29.93);
  --ring: oklch(0.916 0.052 323.389);
  --chart-1: oklch(0.916 0.052 323.389);
  --chart-2: oklch(0.884 0.003 323.148);
  --chart-3: oklch(0.824 0.017 323.23);
  --chart-4: oklch(0.907 0.002 323.145);
  --chart-5: oklch(0.916 0.054 323.4);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.124 0.025 324.509);
  --foreground: oklch(0.976 0.005 323.158);
  --muted: oklch(0.223 0.012 323.376);
  --muted-foreground: oklch(0.799 0.02 323.247);
  --popover: oklch(0.124 0.025 324.509);
  --popover-foreground: oklch(0.976 0.005 323.158);
  --card: oklch(0.124 0.025 324.509);
  --card-foreground: oklch(0.976 0.005 323.158);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.916 0.052 323.389);
  --primary-foreground: oklch(0.429 0.179 324.274);
  --secondary: oklch(0.19 0.012 323.42);
  --secondary-foreground: oklch(0.739 0.034 323.345);
  --accent: oklch(0.262 0.031 323.649);
  --accent-foreground: oklch(0.794 0.039 323.359);
  --destructive: oklch(0.625 0.235 31.603);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.916 0.052 323.389);
  --chart-1: oklch(0.916 0.052 323.389);
  --chart-2: oklch(0.19 0.012 323.42);
  --chart-3: oklch(0.262 0.031 323.649);
  --chart-4: oklch(0.222 0.016 323.454);
  --chart-5: oklch(0.916 0.054 323.4);
}