Installation
Install Cubix in a new or existing React project. Prefer the CLI template for Next.js and Vite, or follow a framework guide for step-by-step setup.
Quick start
Scaffold and configure in one command:
pnpm dlx cubix-ui@latest init -t nextRequirements
- React 18+ (React 19 recommended)
- Tailwind CSS v4
- TypeScript (project default)
- A path alias for
@/*
Cubix does not replace your framework scaffold. Create the app with the framework tooling, then cubix-ui init writes tokens, lib/utils.ts, and cubix.json. Default base is Base UI - pass --base aria or --base radix when needed. Full flags are on the CLI page.
Choose your framework
Each guide covers New project and Existing project paths where they apply.
- Next.jsInstall and configure Cubix for Next.js App Router projects.
- ViteInstall and configure Cubix for Vite + React.
- TanStack StartInstall and configure Cubix for TanStack Start.
- LaravelInstall Cubix in a Laravel app with a React frontend (Inertia).
- React RouterInstall and configure Cubix for React Router (including Remix-style apps).
- AstroInstall Cubix in Astro with React islands.
- ManualWire Cubix by hand in any React 18+ host with Tailwind CSS v4.