Quirky for shadcn/ui

Quirky is a shadcn/ui theme built around a blue primary color (#9cade2) with yellow accents (#e2d29c). The light mode uses a neutral background (#fbfcfe). Dark mode keeps the blue primary (#9cade2) on a neutral background (#020408).

Color palette

TokenLightDark
Background
#fbfcfewhite
#020408black
Foreground
#020309black
#ffffffwhite
Card
#fbfcfewhite
#020408black
Card foreground
#020309black
#ffffffwhite
Popover
#fbfcfewhite
#020408black
Popover foreground
#020309black
#ffffffwhite
Primary
#9cade2lightsteelblue
#9cade2lightsteelblue
Primary foreground
#111b3bmidnightblue
#111b3bmidnightblue
Secondary
#e2d29cpalegoldenrod
#e2d29cpalegoldenrod
Secondary foreground
#3b3111darkslategray
#3b3111darkslategray
Muted
#ebe7dbantiquewhite
#242114black
Muted foreground
#595959dimgray
#a6a6a6darkgray
Accent
#e2d29cpalegoldenrod
#e2d29cpalegoldenrod
Accent foreground
#3b3111darkslategray
#3b3111darkslategray
Destructive
#e63200orangered
#ff5b2etomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#9cade2lightsteelblue
#9cade2lightsteelblue

Contrast

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

Light mode
Text on background20.00:1AAA
Text on card20.00:1AAA
Primary button7.60:1AAA
Secondary button8.53:1AAA
Muted text5.68:1AA
Accent8.53:1AAA
Destructive4.37:1AA Large
Dark mode
Text on background20.54:1AAA
Text on card20.54:1AAA
Primary button7.60:1AAA
Secondary button8.53:1AAA
Muted text6.64:1AA
Accent8.53:1AAA
Destructive6.79:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.004 272.62);
  --foreground: oklch(0.1 0.02 262.739);
  --muted: oklch(0.929 0.018 92.835);
  --muted-foreground: oklch(0.465 0 180);
  --popover: oklch(0.99 0.004 272.62);
  --popover-foreground: oklch(0.1 0.02 262.739);
  --card: oklch(0.99 0.004 272.62);
  --card-foreground: oklch(0.1 0.02 262.739);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.753 0.08 271.279);
  --primary-foreground: oklch(0.233 0.063 268.428);
  --secondary: oklch(0.864 0.072 93.169);
  --secondary-foreground: oklch(0.318 0.05 92.4);
  --accent: oklch(0.864 0.072 93.169);
  --accent-foreground: oklch(0.318 0.05 92.4);
  --destructive: oklch(0.6 0.22 33.345);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.753 0.08 271.279);
  --chart-1: oklch(0.753 0.08 271.279);
  --chart-2: oklch(0.864 0.072 93.169);
  --chart-3: oklch(0.864 0.072 93.169);
  --chart-4: oklch(0.88 0.064 93.15);
  --chart-5: oklch(0.75 0.084 271.183);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.104 0.015 265.534);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.246 0.023 93.164);
  --muted-foreground: oklch(0.724 0 180);
  --popover: oklch(0.104 0.015 265.534);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.104 0.015 265.534);
  --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.753 0.08 271.279);
  --primary-foreground: oklch(0.233 0.063 268.428);
  --secondary: oklch(0.864 0.072 93.169);
  --secondary-foreground: oklch(0.318 0.05 92.4);
  --accent: oklch(0.864 0.072 93.169);
  --accent-foreground: oklch(0.318 0.05 92.4);
  --destructive: oklch(0.685 0.207 35.76);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.753 0.08 271.279);
  --chart-1: oklch(0.753 0.08 271.279);
  --chart-2: oklch(0.864 0.072 93.169);
  --chart-3: oklch(0.864 0.072 93.169);
  --chart-4: oklch(0.88 0.064 93.15);
  --chart-5: oklch(0.75 0.084 271.183);
}