Next.js
App Router, RSC-safe provider placement, metadata, and route-level themes.
npx create-next-app@latest app && cd app && npx cooud-ui@latest init- Provider in app/layout.tsx
- tokens imported in globals.css
- focus restores on navigation
Frameworks
Each adapter keeps the same component contract while respecting the routing, hydration, and form behavior of the host framework.
Create the app with the framework's official tool, then run cooud-ui init inside it. The init command is framework-agnostic and acts on the current directory.
App Router, RSC-safe provider placement, metadata, and route-level themes.
npx create-next-app@latest app && cd app && npx cooud-ui@latest initSPA setup with a root provider, CSS token import, and fast registry adds.
npm create vite@latest app && cd app && npx cooud-ui@latest initFile routes, server functions, and persistent theme state across route transitions.
npm create @tanstack/start@latest app && cd app && npx cooud-ui@latest initFramework mode with route modules, loader-friendly forms, and progressive UX.
npx create-react-router@latest app && cd app && npx cooud-ui@latest initIsland components with shared CSS tokens and isolated interactive surfaces.
npm create astro@latest app && cd app && npx cooud-ui@latest initBlade or Inertia setup with Vite, shared token CSS, and server-rendered forms.
laravel new app && cd app && npx cooud-ui@latest initEvery framework path has the same three checkpoints: token CSS, provider placement, and registry component ownership.
// 1. Import tokens in the framework global CSS entry.@import "tailwindcss";@import "@cooud-ui/tokens/styles.css";// 2. Wrap the root UI tree in CooudUIProvider.<CooudUIProvider asRoot defaultThemeName="aurora" defaultModeName="dark">{children}</CooudUIProvider>// 3. Add components through the registry.pnpm dlx cooud-ui@latest add button card dialog form
Accessibility handoff
For Laravel, create the app first with the Laravel installer, then run Cooud UI inside the Vite/Inertia or Blade frontend workspace.
Start with laravel new app, choose the frontend stack, then run cooud-ui init inside the project. Server validation errors should map into FieldError or equivalent visible form feedback.