System requirements
Before you begin, ensure your environment meets these requirements:- Node.js 18.17 or later
- macOS, Windows (including WSL), or Linux
Quick setup
The fastest path is the automatic setup tool, which scaffolds everything in one command.Create a new project
Run the following command to create a new Next.js app. The
--yes flag accepts all recommended defaults: TypeScript, Tailwind CSS, ESLint, App Router, Turbopack, and the @/* import alias.Interactive setup
If you prefer to configure each option manually, run the command without--yes:
Manual installation
If you need to add Next.js to an existing project, follow these steps.TypeScript setup
RareUI components are written in TypeScript. We strongly recommend using TypeScript for the best experience.Enable TypeScript
If you used
create-next-app with TypeScript enabled (the default), you already have a tsconfig.json. If not, rename any .js file to .tsx and run next dev — Next.js automatically creates the tsconfig.json.Next steps
- Install Tailwind CSS — verify your Tailwind setup
- Add utilities — install
framer-motionand thecn()helper - CLI — use the CLI to add components