Installation
Add UI Lab to any Tailwind v4 project in under one minute.
Who this is for
You will accomplish:
- Install UI Lab components in your project
- Import and render your first component
- Have full component library ready to use
Interactive Installation
The component below provides step-by-step guidance for your framework (Next.js or Vite):
Target framework
Installation method
Automated setup via CLI
The official installer configures Tailwind, injects the required @theme tokens, and optionally copies component source.
ui-lab-components and peer dependencies@theme defaults to your root stylesheetVerification
Start your dev server and render a test component:
No runtime errors and correct styling confirms successful installation.
Manual Installation
If you prefer manual setup or need more control, follow these steps:
Install Dependencies
Import Styles
Add component styles to your application root:
Import and Use
Start using components immediately:
Troubleshooting
Components don't render or styles look wrong
Check Tailwind CSS v4 is installed:
You should see v4.x.x. If not, upgrade:
PostCSS error during build
Ensure postcss.config.mjs exists and includes @tailwindcss/postcss:
Then restart your dev server:
Styles still not applying
-
Clear your node_modules cache:
-
Check that component styles are imported in your root file—without this, styles won't load
Still having issues?
Check the Component Gallery to verify expected appearance. If something looks different, file an issue on GitHub.
Next Steps
- Browse the Component Gallery to explore all available components
- Read Getting Started for common patterns
- Learn Theming to customize colors and tokens