Installation
Choose how to use Bloom UI in your React or Next.js project: copy components directly using our official CLI, or install the compiled @bloomui/react package via NPM.
CLI Installation
CLI — Full Source Code Ownership
Download raw React component code directly into your repository.
1. Initialize Bloom UI
Run the initialization command in your project root to set up design system tokens and helper utilities.
2. Add Components
Add any of our 95 components directly to your project codebase.
3. Configure AI Assistant Rules (Optional)
Generate dynamic context files for AI Coding Tools (Antigravity, Cursor, Windsurf, Copilot, or llms.txt). The generated rules list all components, exact props, and path imports customized to your project.
4. Update Components
Keep your components and dynamic markdown docs up-to-date with the latest versions from our registry.
5. Health Check / Diagnostics
Validate imports, files, configurations, and peer dependencies in your workspace.
NPM Package
NPM Package — Standard Dependency
Install pre-compiled components via NPM package management.
1. Initialize Theme & CSS Config
Run the CLI in your project root to automatically configure Tailwind CSS v4 variables, keyframes, utilities, and the @source directive for the pre-compiled package — no manual setup required.
2. Install Dependency
Install the pre-compiled library as a dependency in your project.
3. Import Components
Import any component directly from @bloomui-react/components:
What gets created in your project
Standardized files and utilities configured during initialization.
lib/utils.tsProvides the cn() helper for merging Tailwind classes cleanly using clsx and tailwind-merge.
lib/design-system.tsDefines design radius scales, sizing scales, and neutral theme color tokens.
lib/docs/Stores full markdown documentation files for each installed component to give detailed context for AI Coding Assistants.
bloom.jsonStores project paths so the CLI knows where to copy new components automatically.