Bossy for shadcn/ui

Bossy is a shadcn/ui theme built around a green primary color (#68842e) with violet accents (#4b2e84). The light mode uses a neutral background (#fdfdfc). Dark mode keeps the green primary (#68842e) on a green-tinted background (#090b05).

Color palette

TokenLightDark
Background
#fdfdfcwhite
#090b05black
Foreground
#101603black
#ffffffwhite
Card
#fdfdfcwhite
#090b05black
Card foreground
#101603black
#ffffffwhite
Popover
#fdfdfcwhite
#090b05black
Popover foreground
#101603black
#ffffffwhite
Primary
#68842eolivedrab
#68842eolivedrab
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#4b2e84darkslateblue
#4b2e84darkslateblue
Secondary foreground
#f0ecf8whitesmoke
#f0ecf8whitesmoke
Muted
#e6e1eflavender
#15101eblack
Muted foreground
#5b536adimgray
#9d95acdarkgray
Accent
#4b2e84darkslateblue
#4b2e84darkslateblue
Accent foreground
#f0ecf8whitesmoke
#f0ecf8whitesmoke
Destructive
#b13910firebrick
#ed673btomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#68842eolivedrab
#68842eolivedrab

Contrast

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

Light mode
Text on background18.15:1AAA
Text on card18.15:1AAA
Primary button4.26:1AA Large
Secondary button8.89:1AAA
Muted text5.66:1AA
Accent8.89:1AAA
Destructive6.06:1AA
Dark mode
Text on background19.81:1AAA
Text on card19.81:1AAA
Primary button4.26:1AA Large
Secondary button8.89:1AAA
Muted text6.52:1AA
Accent8.89:1AAA
Destructive6.61:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.002 121.532);
  --foreground: oklch(0.189 0.038 124.131);
  --muted: oklch(0.917 0.02 301.146);
  --muted-foreground: oklch(0.458 0.037 300.167);
  --popover: oklch(0.994 0.002 121.532);
  --popover-foreground: oklch(0.189 0.038 124.131);
  --card: oklch(0.994 0.002 121.532);
  --card-foreground: oklch(0.189 0.038 124.131);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.573 0.118 125.615);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.386 0.137 294.452);
  --secondary-foreground: oklch(0.95 0.017 301.208);
  --accent: oklch(0.386 0.137 294.452);
  --accent-foreground: oklch(0.95 0.017 301.208);
  --destructive: oklch(0.516 0.164 36.78);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.573 0.118 125.615);
  --chart-1: oklch(0.573 0.118 125.615);
  --chart-2: oklch(0.386 0.137 294.452);
  --chart-3: oklch(0.386 0.137 294.452);
  --chart-4: oklch(0.409 0.146 294.344);
  --chart-5: oklch(0.58 0.123 125.851);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.143 0.016 121.29);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.186 0.029 298.862);
  --muted-foreground: oklch(0.685 0.034 300.695);
  --popover: oklch(0.143 0.016 121.29);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.143 0.016 121.29);
  --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.573 0.118 125.615);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.386 0.137 294.452);
  --secondary-foreground: oklch(0.95 0.017 301.208);
  --accent: oklch(0.386 0.137 294.452);
  --accent-foreground: oklch(0.95 0.017 301.208);
  --destructive: oklch(0.673 0.175 38.443);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.573 0.118 125.615);
  --chart-1: oklch(0.573 0.118 125.615);
  --chart-2: oklch(0.386 0.137 294.452);
  --chart-3: oklch(0.386 0.137 294.452);
  --chart-4: oklch(0.409 0.146 294.344);
  --chart-5: oklch(0.58 0.123 125.851);
}