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).
| Token | Light | Dark |
|---|---|---|
| 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 |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 21.00:1 | AAA |
| Text on card | 20.54:1 | AAA |
| Primary button | 5.79:1 | AA |
| Secondary button | 6.24:1 | AA |
| Muted text | 5.74:1 | AA |
| Accent | 3.41:1 | AA Large |
| Destructive | 6.64:1 | AA |
| Text on background | 18.58:1 | AAA |
| Text on card | 18.84:1 | AAA |
| Primary button | 5.79:1 | AA |
| Secondary button | 6.24:1 | AA |
| Muted text | 7.29:1 | AAA |
| Accent | 3.41:1 | AA Large |
| Destructive | 7.24:1 | AAA |
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);
}