Quirky for shadcn/ui

Quirky is a shadcn/ui theme built around a near-black primary color (#0c040b) with near-black accents (#040b0c). The light mode uses a neutral background (#fefbfe). Dark mode keeps the near-black primary (#0c040b) on a purple-tinted background (#0a050a).

Color palette

TokenLightDark
Background
#fefbfewhite
#0a050ablack
Foreground
#140513black
#fbf9fbsnow
Card
#fdf7fdsnow
#0e070eblack
Card foreground
#10040fblack
#fdfcfdwhite
Popover
#fdf7fdsnow
#0e070eblack
Popover foreground
#10040fblack
#fdfcfdwhite
Primary
#0c040bblack
#0c040bblack
Primary foreground
#d171ccorchid
#d171ccorchid
Secondary
#0b0c04black
#0b0c04black
Secondary foreground
#a0a636yellowgreen
#a0a636yellowgreen
Muted
#dfe0d7gainsboro
#28281fdarkslategray
Muted foreground
#525251darkslategray
#aeaeaddarkgray
Accent
#040b0cblack
#040b0cblack
Accent foreground
#36a0a6lightseagreen
#36a0a6lightseagreen
Destructive
#973902saddlebrown
#fd7b30coral
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#0c040bblack
#0c040bblack

Contrast

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

Light mode
Text on background19.26:1AAA
Text on card19.00:1AAA
Primary button6.70:1AA
Secondary button7.50:1AAA
Muted text5.88:1AA
Accent6.36:1AA
Destructive7.23:1AAA
Dark mode
Text on background19.29:1AAA
Text on card19.48:1AAA
Primary button6.70:1AA
Secondary button7.50:1AAA
Muted text6.67:1AA
Accent6.36:1AA
Destructive8.05:1AAA

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.005 327.083);
  --foreground: oklch(0.152 0.038 329.038);
  --muted: oklch(0.904 0.012 108.964);
  --muted-foreground: oklch(0.439 0.003 108.82);
  --popover: oklch(0.982 0.01 327.129);
  --popover-foreground: oklch(0.138 0.033 328.853);
  --card: oklch(0.982 0.01 327.129);
  --card-foreground: oklch(0.138 0.033 328.853);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.125 0.026 328.43);
  --primary-foreground: oklch(0.687 0.166 329.046);
  --secondary: oklch(0.148 0.019 110.501);
  --secondary-foreground: oklch(0.698 0.133 112.151);
  --accent: oklch(0.141 0.014 199.167);
  --accent-foreground: oklch(0.649 0.095 200.139);
  --destructive: oklch(0.471 0.139 42.815);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.125 0.026 328.43);
  --chart-1: oklch(0.125 0.026 328.43);
  --chart-2: oklch(0.148 0.019 110.501);
  --chart-3: oklch(0.141 0.014 199.167);
  --chart-4: oklch(0.199 0.028 111.194);
  --chart-5: oklch(0.125 0.027 328.521);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.127 0.018 327.959);
  --foreground: oklch(0.984 0.003 327.065);
  --muted: oklch(0.275 0.016 109.793);
  --muted-foreground: oklch(0.751 0.002 108.766);
  --popover: oklch(0.141 0.021 328.197);
  --popover-foreground: oklch(0.992 0.001 327.052);
  --card: oklch(0.141 0.021 328.197);
  --card-foreground: oklch(0.992 0.001 327.052);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.125 0.026 328.43);
  --primary-foreground: oklch(0.687 0.166 329.046);
  --secondary: oklch(0.148 0.019 110.501);
  --secondary-foreground: oklch(0.698 0.133 112.151);
  --accent: oklch(0.141 0.014 199.167);
  --accent-foreground: oklch(0.649 0.095 200.139);
  --destructive: oklch(0.724 0.179 46.695);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.125 0.026 328.43);
  --chart-1: oklch(0.125 0.026 328.43);
  --chart-2: oklch(0.148 0.019 110.501);
  --chart-3: oklch(0.141 0.014 199.167);
  --chart-4: oklch(0.199 0.028 111.194);
  --chart-5: oklch(0.125 0.027 328.521);
}