Businessman for shadcn/ui

Businessman is a shadcn/ui theme built around a muted green primary color (#7c865f) with neutral gray accents (#e6e7e4). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted green primary (#7c865f) on a green-tinted background (#090c04).

Color palette

TokenLightDark
Background
#ffffffwhite
#090c04black
Foreground
#030501black
#fdfdfcwhite
Card
#ffffffwhite
#090c04black
Card foreground
#030501black
#fdfdfcwhite
Popover
#ffffffwhite
#090c04black
Popover foreground
#030501black
#fdfdfcwhite
Primary
#7c865fgray
#7c865fgray
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#e6e7e4gainsboro
#2c2d2adarkslategray
Secondary foreground
#4f5148darkslategray
#c5c6c3silver
Muted
#e7e9e2gainsboro
#1b1d16black
Muted foreground
#454644darkslategray
#babbb9silver
Accent
#e6e7e4gainsboro
#2c2d2adarkslategray
Accent foreground
#4f5148darkslategray
#c5c6c3silver
Destructive
#7b1c09maroon
#ed3612orangered
Destructive foreground
#fac7bdpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#7c865fgray
#7c865fgray

Contrast

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

Light mode
Text on background20.46:1AAA
Text on card20.46:1AAA
Primary button3.85:1AA Large
Secondary button6.50:1AA
Muted text7.74:1AAA
Accent6.50:1AA
Destructive6.91:1AA
Dark mode
Text on background19.38:1AAA
Text on card19.38:1AAA
Primary button3.85:1AA Large
Secondary button8.10:1AAA
Muted text8.84:1AAA
Accent8.10:1AAA
Destructive4.07:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.106 0.02 118.676);
  --muted: oklch(0.93 0.009 118.736);
  --muted-foreground: oklch(0.392 0.002 118.67);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.106 0.02 118.676);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.106 0.02 118.676);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.602 0.058 120.283);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.927 0.004 118.645);
  --secondary-foreground: oklch(0.43 0.015 119.181);
  --accent: oklch(0.927 0.004 118.645);
  --accent-foreground: oklch(0.43 0.015 119.181);
  --destructive: oklch(0.386 0.133 32.895);
  --destructive-foreground: oklch(0.871 0.06 31.343);
  --ring: oklch(0.602 0.058 120.283);
  --chart-1: oklch(0.602 0.058 120.283);
  --chart-2: oklch(0.927 0.004 118.645);
  --chart-3: oklch(0.927 0.004 118.645);
  --chart-4: oklch(0.949 0.003 118.62);
  --chart-5: oklch(0.61 0.067 120.555);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.146 0.019 118.879);
  --foreground: oklch(0.993 0.001 118.582);
  --muted: oklch(0.226 0.013 119.559);
  --muted-foreground: oklch(0.791 0.002 118.61);
  --popover: oklch(0.146 0.019 118.879);
  --popover-foreground: oklch(0.993 0.001 118.582);
  --card: oklch(0.146 0.019 118.879);
  --card-foreground: oklch(0.993 0.001 118.582);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.602 0.058 120.283);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.294 0.005 118.847);
  --secondary-foreground: oklch(0.825 0.005 118.671);
  --accent: oklch(0.294 0.005 118.847);
  --accent-foreground: oklch(0.825 0.005 118.671);
  --destructive: oklch(0.618 0.222 32.511);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.602 0.058 120.283);
  --chart-1: oklch(0.602 0.058 120.283);
  --chart-2: oklch(0.294 0.005 118.847);
  --chart-3: oklch(0.294 0.005 118.847);
  --chart-4: oklch(0.325 0.005 118.857);
  --chart-5: oklch(0.61 0.067 120.555);
}