Bad is a shadcn/ui theme built around a deep indigo primary color (#1b1145) with muted light indigo accents (#cbcad3). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep indigo primary (#1b1145) on a neutral background (#030208).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #030208black |
| Foreground | #04020eblack | #ffffffwhite |
| Card | #ffffffwhite | #030208black |
| Card foreground | #04020eblack | #ffffffwhite |
| Popover | #ffffffwhite | #030208black |
| Popover foreground | #04020eblack | #ffffffwhite |
| Primary | #1b1145midnightblue | #1b1145midnightblue |
| Primary foreground | #aea1e8lightsteelblue | #aea1e8lightsteelblue |
| Secondary | #e0dfe2gainsboro | #1c1a23black |
| Secondary foreground | #46454adarkslategray | #b1adc2silver |
| Muted | #eeedf2whitesmoke | #0e0d12black |
| Muted foreground | #3c3946darkslategray | #bbb9c6silver |
| Accent | #cbcad3lightgrey | #2c283edarkslategray |
| Accent foreground | #32303bdarkslategray | #c5c1d7thistle |
| Destructive | #610a0amaroon | #e31616crimson |
| Destructive foreground | #f6a7a7lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #1b1145midnightblue | #1b1145midnightblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.58:1 | AAA |
| Text on card | 20.58:1 | AAA |
| Primary button | 7.45:1 | AAA |
| Secondary button | 7.15:1 | AAA |
| Muted text | 9.69:1 | AAA |
| Accent | 7.96:1 | AAA |
| Destructive | 7.05:1 | AAA |
| Text on background | 20.62:1 | AAA |
| Text on card | 20.62:1 | AAA |
| Primary button | 7.45:1 | AAA |
| Secondary button | 7.88:1 | AAA |
| Muted text | 10.02:1 | AAA |
| Accent | 8.11:1 | AAA |
| Destructive | 4.76: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.101 0.036 292.169);
--muted: oklch(0.949 0.006 294.703);
--muted-foreground: oklch(0.353 0.022 293.645);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.101 0.036 292.169);
--card: oklch(1 0 180);
--card-foreground: oklch(0.101 0.036 292.169);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.23 0.092 284.885);
--primary-foreground: oklch(0.746 0.101 292.183);
--secondary: oklch(0.905 0.003 294.755);
--secondary-foreground: oklch(0.392 0.01 294.367);
--accent: oklch(0.842 0.013 294.527);
--accent-foreground: oklch(0.316 0.019 293.688);
--destructive: oklch(0.318 0.12 27.5);
--destructive-foreground: oklch(0.805 0.094 19.337);
--ring: oklch(0.23 0.092 284.885);
--chart-1: oklch(0.23 0.092 284.885);
--chart-2: oklch(0.905 0.003 294.755);
--chart-3: oklch(0.842 0.013 294.527);
--chart-4: oklch(0.929 0.002 294.774);
--chart-5: oklch(0.228 0.096 284.135);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.099 0.02 293.662);
--foreground: oklch(1 0 180);
--muted: oklch(0.162 0.01 293.703);
--muted-foreground: oklch(0.791 0.018 294.4);
--popover: oklch(0.099 0.02 293.662);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.099 0.02 293.662);
--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.23 0.092 284.885);
--primary-foreground: oklch(0.746 0.101 292.183);
--secondary: oklch(0.224 0.018 293.312);
--secondary-foreground: oklch(0.757 0.031 294.067);
--accent: oklch(0.291 0.041 292.084);
--accent-foreground: oklch(0.821 0.031 294.107);
--destructive: oklch(0.582 0.23 28.404);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.23 0.092 284.885);
--chart-1: oklch(0.23 0.092 284.885);
--chart-2: oklch(0.224 0.018 293.312);
--chart-3: oklch(0.291 0.041 292.084);
--chart-4: oklch(0.253 0.022 293.198);
--chart-5: oklch(0.228 0.096 284.135);
}