Installation
Get started with FivUI in minutes. Follow our step-by-step guide to set up FivUI in your React project and start building beautiful interfaces.
Prerequisites
Before installing FivUI, ensure your project meets these requirements:
Install FivUI CLI
Start by installing the FivUI CLI package in your project. This will give you access to all FivUI commands and utilities.
npm i @fivexlabs/fivui@latest
Note: You can also use yarn
or pnpm
as your package manager.
Initialize Your Project
Run the initialization command to set up FivUI in your project. This interactive prompt will guide you through the configuration process.
npx fivui init
What happens during initialization?
Monorepo Users: The CLI will ask specific questions about your monorepo structure to ensure proper component installation paths.
Start Adding Components
Once initialized, you can start adding FivUI components to your project. Each component is installed with its dependencies automatically.
Add your first component
npx fivui add button
What gets installed?
src/components/ui/
src/lib/
Smart Dependencies: FivUI only installs the exact dependencies each component needs, keeping your bundle size optimized.
Alternative: Manual Usage
Prefer more control? You don't need our CLI at all! FivUI components can be used manually by copying code directly from our component documentation pages.
Manual Setup Requirements
How Manual Usage Works
CLI vs Manual: While manual usage gives you complete control, our CLI streamlines the process with automatic dependency management, proper file organization, and seamless integration. Choose the approach that fits your workflow best.
CSS Configuration Options
Unlike other libraries that forcefully overwrite your styles, FivUI respects your existing setup. During npx fivui init
, you'll be asked how to handle your globals.css
file.
Choose Your Approach
Replace your existing globals.css
with FivUI's optimized styles. This provides the best experience with all components working perfectly out of the box.
Add FivUI styles to your existing globals.css
. You'll need to manually ensure compatibility with your existing styles and match our theming structure.
Skip CSS modifications entirely and manage everything manually. You'll need to set up all theming variables and styles yourself following our Theming documentation.
Need Theming Details?If you choose Option 2 or 3, refer to our Theming section for complete details on setting up CSS variables, color schemes, and proper global styles configuration.
Framework Compatibility
FivUI works seamlessly with popular React frameworks

Next.js
Full support including App Router and Pages Router

Vite
Perfect integration with Vite's fast development experience

Remix
Works great with Remix's server-side rendering

Gatsby
Compatible with Gatsby's static site generation

Create React App
Classic CRA setup works out of the box
Other React Frameworks
Any React-compatible framework should work
Tailwind CSS Compatibility
Why Tailwind 4.x?
Tailwind CSS 4.x offers improved performance, better developer experience, and enhanced compatibility with modern build tools. While 3.x works perfectly, we recommend upgrading for the best experience.