Quirky for shadcn/ui

Quirky is a shadcn/ui theme built around a near-black primary color (#020203) with near-black accents (#030302). The light mode uses a neutral background (#fcfbfe). Dark mode keeps the near-black primary (#020203) on an indigo-tinted background (#070510).

Color palette

TokenLightDark
Background
#fcfbfewhite
#070510black
Foreground
#04020eblack
#f7f6f8whitesmoke
Card
#f8f7fdghostwhite
#090613black
Card foreground
#030109black
#faf9fbghostwhite
Popover
#f8f7fdghostwhite
#090613black
Popover foreground
#030109black
#faf9fbghostwhite
Primary
#020203black
#020203black
Primary foreground
#c4bee0lightsteelblue
#c4bee0lightsteelblue
Secondary
#030302black
#030302black
Secondary foreground
#b0be79darkkhaki
#b0be79darkkhaki
Muted
#ebece4beige
#1a1b13black
Muted foreground
#585c47darkolivegreen
#b4b8a3darkgray
Accent
#030302black
#030302black
Accent foreground
#b0be79darkkhaki
#b0be79darkkhaki
Destructive
#720c03maroon
#f92815orangered
Destructive foreground
#fdb1aalightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#020203black
#020203black

Contrast

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

Light mode
Text on background19.96:1AAA
Text on card19.50:1AAA
Primary button11.65:1AAA
Secondary button10.28:1AAA
Muted text5.82:1AA
Accent10.28:1AAA
Destructive6.78:1AA
Dark mode
Text on background18.78:1AAA
Text on card19.09:1AAA
Primary button11.65:1AAA
Secondary button10.28:1AAA
Muted text8.52:1AAA
Accent10.28:1AAA
Destructive3.92: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.99 0.004 295.511);
  --foreground: oklch(0.102 0.036 293.353);
  --muted: oklch(0.941 0.012 115.807);
  --muted-foreground: oklch(0.465 0.033 116.9);
  --popover: oklch(0.979 0.007 295.443);
  --popover-foreground: oklch(0.088 0.031 293.822);
  --card: oklch(0.979 0.007 295.443);
  --card-foreground: oklch(0.088 0.031 293.822);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.083 0.01 295.04);
  --primary-foreground: oklch(0.817 0.048 294.49);
  --secondary: oklch(0.099 0.009 115.953);
  --secondary-foreground: oklch(0.775 0.094 117.856);
  --accent: oklch(0.099 0.009 115.953);
  --accent-foreground: oklch(0.775 0.094 117.856);
  --destructive: oklch(0.355 0.136 30.536);
  --destructive-foreground: oklch(0.831 0.089 24.958);
  --ring: oklch(0.083 0.01 295.04);
  --chart-1: oklch(0.083 0.01 295.04);
  --chart-2: oklch(0.099 0.009 115.953);
  --chart-3: oklch(0.099 0.009 115.953);
  --chart-4: oklch(0.158 0.015 116.894);
  --chart-5: oklch(0.083 0.011 294.981);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.126 0.026 293.692);
  --foreground: oklch(0.975 0.002 295.532);
  --muted: oklch(0.218 0.017 116.976);
  --muted-foreground: oklch(0.773 0.03 116.284);
  --popover: oklch(0.136 0.03 292.509);
  --popover-foreground: oklch(0.984 0.002 295.548);
  --card: oklch(0.136 0.03 292.509);
  --card-foreground: oklch(0.984 0.002 295.548);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.083 0.01 295.04);
  --primary-foreground: oklch(0.817 0.048 294.49);
  --secondary: oklch(0.099 0.009 115.953);
  --secondary-foreground: oklch(0.775 0.094 117.856);
  --accent: oklch(0.099 0.009 115.953);
  --accent-foreground: oklch(0.775 0.094 117.856);
  --destructive: oklch(0.63 0.24 30.092);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.083 0.01 295.04);
  --chart-1: oklch(0.083 0.01 295.04);
  --chart-2: oklch(0.099 0.009 115.953);
  --chart-3: oklch(0.099 0.009 115.953);
  --chart-4: oklch(0.158 0.015 116.894);
  --chart-5: oklch(0.083 0.011 294.981);
}