Quick-witted for shadcn/ui

Quick-witted is a shadcn/ui theme built around a deep cyan primary color (#24444c) with deep red accents (#4c2c24). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep cyan primary (#24444c) on a cyan-tinted background (#050d10).

Color palette

TokenLightDark
Background
#ffffffwhite
#050d10black
Foreground
#031216black
#f6f8f8whitesmoke
Card
#fcfcfcsnow
#061113black
Card foreground
#030f12black
#f9fafbghostwhite
Popover
#ffffffwhite
#050d10black
Popover foreground
#031216black
#f6f8f8whitesmoke
Primary
#24444cdarkslategray
#24444cdarkslategray
Primary foreground
#c1dbe1powderblue
#c1dbe1powderblue
Secondary
#4c2c24darkslategray
#4c2c24darkslategray
Secondary foreground
#e1c7c1lightgrey
#e1c7c1lightgrey
Muted
#e7d8d5gainsboro
#2a1c18black
Muted foreground
#403f3fdarkslategray
#c0bfbfsilver
Accent
#4c2c24darkslategray
#4c2c24darkslategray
Accent foreground
#e1c7c1lightgrey
#e1c7c1lightgrey
Destructive
#b82f05firebrick
#f9430borangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#24444cdarkslategray
#24444cdarkslategray

Contrast

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

Light mode
Text on background19.05:1AAA
Text on card19.00:1AAA
Primary button7.22:1AAA
Secondary button7.74:1AAA
Muted text7.60:1AAA
Accent7.74:1AAA
Destructive6.10:1AA
Dark mode
Text on background18.35:1AAA
Text on card18.33:1AAA
Primary button7.22:1AAA
Secondary button7.74:1AAA
Muted text8.97:1AAA
Accent7.74:1AAA
Destructive3.60: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(1 0 180);
  --foreground: oklch(0.172 0.024 214.516);
  --muted: oklch(0.894 0.017 34.297);
  --muted-foreground: oklch(0.37 0.001 34.31);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.172 0.024 214.516);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.156 0.021 213.044);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.365 0.04 215.661);
  --primary-foreground: oklch(0.874 0.029 214.459);
  --secondary: oklch(0.332 0.049 34.787);
  --secondary-foreground: oklch(0.851 0.03 34.308);
  --accent: oklch(0.332 0.049 34.787);
  --accent-foreground: oklch(0.851 0.03 34.308);
  --destructive: oklch(0.516 0.179 34.736);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.365 0.04 215.661);
  --chart-1: oklch(0.365 0.04 215.661);
  --chart-2: oklch(0.332 0.049 34.787);
  --chart-3: oklch(0.332 0.049 34.787);
  --chart-4: oklch(0.36 0.054 34.808);
  --chart-5: oklch(0.368 0.042 215.874);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.153 0.015 213.348);
  --foreground: oklch(0.978 0.002 214.321);
  --muted: oklch(0.242 0.025 34.536);
  --muted-foreground: oklch(0.805 0.001 34.315);
  --popover: oklch(0.153 0.015 213.348);
  --popover-foreground: oklch(0.978 0.002 214.321);
  --card: oklch(0.167 0.017 214.59);
  --card-foreground: oklch(0.985 0.001 214.32);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.365 0.04 215.661);
  --primary-foreground: oklch(0.874 0.029 214.459);
  --secondary: oklch(0.332 0.049 34.787);
  --secondary-foreground: oklch(0.851 0.03 34.308);
  --accent: oklch(0.332 0.049 34.787);
  --accent-foreground: oklch(0.851 0.03 34.308);
  --destructive: oklch(0.648 0.225 34.688);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.365 0.04 215.661);
  --chart-1: oklch(0.365 0.04 215.661);
  --chart-2: oklch(0.332 0.049 34.787);
  --chart-3: oklch(0.332 0.049 34.787);
  --chart-4: oklch(0.36 0.054 34.808);
  --chart-5: oklch(0.368 0.042 215.874);
}