Bat is a shadcn/ui theme built around a red primary color (#802339) with blue accents (#233980). The light mode uses a neutral background (#ffffff). Dark mode keeps the red primary (#802339) on a red-tinted background (#100407).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #100407black |
| Foreground | #040102black | #ffffffwhite |
| Card | #ffffffwhite | #100407black |
| Card foreground | #040102black | #ffffffwhite |
| Popover | #ffffffwhite | #100407black |
| Popover foreground | #040102black | #ffffffwhite |
| Primary | #802339brown | #802339brown |
| Primary foreground | #f6dfe4mistyrose | #f6dfe4mistyrose |
| Secondary | #398023forestgreen | #398023forestgreen |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #d4e9cegainsboro | #1c3116black |
| Muted foreground | #5c6a58dimgray | #99a795darkseagreen |
| Accent | #233980midnightblue | #233980midnightblue |
| Accent foreground | #dfe4f6lavender | #dfe4f6lavender |
| Destructive | #992006darkred | #f85935tomato |
| Destructive foreground | #fddbd3antiquewhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #802339brown | #802339brown |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.78:1 | AAA |
| Text on card | 20.78:1 | AAA |
| Primary button | 7.47:1 | AAA |
| Secondary button | 4.89:1 | AA |
| Muted text | 4.46:1 | AA Large |
| Accent | 8.42:1 | AAA |
| Destructive | 6.34:1 | AA |
| Text on background | 20.10:1 | AAA |
| Text on card | 20.10:1 | AAA |
| Primary button | 7.47:1 | AAA |
| Secondary button | 4.89:1 | AA |
| Muted text | 5.52:1 | AA |
| Accent | 8.42:1 | AAA |
| Destructive | 6.45:1 | AA |
Paste this into your globals.css to use Bat in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.08 0.02 0.989);
--muted: oklch(0.911 0.043 138.382);
--muted-foreground: oklch(0.506 0.032 138.402);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.08 0.02 0.989);
--card: oklch(1 0 180);
--card-foreground: oklch(0.08 0.02 0.989);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.41 0.127 11.103);
--primary-foreground: oklch(0.924 0.026 1.749);
--secondary: oklch(0.535 0.146 139.38);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.371 0.123 267.303);
--accent-foreground: oklch(0.921 0.025 272.36);
--destructive: oklch(0.446 0.159 33.104);
--destructive-foreground: oklch(0.917 0.04 32.737);
--ring: oklch(0.41 0.127 11.103);
--chart-1: oklch(0.41 0.127 11.103);
--chart-2: oklch(0.535 0.146 139.38);
--chart-3: oklch(0.371 0.123 267.303);
--chart-4: oklch(0.57 0.156 139.404);
--chart-5: oklch(0.411 0.132 11.771);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.134 0.025 2.415);
--foreground: oklch(1 0 180);
--muted: oklch(0.288 0.054 138.711);
--muted-foreground: oklch(0.712 0.029 138.375);
--popover: oklch(0.134 0.025 2.415);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.134 0.025 2.415);
--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.41 0.127 11.103);
--primary-foreground: oklch(0.924 0.026 1.749);
--secondary: oklch(0.535 0.146 139.38);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.371 0.123 267.303);
--accent-foreground: oklch(0.921 0.025 272.36);
--destructive: oklch(0.671 0.201 34.097);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.41 0.127 11.103);
--chart-1: oklch(0.41 0.127 11.103);
--chart-2: oklch(0.535 0.146 139.38);
--chart-3: oklch(0.371 0.123 267.303);
--chart-4: oklch(0.57 0.156 139.404);
--chart-5: oklch(0.411 0.132 11.771);
}