Balalaika is a shadcn/ui theme built around a vivid light red primary color (#fbaf98) with vivid light cyan accents (#98e4fb). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid light red primary (#fbaf98) on a red-tinted background (#0e0807).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #0e0807black |
| Foreground | #100704black | #ffffffwhite |
| Card | #fcfcfcsnow | #110b09black |
| Card foreground | #0c0503black | #ffffffwhite |
| Popover | #ffffffwhite | #0e0807black |
| Popover foreground | #100704black | #ffffffwhite |
| Primary | #fbaf98lightsalmon | #fbaf98lightsalmon |
| Primary foreground | #5d1904maroon | #5d1904maroon |
| Secondary | #98e4fblightskyblue | #98e4fblightskyblue |
| Secondary foreground | #04485ddarkslategray | #04485ddarkslategray |
| Muted | #e4eef1lavender | #0e181bblack |
| Muted foreground | #505e62dimgray | #9dabafdarkgray |
| Accent | #98e4fblightskyblue | #98e4fblightskyblue |
| Accent foreground | #04485ddarkslategray | #04485ddarkslategray |
| Destructive | #982910brown | #ea5534tomato |
| Destructive foreground | #fce4dfmistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #fbaf98lightsalmon | #fbaf98lightsalmon |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.92:1 | AAA |
| Text on card | 19.78:1 | AAA |
| Primary button | 7.27:1 | AAA |
| Secondary button | 7.07:1 | AAA |
| Muted text | 5.70:1 | AA |
| Accent | 7.07:1 | AAA |
| Destructive | 6.49:1 | AA |
| Text on background | 19.85:1 | AAA |
| Text on card | 19.56:1 | AAA |
| Primary button | 7.27:1 | AAA |
| Secondary button | 7.07:1 | AAA |
| Muted text | 7.63:1 | AAA |
| Accent | 7.07:1 | AAA |
| Destructive | 3.59:1 | AA Large |
Paste this into your globals.css to use Balalaika in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.142 0.018 43.008);
--muted: oklch(0.942 0.011 217.812);
--muted-foreground: oklch(0.472 0.018 218.052);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.142 0.018 43.008);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.128 0.016 44.66);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.821 0.095 37.639);
--primary-foreground: oklch(0.323 0.104 36.508);
--secondary: oklch(0.877 0.081 218.997);
--secondary-foreground: oklch(0.375 0.07 225.635);
--accent: oklch(0.877 0.081 218.997);
--accent-foreground: oklch(0.375 0.07 225.635);
--destructive: oklch(0.454 0.151 33.697);
--destructive-foreground: oklch(0.937 0.027 32.691);
--ring: oklch(0.821 0.095 37.639);
--chart-1: oklch(0.821 0.095 37.639);
--chart-2: oklch(0.877 0.081 218.997);
--chart-3: oklch(0.877 0.081 218.997);
--chart-4: oklch(0.893 0.07 218.679);
--chart-5: oklch(0.821 0.098 37.645);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.143 0.01 40.295);
--foreground: oklch(1 0 180);
--muted: oklch(0.2 0.015 218.595);
--muted-foreground: oklch(0.73 0.017 217.897);
--popover: oklch(0.143 0.01 40.295);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.155 0.012 38.183);
--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.821 0.095 37.639);
--primary-foreground: oklch(0.323 0.104 36.508);
--secondary: oklch(0.877 0.081 218.997);
--secondary-foreground: oklch(0.375 0.07 225.635);
--accent: oklch(0.877 0.081 218.997);
--accent-foreground: oklch(0.375 0.07 225.635);
--destructive: oklch(0.645 0.19 34.117);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.821 0.095 37.639);
--chart-1: oklch(0.821 0.095 37.639);
--chart-2: oklch(0.877 0.081 218.997);
--chart-3: oklch(0.877 0.081 218.997);
--chart-4: oklch(0.893 0.07 218.679);
--chart-5: oklch(0.821 0.098 37.645);
}