Bother for shadcn/ui

Bother is a shadcn/ui theme built around a vivid violet primary color (#8529f5) with vivid purple accents (#eb29f5). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid violet primary (#8529f5) on a violet-tinted background (#0a070d).

Color palette

TokenLightDark
Background
#ffffffwhite
#0a070dblack
Foreground
#000000black
#f7f6f8whitesmoke
Card
#fcfcfcsnow
#0c0911black
Card foreground
#000000black
#faf9fbghostwhite
Popover
#ffffffwhite
#0a070dblack
Popover foreground
#000000black
#f7f6f8whitesmoke
Primary
#8529f5blueviolet
#8529f5blueviolet
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#2933f5royalblue
#2933f5royalblue
Secondary foreground
#ececfelavender
#ececfelavender
Muted
#e5e5eblavender
#14141ablack
Muted foreground
#57575cdimgray
#a3a3a8darkgray
Accent
#eb29f5magenta
#eb29f5magenta
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#7f2b0asaddlebrown
#f07342tomato
Destructive foreground
#fad2c2peachpuff
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#8529f5blueviolet
#8529f5blueviolet

Contrast

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

Light mode
Text on background21.00:1AAA
Text on card20.54:1AAA
Primary button5.79:1AA
Secondary button6.24:1AA
Muted text5.74:1AA
Accent3.41:1AA Large
Destructive6.64:1AA
Dark mode
Text on background18.58:1AAA
Text on card18.84:1AAA
Primary button5.79:1AA
Secondary button6.24:1AA
Muted text7.29:1AAA
Accent3.41:1AA Large
Destructive7.24:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.924 0.008 283.828);
  --muted-foreground: oklch(0.458 0.008 283.657);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.992 0 161.565);
  --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.542 0.269 295.945);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.482 0.275 268.255);
  --secondary-foreground: oklch(0.949 0.024 283.53);
  --accent: oklch(0.676 0.295 325.835);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.412 0.123 39.023);
  --destructive-foreground: oklch(0.893 0.051 42.724);
  --ring: oklch(0.542 0.269 295.945);
  --chart-1: oklch(0.542 0.269 295.945);
  --chart-2: oklch(0.482 0.275 268.255);
  --chart-3: oklch(0.676 0.295 325.835);
  --chart-4: oklch(0.506 0.26 270.316);
  --chart-5: oklch(0.543 0.274 295.418);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.136 0.016 306.138);
  --foreground: oklch(0.975 0.003 306.392);
  --muted: oklch(0.195 0.011 282.906);
  --muted-foreground: oklch(0.718 0.007 283.794);
  --popover: oklch(0.136 0.016 306.138);
  --popover-foreground: oklch(0.975 0.003 306.392);
  --card: oklch(0.147 0.018 304.98);
  --card-foreground: oklch(0.984 0.002 306.404);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.542 0.269 295.945);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.482 0.275 268.255);
  --secondary-foreground: oklch(0.949 0.024 283.53);
  --accent: oklch(0.676 0.295 325.835);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.695 0.166 41.156);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.542 0.269 295.945);
  --chart-1: oklch(0.542 0.269 295.945);
  --chart-2: oklch(0.482 0.275 268.255);
  --chart-3: oklch(0.676 0.295 325.835);
  --chart-4: oklch(0.506 0.26 270.316);
  --chart-5: oklch(0.543 0.274 295.418);
}