Quirky for shadcn/ui

Quirky is a shadcn/ui theme built around a vivid blue primary color (#147cfa) with muted light blue accents (#d2d8df). The light mode uses a neutral background (#f8fafc). Dark mode keeps the vivid blue primary (#147cfa) on a neutral background (#010204).

Color palette

TokenLightDark
Background
#f8fafcghostwhite
#010204black
Foreground
#060c14black
#ffffffwhite
Card
#f8fafcghostwhite
#010204black
Card foreground
#060c14black
#ffffffwhite
Popover
#f8fafcghostwhite
#010204black
Popover foreground
#060c14black
#ffffffwhite
Primary
#147cfadodgerblue
#147cfadodgerblue
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#d2d8dfgainsboro
#242629darkslategray
Secondary foreground
#353f4bdarkslategray
#bbbfc4silver
Muted
#dbe2ebgainsboro
#141b24black
Muted foreground
#484a4bdarkslategray
#b4b5b7silver
Accent
#d2d8dfgainsboro
#242629darkslategray
Accent foreground
#353f4bdarkslategray
#bbbfc4silver
Destructive
#de0a02red
#e80a02red
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#147cfadodgerblue
#147cfadodgerblue

Contrast

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

Light mode
Text on background18.70:1AAA
Text on card18.70:1AAA
Primary button3.97:1AA Large
Secondary button7.45:1AAA
Muted text6.83:1AA
Accent7.45:1AAA
Destructive5.05:1AA
Dark mode
Text on background20.70:1AAA
Text on card20.70:1AAA
Primary button3.97:1AA Large
Secondary button8.21:1AAA
Muted text8.42:1AAA
Accent8.21:1AAA
Destructive4.68:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.983 0.004 253.245);
  --foreground: oklch(0.152 0.02 251.43);
  --muted: oklch(0.911 0.014 253.317);
  --muted-foreground: oklch(0.408 0.003 253.273);
  --popover: oklch(0.983 0.004 253.245);
  --popover-foreground: oklch(0.152 0.02 251.43);
  --card: oklch(0.983 0.004 253.245);
  --card-foreground: oklch(0.152 0.02 251.43);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.604 0.208 257.417);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.88 0.012 253.307);
  --secondary-foreground: oklch(0.362 0.024 253.593);
  --accent: oklch(0.88 0.012 253.307);
  --accent-foreground: oklch(0.362 0.024 253.593);
  --destructive: oklch(0.568 0.23 29.463);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.604 0.208 257.417);
  --chart-1: oklch(0.604 0.208 257.417);
  --chart-2: oklch(0.88 0.012 253.307);
  --chart-3: oklch(0.88 0.012 253.307);
  --chart-4: oklch(0.904 0.009 253.288);
  --chart-5: oklch(0.606 0.214 257.689);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.089 0.008 247.055);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.221 0.019 253.689);
  --muted-foreground: oklch(0.772 0.003 253.244);
  --popover: oklch(0.089 0.008 247.055);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.089 0.008 247.055);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.604 0.208 257.417);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.267 0.007 253.373);
  --secondary-foreground: oklch(0.802 0.008 253.288);
  --accent: oklch(0.267 0.007 253.373);
  --accent-foreground: oklch(0.802 0.008 253.288);
  --destructive: oklch(0.587 0.238 29.451);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.604 0.208 257.417);
  --chart-1: oklch(0.604 0.208 257.417);
  --chart-2: oklch(0.267 0.007 253.373);
  --chart-3: oklch(0.267 0.007 253.373);
  --chart-4: oklch(0.298 0.008 253.38);
  --chart-5: oklch(0.606 0.214 257.689);
}