Wiseguy for shadcn/ui

Wiseguy is a shadcn/ui theme built around a muted deep indigo primary color (#1e1e2a) with muted deep green accents (#1e2a1e). The light mode uses a neutral background (#f7f7fd). Dark mode keeps the muted deep indigo primary (#1e1e2a) on a neutral background (#030307).

Color palette

TokenLightDark
Background
#f7f7fdghostwhite
#030307black
Foreground
#000000black
#fcfcfdwhite
Card
#f3f2fcaliceblue
#05040bblack
Card foreground
#000000black
#ffffffwhite
Popover
#f3f2fcaliceblue
#05040bblack
Popover foreground
#000000black
#ffffffwhite
Primary
#1e1e2ablack
#1e1e2ablack
Primary foreground
#b2b1c8silver
#b2b1c8silver
Secondary
#2a1e1eblack
#2a1e1eblack
Secondary foreground
#c8b2b1silver
#c8b2b1silver
Muted
#e3cfcflightgrey
#301d1cblack
Muted foreground
#605857dimgray
#a89f9fdarkgray
Accent
#1e2a1eblack
#1e2a1eblack
Accent foreground
#b1c8b2silver
#b1c8b2silver
Destructive
#8a390asaddlebrown
#ee691bchocolate
Destructive foreground
#fbddcbbisque
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#1e1e2ablack
#1e1e2ablack

Contrast

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

Light mode
Text on background19.62:1AAA
Text on card18.96:1AAA
Primary button7.88:1AAA
Secondary button8.03:1AAA
Muted text4.66:1AA
Accent8.40:1AAA
Destructive6.12:1AA
Dark mode
Text on background20.08:1AAA
Text on card20.39:1AAA
Primary button7.88:1AAA
Secondary button8.03:1AAA
Muted text6.15:1AA
Accent8.40:1AAA
Destructive6.64:1AA

CSS variables

Paste this into your globals.css to use Wiseguy in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.977 0.009 287.775);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.872 0.022 19.961);
  --muted-foreground: oklch(0.467 0.012 19.964);
  --popover: oklch(0.966 0.013 287.689);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.966 0.013 287.689);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.24 0.023 286.043);
  --primary-foreground: oklch(0.77 0.032 287.154);
  --secondary: oklch(0.249 0.018 20.756);
  --secondary-foreground: oklch(0.783 0.025 20.074);
  --accent: oklch(0.269 0.027 145.607);
  --accent-foreground: oklch(0.81 0.039 146.113);
  --destructive: oklch(0.448 0.122 44.758);
  --destructive-foreground: oklch(0.917 0.042 51.998);
  --ring: oklch(0.24 0.023 286.043);
  --chart-1: oklch(0.24 0.023 286.043);
  --chart-2: oklch(0.249 0.018 20.756);
  --chart-3: oklch(0.269 0.027 145.607);
  --chart-4: oklch(0.279 0.022 20.829);
  --chart-5: oklch(0.236 0.027 285.638);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.101 0.016 285.205);
  --foreground: oklch(0.991 0.002 287.909);
  --muted: oklch(0.255 0.031 21.593);
  --muted-foreground: oklch(0.71 0.01 19.813);
  --popover: oklch(0.115 0.018 285.191);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.115 0.018 285.191);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.24 0.023 286.043);
  --primary-foreground: oklch(0.77 0.032 287.154);
  --secondary: oklch(0.249 0.018 20.756);
  --secondary-foreground: oklch(0.783 0.025 20.074);
  --accent: oklch(0.269 0.027 145.607);
  --accent-foreground: oklch(0.81 0.039 146.113);
  --destructive: oklch(0.674 0.183 44.861);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.24 0.023 286.043);
  --chart-1: oklch(0.24 0.023 286.043);
  --chart-2: oklch(0.249 0.018 20.756);
  --chart-3: oklch(0.269 0.027 145.607);
  --chart-4: oklch(0.279 0.022 20.829);
  --chart-5: oklch(0.236 0.027 285.638);
}