Quick-witted for shadcn/ui

Quick-witted is a shadcn/ui theme built around a near-black primary color (#020203) with muted light blue accents (#d6dae1). The light mode uses a neutral background (#fbfcfe). Dark mode keeps the near-black primary (#020203) on a neutral background (#040507).

Color palette

TokenLightDark
Background
#fbfcfewhite
#040507black
Foreground
#04070bblack
#fbfcfdwhite
Card
#fbfcfewhite
#040507black
Card foreground
#04070bblack
#fbfcfdwhite
Popover
#fbfcfewhite
#040507black
Popover foreground
#04070bblack
#fbfcfdwhite
Primary
#020203black
#020203black
Primary foreground
#8096b7lightslategray
#8096b7lightslategray
Secondary
#d6dae1gainsboro
#1d1e20black
Secondary foreground
#38404cdarkslategray
#b3b7bcsilver
Muted
#d0d7e1gainsboro
#1e252fdarkslategray
Muted foreground
#363e49darkslategray
#b6bdc9silver
Accent
#d6dae1gainsboro
#1d1e20black
Accent foreground
#38404cdarkslategray
#b3b7bcsilver
Destructive
#a31f0afirebrick
#f24b31tomato
Destructive foreground
#fde6e2mistyrose
#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.67:1AAA
Text on card19.67:1AAA
Primary button6.86:1AA
Secondary button7.47:1AAA
Muted text7.47:1AAA
Accent7.47:1AAA
Destructive6.38:1AA
Dark mode
Text on background19.88:1AAA
Text on card19.88:1AAA
Primary button6.86:1AA
Secondary button8.26:1AAA
Muted text8.20:1AAA
Accent8.26:1AAA
Destructive3.61:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.003 258.32);
  --foreground: oklch(0.126 0.013 251.38);
  --muted: oklch(0.877 0.016 258.351);
  --muted-foreground: oklch(0.361 0.022 258.369);
  --popover: oklch(0.991 0.003 258.32);
  --popover-foreground: oklch(0.126 0.013 251.38);
  --card: oklch(0.991 0.003 258.32);
  --card-foreground: oklch(0.126 0.013 251.38);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.089 0.005 254.438);
  --primary-foreground: oklch(0.668 0.056 258.353);
  --secondary: oklch(0.888 0.01 258.339);
  --secondary-foreground: oklch(0.37 0.023 258.369);
  --accent: oklch(0.888 0.01 258.339);
  --accent-foreground: oklch(0.37 0.023 258.369);
  --destructive: oklch(0.464 0.17 31.478);
  --destructive-foreground: oklch(0.942 0.026 28.096);
  --ring: oklch(0.089 0.005 254.438);
  --chart-1: oklch(0.089 0.005 254.438);
  --chart-2: oklch(0.888 0.01 258.339);
  --chart-3: oklch(0.888 0.01 258.339);
  --chart-4: oklch(0.912 0.008 258.334);
  --chart-5: oklch(0.089 0.006 253.999);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.112 0.007 254.146);
  --foreground: oklch(0.992 0.002 258.317);
  --muted: oklch(0.261 0.021 258.355);
  --muted-foreground: oklch(0.797 0.018 258.358);
  --popover: oklch(0.112 0.007 254.146);
  --popover-foreground: oklch(0.992 0.002 258.317);
  --card: oklch(0.112 0.007 254.146);
  --card-foreground: oklch(0.992 0.002 258.317);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.089 0.005 254.438);
  --primary-foreground: oklch(0.668 0.056 258.353);
  --secondary: oklch(0.235 0.005 258.354);
  --secondary-foreground: oklch(0.777 0.008 258.338);
  --accent: oklch(0.235 0.005 258.354);
  --accent-foreground: oklch(0.777 0.008 258.338);
  --destructive: oklch(0.646 0.208 31.605);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.089 0.005 254.438);
  --chart-1: oklch(0.089 0.005 254.438);
  --chart-2: oklch(0.235 0.005 258.354);
  --chart-3: oklch(0.235 0.005 258.354);
  --chart-4: oklch(0.267 0.006 258.356);
  --chart-5: oklch(0.089 0.006 253.999);
}