Skip to main content Skip to docs navigation

Introduction

Technical overview of Bravo's architecture and Bootstrap enhancement approach.

What is Bravo

Bravo is a curated set of enhancements for Bootstrap 5.3 that maintains full compatibility while adding commonly-needed features. It works by:

  1. SCSS layer โ€” Imports Bootstrap's source, then applies enhancements and patches
  2. JavaScript extensions โ€” Extends Bootstrap's components with additional functionality
  3. Opt-in architecture โ€” Use only what you need, from SCSS-only to full JS enhancements

Technical architecture

SCSS structure

Bravo's main SCSS file (bravo.scss) orchestrates a specific import order:

  • Loads Bravo's custom functions and color system first
  • Imports Bootstrap's core files
  • Applies patches and overrides
  • Generates extended utilities

This eliminates import order issues while maintaining Bootstrap compatibility.

JavaScript approach

  • Component extensions: Bravo's components extend Bootstrap's base classes
  • DynamicObserver: MutationObserver-based auto-initialization for dynamic content
  • Tree-shakeable: Import individual components or the full bundle

Key differences from Bootstrap

  • Color system: 13 shades per color (vs 9), all available as CSS variables
  • Typography: Larger scale, lighter weights, responsive sizing via RFS
  • Grid: Optional .column-* naming (requires separate import)
  • Components: Enhanced with loading states, interactive modes, programmatic APIs

Explore Bravo

Design tokens

Advanced color system and refined typography

Explore tokens
Components

Enhanced Bootstrap components with new powers

View components
JavaScript

Auto-initialization and programmatic APIs

See features
Migration

Drop-in replacement for Bootstrap projects

Start migrating