Balaclava is a shadcn/ui theme built around a vivid purple primary color (#e85ff2) with vivid green accents (#68f25f). The light mode uses a neutral background (#fdf7fd). Dark mode keeps the vivid purple primary (#e85ff2) on a neutral background (#040104).
| Token | Light | Dark |
|---|---|---|
| Background | #fdf7fdsnow | #040104black |
| Foreground | #140515black | #f9f5faghostwhite |
| Card | #fbf3fcghostwhite | #070208black |
| Card foreground | #100411black | #fbf8fcghostwhite |
| Popover | #fdf7fdsnow | #040104black |
| Popover foreground | #140515black | #f9f5faghostwhite |
| Primary | #e85ff2orchid | #e85ff2orchid |
| Primary foreground | #1b021cblack | #1b021cblack |
| Secondary | #68f25flightgreen | #68f25flightgreen |
| Secondary foreground | #041c02black | #041c02black |
| Muted | #e3ede3gainsboro | #121c12black |
| Muted foreground | #515e50darkolivegreen | #a2afa1darkgray |
| Accent | #68f25flightgreen | #68f25flightgreen |
| Accent foreground | #041c02black | #041c02black |
| Destructive | #761405maroon | #f52e0forangered |
| Destructive foreground | #fcbbb1lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #e85ff2orchid | #e85ff2orchid |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.69:1 | AAA |
| Text on card | 18.42:1 | AAA |
| Primary button | 6.84:1 | AA |
| Secondary button | 12.33:1 | AAA |
| Muted text | 5.71:1 | AA |
| Accent | 12.33:1 | AAA |
| Destructive | 6.90:1 | AA |
| Text on background | 19.24:1 | AAA |
| Text on card | 19.47:1 | AAA |
| Primary button | 6.84:1 | AA |
| Secondary button | 12.33:1 | AAA |
| Muted text | 7.63:1 | AAA |
| Accent | 12.33:1 | AAA |
| Destructive | 3.97:1 | AA Large |
Paste this into your globals.css to use Balaclava in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.982 0.01 323.69);
--foreground: oklch(0.15 0.042 325.02);
--muted: oklch(0.937 0.018 143.537);
--muted-foreground: oklch(0.465 0.027 143.321);
--popover: oklch(0.982 0.01 323.69);
--popover-foreground: oklch(0.15 0.042 325.02);
--card: oklch(0.973 0.015 323.717);
--card-foreground: oklch(0.137 0.037 325.123);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.712 0.239 324.996);
--primary-foreground: oklch(0.162 0.065 325.421);
--secondary: oklch(0.855 0.223 142.248);
--secondary-foreground: oklch(0.201 0.059 141.464);
--accent: oklch(0.855 0.223 142.248);
--accent-foreground: oklch(0.201 0.059 141.464);
--destructive: oklch(0.367 0.134 31.728);
--destructive-foreground: oklch(0.848 0.077 28.672);
--ring: oklch(0.712 0.239 324.996);
--chart-1: oklch(0.712 0.239 324.996);
--chart-2: oklch(0.855 0.223 142.248);
--chart-3: oklch(0.855 0.223 142.248);
--chart-4: oklch(0.864 0.208 142.339);
--chart-5: oklch(0.714 0.245 325.014);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.086 0.018 325.174);
--foreground: oklch(0.975 0.008 323.678);
--muted: oklch(0.214 0.025 143.003);
--muted-foreground: oklch(0.741 0.024 143.461);
--popover: oklch(0.086 0.018 325.174);
--popover-foreground: oklch(0.975 0.008 323.678);
--card: oklch(0.109 0.022 325.174);
--card-foreground: oklch(0.983 0.005 323.664);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.712 0.239 324.996);
--primary-foreground: oklch(0.162 0.065 325.421);
--secondary: oklch(0.855 0.223 142.248);
--secondary-foreground: oklch(0.201 0.059 141.464);
--accent: oklch(0.855 0.223 142.248);
--accent-foreground: oklch(0.201 0.059 141.464);
--destructive: oklch(0.626 0.235 31.307);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.712 0.239 324.996);
--chart-1: oklch(0.712 0.239 324.996);
--chart-2: oklch(0.855 0.223 142.248);
--chart-3: oklch(0.855 0.223 142.248);
--chart-4: oklch(0.864 0.208 142.339);
--chart-5: oklch(0.714 0.245 325.014);
}