Quirky for shadcn/ui

Quirky is a shadcn/ui theme built around a light purple primary color (#f4d2f1) with light pink accents (#f4d2e0). The light mode uses a neutral background (#ffffff). Dark mode keeps the light purple primary (#f4d2f1) on a neutral background (#080208).

Color palette

TokenLightDark
Background
#ffffffwhite
#080208black
Foreground
#040104black
#f9f6f9whitesmoke
Card
#ffffffwhite
#080208black
Card foreground
#040104black
#f9f6f9whitesmoke
Popover
#ffffffwhite
#080208black
Popover foreground
#040104black
#f9f6f9whitesmoke
Primary
#f4d2f1lavender
#f4d2f1lavender
Primary foreground
#761e6fpurple
#761e6fpurple
Secondary
#e6d2f4lavender
#e6d2f4lavender
Secondary foreground
#511e76indigo
#511e76indigo
Muted
#e1dce5gainsboro
#1f1a23black
Muted foreground
#575459dimgray
#a9a6abdarkgray
Accent
#f4d2e0mistyrose
#f4d2e0mistyrose
Accent foreground
#761e43brown
#761e43brown
Destructive
#b92c13firebrick
#e23618orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#f4d2f1lavender
#f4d2f1lavender

Contrast

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

Light mode
Text on background20.76:1AAA
Text on card20.76:1AAA
Primary button7.01:1AAA
Secondary button8.28:1AAA
Muted text5.52:1AA
Accent7.43:1AAA
Destructive6.12:1AA
Dark mode
Text on background19.13:1AAA
Text on card19.13:1AAA
Primary button7.01:1AAA
Secondary button8.28:1AAA
Muted text7.08:1AAA
Accent7.43:1AAA
Destructive4.39: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.085 0.023 329.593);
  --muted: oklch(0.901 0.014 311.602);
  --muted-foreground: oklch(0.451 0.009 311.56);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.085 0.023 329.593);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.085 0.023 329.593);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.901 0.055 328.683);
  --primary-foreground: oklch(0.41 0.154 331.645);
  --secondary: oklch(0.89 0.05 311.273);
  --secondary-foreground: oklch(0.36 0.145 307.138);
  --accent: oklch(0.896 0.042 350.933);
  --accent-foreground: oklch(0.389 0.126 359.576);
  --destructive: oklch(0.516 0.18 32.22);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.901 0.055 328.683);
  --chart-1: oklch(0.901 0.055 328.683);
  --chart-2: oklch(0.89 0.05 311.273);
  --chart-3: oklch(0.896 0.042 350.933);
  --chart-4: oklch(0.92 0.036 311.409);
  --chart-5: oklch(0.901 0.058 328.713);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.108 0.025 329.403);
  --foreground: oklch(0.976 0.005 328.122);
  --muted: oklch(0.228 0.019 311.05);
  --muted-foreground: oklch(0.728 0.008 311.634);
  --popover: oklch(0.108 0.025 329.403);
  --popover-foreground: oklch(0.976 0.005 328.122);
  --card: oklch(0.108 0.025 329.403);
  --card-foreground: oklch(0.976 0.005 328.122);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.901 0.055 328.683);
  --primary-foreground: oklch(0.41 0.154 331.645);
  --secondary: oklch(0.89 0.05 311.273);
  --secondary-foreground: oklch(0.36 0.145 307.138);
  --accent: oklch(0.896 0.042 350.933);
  --accent-foreground: oklch(0.389 0.126 359.576);
  --destructive: oklch(0.599 0.212 32.16);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.901 0.055 328.683);
  --chart-1: oklch(0.901 0.055 328.683);
  --chart-2: oklch(0.89 0.05 311.273);
  --chart-3: oklch(0.896 0.042 350.933);
  --chart-4: oklch(0.92 0.036 311.409);
  --chart-5: oklch(0.901 0.058 328.713);
}