React Installation
Shadcn/ui (Recommended)
How to install dependencies and structure your app.
Note: We have the exact same installation process as shadcn/ui.
CLI Usage
Initialize your project with the CLI:
Loading...
Loading...
🛠️Prerequisites
- Node.js 18+ and npm / yarn / pnpm
- A React/Next.js project (or create one:
npx create-next-app@latest) - Tailwind CSS installed (We’ll help if not set up yet — see the Tailwind guide)
🚀 Which Installation Method?
- Already using shadcn/ui? → Use Option 1
- Starting fresh / want a custom registry? → Use Option 2
- Just want to test a component quickly? → Jump to Quick Test
✅ Option 1 — Use shadcn/ui (Recommended)
If you’re already using shadcn/ui, you’re done — Sera UI uses the same setup.
New to shadcn/ui? Run:
Loading...
Then add a Sera UI component:
Loading...
🚀 Option 2 — Use SeraUI CLI (Alternative)
Use the CLI to scaffold and manage components from the Sera UI registry.
1️⃣ Initialize your project
Loading...
Example output:
Loading...
📁 What got created:
lib/utils.ts— Helper utilities (e.g.,cn()for merging classes)components/— Where your UI components livetailwind.config.js— Updated with Sera UI theme tokens
2️⃣ Browse available components
Loading...
3️⃣ Add a component
Loading...
Output:
Loading...
⚙️ Advanced CLI Options
Initialize with a custom registry
Loading...
Add a single component from a custom registry
Loading...
Set a default registry URL
Loading...
🎨 Quick Test
Add this to any page:
Loading...
Run your dev server — you should see a styled button.
✅ What’s Next?
- Browse components:
npx seraui@latest show - Add more:
npx seraui@latest add tabs - Customize theme: edit
tailwind.config.jsto match your brand
Still stuck?
- Open an issue: GitHub