Quirky for shadcn/ui

Quirky is a shadcn/ui theme built around a light indigo primary color (#e2ddf9) with light violet accents (#f0ddf9). The light mode uses a neutral background (#f9f8fc). Dark mode keeps the light indigo primary (#e2ddf9) on an indigo-tinted background (#070510).

Color palette

TokenLightDark
Background
#f9f8fcghostwhite
#070510black
Foreground
#030109black
#fcfcfdwhite
Card
#f9f8fcghostwhite
#070510black
Card foreground
#030109black
#fcfcfdwhite
Popover
#f9f8fcghostwhite
#070510black
Popover foreground
#030109black
#fcfcfdwhite
Primary
#e2ddf9lavender
#e2ddf9lavender
Primary foreground
#2e198amidnightblue
#2e198amidnightblue
Secondary
#dde5f9lavender
#dde5f9lavender
Secondary foreground
#193d8amidnightblue
#193d8amidnightblue
Muted
#e8ebf2lavender
#0d1017black
Muted foreground
#485060darkslategray
#9fa7b7darkgray
Accent
#f0ddf9lavender
#f0ddf9lavender
Accent foreground
#66198arebeccapurple
#66198arebeccapurple
Destructive
#b24010firebrick
#ef7743coral
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#e2ddf9lavender
#e2ddf9lavender

Contrast

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

Light mode
Text on background19.57:1AAA
Text on card19.57:1AAA
Primary button9.78:1AAA
Secondary button8.03:1AAA
Muted text6.80:1AA
Accent7.89:1AAA
Destructive5.75:1AA
Dark mode
Text on background19.74:1AAA
Text on card19.74:1AAA
Primary button9.78:1AAA
Secondary button8.03:1AAA
Muted text7.87:1AAA
Accent7.89:1AAA
Destructive7.36:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.98 0.006 294.715);
  --foreground: oklch(0.091 0.028 292.925);
  --muted: oklch(0.94 0.01 265.956);
  --muted-foreground: oklch(0.43 0.028 265.582);
  --popover: oklch(0.98 0.006 294.715);
  --popover-foreground: oklch(0.091 0.028 292.925);
  --card: oklch(0.98 0.006 294.715);
  --card-foreground: oklch(0.091 0.028 292.925);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.909 0.038 294.031);
  --primary-foreground: oklch(0.334 0.171 280.129);
  --secondary: oklch(0.922 0.028 265.844);
  --secondary-foreground: oklch(0.383 0.135 262.927);
  --accent: oklch(0.92 0.043 315.232);
  --accent-foreground: oklch(0.4 0.176 311.904);
  --destructive: oklch(0.527 0.158 39.676);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.909 0.038 294.031);
  --chart-1: oklch(0.909 0.038 294.031);
  --chart-2: oklch(0.922 0.028 265.844);
  --chart-3: oklch(0.92 0.043 315.232);
  --chart-4: oklch(0.951 0.017 265.917);
  --chart-5: oklch(0.907 0.04 293.995);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.125 0.026 292.768);
  --foreground: oklch(0.991 0.002 294.782);
  --muted: oklch(0.173 0.016 265.366);
  --muted-foreground: oklch(0.726 0.025 265.819);
  --popover: oklch(0.125 0.026 292.768);
  --popover-foreground: oklch(0.991 0.002 294.782);
  --card: oklch(0.125 0.026 292.768);
  --card-foreground: oklch(0.991 0.002 294.782);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.909 0.038 294.031);
  --primary-foreground: oklch(0.334 0.171 280.129);
  --secondary: oklch(0.922 0.028 265.844);
  --secondary-foreground: oklch(0.383 0.135 262.927);
  --accent: oklch(0.92 0.043 315.232);
  --accent-foreground: oklch(0.4 0.176 311.904);
  --destructive: oklch(0.699 0.162 42.557);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.909 0.038 294.031);
  --chart-1: oklch(0.909 0.038 294.031);
  --chart-2: oklch(0.922 0.028 265.844);
  --chart-3: oklch(0.92 0.043 315.232);
  --chart-4: oklch(0.951 0.017 265.917);
  --chart-5: oklch(0.907 0.04 293.995);
}