Bad is a shadcn/ui theme built around a vivid teal primary color (#128783) with vivid red accents (#871216). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid teal primary (#128783) on a neutral background (#030707).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #030707black |
| Foreground | #000000black | #f9fbfbghostwhite |
| Card | #ffffffwhite | #030707black |
| Card foreground | #000000black | #f9fbfbghostwhite |
| Popover | #ffffffwhite | #030707black |
| Popover foreground | #000000black | #f9fbfbghostwhite |
| Primary | #128783teal | #128783teal |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #871216darkred | #871216darkred |
| Secondary foreground | #f9d2d3pink | #f9d2d3pink |
| Muted | #f2ededlinen | #120d0dblack |
| Muted foreground | #6a5c5ddimgray | #a39595rosybrown |
| Accent | #871216darkred | #871216darkred |
| Accent foreground | #f9d2d3pink | #f9d2d3pink |
| Destructive | #6f1a0bmaroon | #ed5e45tomato |
| Destructive foreground | #f8bfb5lightpink | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #128783teal | #128783teal |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 21.00:1 | AAA |
| Text on card | 21.00:1 | AAA |
| Primary button | 4.33:1 | AA Large |
| Secondary button | 7.12:1 | AAA |
| Muted text | 5.49:1 | AA |
| Accent | 7.12:1 | AAA |
| Destructive | 7.14:1 | AAA |
| Text on background | 19.49:1 | AAA |
| Text on card | 19.49:1 | AAA |
| Primary button | 4.33:1 | AA Large |
| Secondary button | 7.12:1 | AAA |
| Muted text | 6.70:1 | AA |
| Accent | 7.12:1 | AAA |
| Destructive | 6.29:1 | AA |
Paste this into your globals.css to use Bad in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0 0 0);
--muted: oklch(0.95 0.006 14.901);
--muted-foreground: oklch(0.49 0.018 15.495);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0 0 0);
--card: oklch(1 0 180);
--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.566 0.094 191.139);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.402 0.151 26.239);
--secondary-foreground: oklch(0.897 0.044 15.738);
--accent: oklch(0.402 0.151 26.239);
--accent-foreground: oklch(0.897 0.044 15.738);
--destructive: oklch(0.361 0.122 32.34);
--destructive-foreground: oklch(0.852 0.067 29.96);
--ring: oklch(0.566 0.094 191.139);
--chart-1: oklch(0.566 0.094 191.139);
--chart-2: oklch(0.402 0.151 26.239);
--chart-3: oklch(0.402 0.151 26.239);
--chart-4: oklch(0.43 0.163 26.386);
--chart-5: oklch(0.572 0.096 191.063);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.122 0.009 193.914);
--foreground: oklch(0.986 0.002 194.755);
--muted: oklch(0.165 0.009 15.844);
--muted-foreground: oklch(0.681 0.017 15.25);
--popover: oklch(0.122 0.009 193.914);
--popover-foreground: oklch(0.986 0.002 194.755);
--card: oklch(0.122 0.009 193.914);
--card-foreground: oklch(0.986 0.002 194.755);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.566 0.094 191.139);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.402 0.151 26.239);
--secondary-foreground: oklch(0.897 0.044 15.738);
--accent: oklch(0.402 0.151 26.239);
--accent-foreground: oklch(0.897 0.044 15.738);
--destructive: oklch(0.662 0.181 32.127);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.566 0.094 191.139);
--chart-1: oklch(0.566 0.094 191.139);
--chart-2: oklch(0.402 0.151 26.239);
--chart-3: oklch(0.402 0.151 26.239);
--chart-4: oklch(0.43 0.163 26.386);
--chart-5: oklch(0.572 0.096 191.063);
}