Quirky for shadcn/ui

Quirky is a shadcn/ui theme built around a light purple primary color (#f4cdf2) with light green accents (#cdf4ce). The light mode uses a neutral background (#fefbfe). Dark mode keeps the light purple primary (#f4cdf2) on a neutral background (#040104).

Color palette

TokenLightDark
Background
#fefbfewhite
#040104black
Foreground
#090109black
#f9f6f9whitesmoke
Card
#fefbfewhite
#040104black
Card foreground
#090109black
#f9f6f9whitesmoke
Popover
#fefbfewhite
#040104black
Popover foreground
#090109black
#f9f6f9whitesmoke
Primary
#f4cdf2lavender
#f4cdf2lavender
Primary foreground
#761971purple
#761971purple
Secondary
#cdf4cegainsboro
#cdf4cegainsboro
Secondary foreground
#072208black
#072208black
Muted
#d3e9d4gainsboro
#162c17black
Muted foreground
#3c493cdarkslategray
#b6c3b7silver
Accent
#cdf4cegainsboro
#cdf4cegainsboro
Accent foreground
#072208black
#072208black
Destructive
#c61801firebrick
#fe2c10orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#f4cdf2lavender
#f4cdf2lavender

Contrast

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

Light mode
Text on background20.04:1AAA
Text on card20.04:1AAA
Primary button6.90:1AA
Secondary button14.05:1AAA
Muted text7.39:1AAA
Accent14.05:1AAA
Destructive5.95:1AA
Dark mode
Text on background19.35:1AAA
Text on card19.35:1AAA
Primary button6.90:1AA
Secondary button14.05:1AAA
Muted text8.14:1AAA
Accent14.05:1AAA
Destructive3.76:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.004 327.078);
  --foreground: oklch(0.105 0.035 328.993);
  --muted: oklch(0.912 0.036 146.661);
  --muted-foreground: oklch(0.389 0.027 146.367);
  --popover: oklch(0.991 0.004 327.078);
  --popover-foreground: oklch(0.105 0.035 328.993);
  --card: oklch(0.991 0.004 327.078);
  --card-foreground: oklch(0.105 0.035 328.993);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.892 0.067 327.704);
  --primary-foreground: oklch(0.407 0.161 330.293);
  --secondary: oklch(0.93 0.065 146.36);
  --secondary-foreground: oklch(0.223 0.057 144.326);
  --accent: oklch(0.93 0.065 146.36);
  --accent-foreground: oklch(0.223 0.057 144.326);
  --destructive: oklch(0.526 0.206 30.771);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.892 0.067 327.704);
  --chart-1: oklch(0.892 0.067 327.704);
  --chart-2: oklch(0.93 0.065 146.36);
  --chart-3: oklch(0.93 0.065 146.36);
  --chart-4: oklch(0.947 0.049 146.545);
  --chart-5: oklch(0.891 0.07 327.733);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.086 0.02 328.482);
  --foreground: oklch(0.975 0.006 327.095);
  --muted: oklch(0.268 0.047 145.211);
  --muted-foreground: oklch(0.804 0.023 146.772);
  --popover: oklch(0.086 0.02 328.482);
  --popover-foreground: oklch(0.975 0.006 327.095);
  --card: oklch(0.086 0.02 328.482);
  --card-foreground: oklch(0.975 0.006 327.095);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.892 0.067 327.704);
  --primary-foreground: oklch(0.407 0.161 330.293);
  --secondary: oklch(0.93 0.065 146.36);
  --secondary-foreground: oklch(0.223 0.057 144.326);
  --accent: oklch(0.93 0.065 146.36);
  --accent-foreground: oklch(0.223 0.057 144.326);
  --destructive: oklch(0.64 0.243 30.864);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.892 0.067 327.704);
  --chart-1: oklch(0.892 0.067 327.704);
  --chart-2: oklch(0.93 0.065 146.36);
  --chart-3: oklch(0.93 0.065 146.36);
  --chart-4: oklch(0.947 0.049 146.545);
  --chart-5: oklch(0.891 0.07 327.733);
}