Quick-witted for shadcn/ui

Quick-witted is a shadcn/ui theme built around a light violet primary color (#c5b2f0) with light purple accents (#e4b2f0). The light mode uses a neutral background (#f8f6fd). Dark mode keeps the light violet primary (#c5b2f0) on a violet-tinted background (#06040c).

Color palette

TokenLightDark
Background
#f8f6fdghostwhite
#06040cblack
Foreground
#090415black
#f9f8fcghostwhite
Card
#f5f2fdghostwhite
#080510black
Card foreground
#080311black
#fcfcfdwhite
Popover
#f8f6fdghostwhite
#06040cblack
Popover foreground
#090415black
#f9f8fcghostwhite
Primary
#c5b2f0lightsteelblue
#c5b2f0lightsteelblue
Primary foreground
#29125emidnightblue
#29125emidnightblue
Secondary
#b2bef0lightsteelblue
#b2bef0lightsteelblue
Secondary foreground
#12215emidnightblue
#12215emidnightblue
Muted
#e4e6eclavender
#13151bblack
Muted foreground
#373b48darkslategray
#b7bac8silver
Accent
#e4b2f0plum
#e4b2f0plum
Accent foreground
#4f125eindigo
#4f125eindigo
Destructive
#ac4006saddlebrown
#f87935coral
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#c5b2f0lightsteelblue
#c5b2f0lightsteelblue

Contrast

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

Light mode
Text on background18.90:1AAA
Text on card18.42:1AAA
Primary button8.18:1AAA
Secondary button8.22:1AAA
Muted text8.92:1AAA
Accent7.53:1AAA
Destructive5.99:1AA
Dark mode
Text on background19.31:1AAA
Text on card19.73:1AAA
Primary button8.18:1AAA
Secondary button8.22:1AAA
Muted text9.47:1AAA
Accent7.53:1AAA
Destructive7.78:1AAA

CSS variables

Paste this into your globals.css to use Quick-witted in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.978 0.01 299.871);
  --foreground: oklch(0.132 0.039 296.993);
  --muted: oklch(0.925 0.009 274.92);
  --muted-foreground: oklch(0.354 0.023 274.119);
  --popover: oklch(0.978 0.01 299.871);
  --popover-foreground: oklch(0.132 0.039 296.993);
  --card: oklch(0.967 0.015 299.784);
  --card-foreground: oklch(0.121 0.034 298.635);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.801 0.089 298.124);
  --primary-foreground: oklch(0.272 0.125 288.924);
  --secondary: oklch(0.81 0.072 273.762);
  --secondary-foreground: oklch(0.28 0.11 267.702);
  --accent: oklch(0.828 0.101 319.463);
  --accent-foreground: oklch(0.325 0.134 318.582);
  --destructive: oklch(0.516 0.153 41.842);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.801 0.089 298.124);
  --chart-1: oklch(0.801 0.089 298.124);
  --chart-2: oklch(0.81 0.072 273.762);
  --chart-3: oklch(0.828 0.101 319.463);
  --chart-4: oklch(0.842 0.059 274.056);
  --chart-5: oklch(0.798 0.093 298.028);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.114 0.024 300.078);
  --foreground: oklch(0.981 0.005 299.955);
  --muted: oklch(0.195 0.013 274.13);
  --muted-foreground: oklch(0.791 0.019 274.729);
  --popover: oklch(0.114 0.024 300.078);
  --popover-foreground: oklch(0.981 0.005 299.955);
  --card: oklch(0.126 0.027 298.931);
  --card-foreground: oklch(0.991 0.002 299.997);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.801 0.089 298.124);
  --primary-foreground: oklch(0.272 0.125 288.924);
  --secondary: oklch(0.81 0.072 273.762);
  --secondary-foreground: oklch(0.28 0.11 267.702);
  --accent: oklch(0.828 0.101 319.463);
  --accent-foreground: oklch(0.325 0.134 318.582);
  --destructive: oklch(0.714 0.174 45.784);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.801 0.089 298.124);
  --chart-1: oklch(0.801 0.089 298.124);
  --chart-2: oklch(0.81 0.072 273.762);
  --chart-3: oklch(0.828 0.101 319.463);
  --chart-4: oklch(0.842 0.059 274.056);
  --chart-5: oklch(0.798 0.093 298.028);
}