Bother is a shadcn/ui theme built around a muted deep violet primary color (#453c49) with muted deep teal accents (#3c4945). The light mode uses a neutral background (#fbf8fc). Dark mode keeps the muted deep violet primary (#453c49) on a neutral background (#030104).
| Token | Light | Dark |
|---|---|---|
| Background | #fbf8fcghostwhite | #030104black |
| Foreground | #060209black | #ffffffwhite |
| Card | #fbf8fcghostwhite | #030104black |
| Card foreground | #060209black | #ffffffwhite |
| Popover | #fbf8fcghostwhite | #030104black |
| Popover foreground | #060209black | #ffffffwhite |
| Primary | #453c49darkslategray | #453c49darkslategray |
| Primary foreground | #ddd8dfgainsboro | #ddd8dfgainsboro |
| Secondary | #49453cdarkslategray | #49453cdarkslategray |
| Secondary foreground | #dfddd8gainsboro | #dfddd8gainsboro |
| Muted | #e8e5degainsboro | #211e17black |
| Muted foreground | #6b6352dimgray | #ada594darkgray |
| Accent | #3c4945darkslategray | #3c4945darkslategray |
| Accent foreground | #d8dfddgainsboro | #d8dfddgainsboro |
| Destructive | #92240csaddlebrown | #ed4b26chocolate |
| Destructive foreground | #fcdcd5mistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #453c49darkslategray | #453c49darkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.50:1 | AAA |
| Text on card | 19.50:1 | AAA |
| Primary button | 7.53:1 | AAA |
| Secondary button | 7.05:1 | AAA |
| Muted text | 4.72:1 | AA |
| Accent | 6.97:1 | AA |
| Destructive | 6.56:1 | AA |
| Text on background | 20.75:1 | AAA |
| Text on card | 20.75:1 | AAA |
| Primary button | 7.53:1 | AAA |
| Secondary button | 7.05:1 | AAA |
| Muted text | 6.80:1 | AA |
| Accent | 6.97:1 | AA |
| Destructive | 3.72:1 | AA Large |
Paste this into your globals.css to use Bother in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.982 0.006 315.401);
--foreground: oklch(0.102 0.029 317.877);
--muted: oklch(0.922 0.01 86.046);
--muted-foreground: oklch(0.501 0.027 86.079);
--popover: oklch(0.982 0.006 315.401);
--popover-foreground: oklch(0.102 0.029 317.877);
--card: oklch(0.982 0.006 315.401);
--card-foreground: oklch(0.102 0.029 317.877);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.369 0.025 315.139);
--primary-foreground: oklch(0.887 0.011 315.375);
--secondary: oklch(0.391 0.016 86.095);
--secondary-foreground: oklch(0.897 0.007 86.037);
--accent: oklch(0.392 0.018 174.169);
--accent-foreground: oklch(0.897 0.008 175.345);
--destructive: oklch(0.438 0.149 33.526);
--destructive-foreground: oklch(0.918 0.037 32.723);
--ring: oklch(0.369 0.025 315.139);
--chart-1: oklch(0.369 0.025 315.139);
--chart-2: oklch(0.391 0.016 86.095);
--chart-3: oklch(0.392 0.018 174.169);
--chart-4: oklch(0.42 0.017 86.095);
--chart-5: oklch(0.366 0.033 315.048);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.085 0.014 316.867);
--foreground: oklch(1 0 180);
--muted: oklch(0.236 0.014 86.072);
--muted-foreground: oklch(0.724 0.025 86.094);
--popover: oklch(0.085 0.014 316.867);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.085 0.014 316.867);
--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.369 0.025 315.139);
--primary-foreground: oklch(0.887 0.011 315.375);
--secondary: oklch(0.391 0.016 86.095);
--secondary-foreground: oklch(0.897 0.007 86.037);
--accent: oklch(0.392 0.018 174.169);
--accent-foreground: oklch(0.897 0.008 175.345);
--destructive: oklch(0.638 0.205 33.885);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.369 0.025 315.139);
--chart-1: oklch(0.369 0.025 315.139);
--chart-2: oklch(0.391 0.016 86.095);
--chart-3: oklch(0.392 0.018 174.169);
--chart-4: oklch(0.42 0.017 86.095);
--chart-5: oklch(0.366 0.033 315.048);
}