Loading...
Loading...
Build UI with Cubix, the copy-paste React component registry. Use when the project has a cubix.json, imports from components/cubix, or the user asks to add, compose, theme, or publish Cubix components, blocks, or registry items with the cubix-ui CLI.
npx skill4agent add aminebdali1992/cubix-design-system cubixcubix-uihttps://cubixflow.ir/rcubix-ui searchaddnpx cubix-ui@latest info --jsoncubix.json| Field | Use it for |
|---|---|
| Primitive backend: |
| Import path for components, usually |
| Import path for |
| The global stylesheet that holds the design tokens. |
| When |
| Icon package to import from, usually |
cubix.json# Existing app: configure tokens, cubix.json, and lib/utils.ts
npx cubix-ui@latest init
# New app: scaffold a framework, then configure Cubix
npx cubix-ui@latest init -t next # also: vite, start, react-router, astro
npx cubix-ui@latest init -t next --base radix
# Discover before you build
npx cubix-ui@latest search -q dialog
npx cubix-ui@latest view dialog
# Add components (dependencies and registry dependencies are resolved)
npx cubix-ui@latest add button dialog select
npx cubix-ui@latest add button --base aria
npx cubix-ui@latest add button --dry-run
npx cubix-ui@latest add button --overwritepnpm dlxyarn dlxbunx --bunnpx--basecubix.json--dry-run--overwriteuiimport { Button } from "@/components/cubix/button"
import { Field, FieldLabel, FieldDescription } from "@/components/cubix/field"
import { Input } from "@/components/cubix/input"rendernativeButton={false}<button>import Link from "next/link"
<Button nativeButton={false} render={<Link href="/docs" />}>
Read the docs
</Button>asChildrenderdata-slotdata-slot="card-header"classNamecn()utilscvafocus-visiblearia-invaliddisabledtailwind.css| Purpose | Tokens |
|---|---|
| Surfaces | |
| Text | |
| Actions | |
| Lines and focus | |
| Charts and sidebar | |
bg-zinc-900text-[#333]ps-*pe-*ms-*me-*start-*end-*text-startcubix-ui searchattachmentbranchregistry.jsonnpx cubix-ui@latest build ./registry.json -o ./public/rnametyperegistry:uiregistry:blockfilesdependenciesregistryDependencieshttps://cubixflow.ir/schema/registry.jsonhttps://cubixflow.ir/schema/registry-item.jsonhttps://cubixflow.ir/api/mcp.cursor/mcp.json~/.cursor/mcp.json{
"mcpServers": {
"cubix": {
"url": "https://cubixflow.ir/api/mcp"
}
}
}codex mcp add cubix --url https://cubixflow.ir/api/mcp[mcp_servers.cubix]url~/.codex/config.tomlclaude mcp add --transport http cubix https://cubixflow.ir/api/mcplist_componentssearch_componentsget_componentget_component_demoget_install_commandcubix-ui addget_install_command