Demonstrates runtime CSS variable theming without Sass compilation. Switch themes to see how Bootstrap components adapt instantly.
Each theme overrides --bs-primary, --bs-secondary, font family, and border radius via CSS variables.
Buttons automatically use the overridden CSS variables.
This card uses Bootstrap's default styling with the current theme's border radius.
ActionUses component-level CSS variables to create a gradient from primary to secondary colors.
ActionFocus states use the theme's primary color.
Alert variants with theme-aware subtle backgrounds.
Primary Secondary Success Warning Info
Progress bar colors adapt to theme colors.
| Variable | Default | Ocean | Sunset | Forest |
|---|---|---|---|---|
--bs-primary |
#0d6efd | #0077b6 | #e76f51 | #2d6a4f |
--bs-secondary |
#6c757d | #00b4d8 | #f4a261 | #40916c |
--bs-border-radius |
0.375rem | 0.5rem | 0 | 1rem |
--bs-body-font-family |
system-ui | Segoe UI | Georgia | Trebuchet MS |