Installation
Get started with Bloom UI in less than 2 minutes. Choose between the shadcn-style CLI workflow (where you own the component code) or the standard pub.dev package.
Option 1: CLI Workflow (Recommended)
The Bloom CLI manages design tokens, installs individual primitives directly into your lib/bloom_ui/ folder, and ensures zero runtime dependencies.
1. Activate the Bloom CLI globally:
dart pub global activate bloom_cli2. Initialize Bloom UI in your Flutter project:
Run this command in the root of your Flutter project. It will prompt you for your preferred style theme (Nova, Vega, Maia, etc.) and write the base token system to lib/bloom_ui/theme/.
bloom ui init3. Add components as needed:
# Add individual componentsbloom ui add button card dialog chart# Or add all 60+ components at oncebloom ui add allOption 2: Pub.dev Package
If you prefer managing Bloom UI as a standard pub.dev package:
flutter pub add bloom_uiSetup Theme & Extensions
Wrap your root MaterialApp with the BloomTheme extension in your lib/main.dart:
bloom.config.json
The bloom.config.json file at the root of your project defines your target directory, style preset, and custom aliases: