Installation
Layout UI components are installed via the shadcn registry CLI. No package to npm-install, no hidden peer dependencies beyond what each component explicitly declares.
Registry setup
Add the Layout registry to your project's components.json so the shadcn CLI resolves @layout/* component references:
{
"registries": {
"@layout": "https://layout.design/r/{name}.json"
}
}Installing components
Once the registry is configured, install any component with the shadcn add command:
npx shadcn add @layout/buttonYou can also use the direct registry URL form without configuring components.json first:
npx shadcn add https://layout.design/r/button.jsonInstall the theme alongside your first component to get the full token contract, including success, warning, shadow, and motion tokens that the shadcn default theme does not cover:
npx shadcn add @layout/theme-layoutLayout CLI (coming soon)
The Layout CLI (@layoutdesign/context) will add components, apply layout.md kits, and connect the MCP server in a single command:
# Coming soon, not yet available
npx @layoutdesign/context add buttonFramework guides
Choose your framework for a step-by-step setup guide, from project creation through installing your first Layout UI component.
Next.js
App Router with Tailwind v4 and TypeScript
Vite
React + Vite with Tailwind v4 and TypeScript
Laravel
Inertia.js + React stack with Tailwind v4
React Router
React Router v7 with Vite and Tailwind v4
Astro
Astro with React integration and Tailwind v4
TanStack Start
TanStack Start with full-stack React and Tailwind v4