Bitter is a shadcn/ui theme built around a green primary color (#66d684) with orange accents (#d68466). The light mode uses a neutral background (#fbfefc). Dark mode keeps the green primary (#66d684) on a green-tinted background (#041007).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfefcwhite | #041007black |
| Foreground | #020d05black | #fcfdfcwhite |
| Card | #fbfefcwhite | #041007black |
| Card foreground | #020d05black | #fcfdfcwhite |
| Popover | #fbfefcwhite | #041007black |
| Popover foreground | #020d05black | #fcfdfcwhite |
| Primary | #66d684mediumaquamarine | #66d684mediumaquamarine |
| Primary foreground | #020804black | #020804black |
| Secondary | #8466d6mediumpurple | #8466d6mediumpurple |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #d2cae8thistle | #1f1735midnightblue |
| Muted foreground | #555062dimgray | #a29dafdarkgray |
| Accent | #d68466darksalmon | #d68466darksalmon |
| Accent foreground | #080402black | #080402black |
| Destructive | #6f1201maroon | #e32402orangered |
| Destructive foreground | #feb2a4lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #66d684mediumaquamarine | #66d684mediumaquamarine |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.44:1 | AAA |
| Text on card | 19.44:1 | AAA |
| Primary button | 11.11:1 | AAA |
| Secondary button | 4.33:1 | AA Large |
| Muted text | 4.91:1 | AA |
| Accent | 7.14:1 | AAA |
| Destructive | 6.87:1 | AA |
| Text on background | 19.01:1 | AAA |
| Text on card | 19.01:1 | AAA |
| Primary button | 11.11:1 | AAA |
| Secondary button | 4.33:1 | AA Large |
| Muted text | 6.45:1 | AA |
| Accent | 7.14:1 | AAA |
| Destructive | 4.63:1 | AA |
Paste this into your globals.css to use Bitter in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.004 154.46);
--foreground: oklch(0.144 0.029 153.418);
--muted: oklch(0.854 0.042 297.707);
--muted-foreground: oklch(0.444 0.029 297.395);
--popover: oklch(0.994 0.004 154.46);
--popover-foreground: oklch(0.144 0.029 153.418);
--card: oklch(0.994 0.004 154.46);
--card-foreground: oklch(0.144 0.029 153.418);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.791 0.156 150.171);
--primary-foreground: oklch(0.123 0.02 153.909);
--secondary: oklch(0.593 0.166 292.935);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.693 0.111 40.664);
--accent-foreground: oklch(0.112 0.014 49.275);
--destructive: oklch(0.351 0.129 32.627);
--destructive-foreground: oklch(0.832 0.092 30.266);
--ring: oklch(0.791 0.156 150.171);
--chart-1: oklch(0.791 0.156 150.171);
--chart-2: oklch(0.593 0.166 292.935);
--chart-3: oklch(0.693 0.111 40.664);
--chart-4: oklch(0.624 0.153 293.8);
--chart-5: oklch(0.797 0.163 149.959);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.158 0.026 152.926);
--foreground: oklch(0.993 0.003 154.481);
--muted: oklch(0.233 0.056 293.856);
--muted-foreground: oklch(0.705 0.026 297.915);
--popover: oklch(0.158 0.026 152.926);
--popover-foreground: oklch(0.993 0.003 154.481);
--card: oklch(0.158 0.026 152.926);
--card-foreground: oklch(0.993 0.003 154.481);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.791 0.156 150.171);
--primary-foreground: oklch(0.123 0.02 153.909);
--secondary: oklch(0.593 0.166 292.935);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.693 0.111 40.664);
--accent-foreground: oklch(0.112 0.014 49.275);
--destructive: oklch(0.587 0.225 31.4);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.791 0.156 150.171);
--chart-1: oklch(0.791 0.156 150.171);
--chart-2: oklch(0.593 0.166 292.935);
--chart-3: oklch(0.693 0.111 40.664);
--chart-4: oklch(0.624 0.153 293.8);
--chart-5: oklch(0.797 0.163 149.959);
}