create-primitiv-ui
v0.1.18
Published
Set up Primitiv UI in an existing Vite or Next.js project. Use with: pnpm create primitiv-ui
Maintainers
Readme
create-primitiv-ui
Set up Primitiv UI in an existing Vite or Next.js project with a single command.
Usage
# pnpm
pnpm create primitiv-ui
# npm
npm create primitiv-ui@latest
# yarn / bun
yarn create primitiv-ui
bun create primitiv-uiThis runs primitiv init via npx primitiv-ui@latest init — no local
install needed. It walks you through choosing a stylesheet format, brand
colour, and styles path, then writes primitiv.json and generates the
shared token layer.
Any arguments you pass are forwarded to primitiv init:
pnpm create primitiv-ui --yes # accept all defaults
pnpm create primitiv-ui --format scss # choose SCSS up frontOnce set up, add components with:
pnpm dlx primitiv-ui@latest add button
# or: npx primitiv-ui@latest add buttonNeeds a real Node environment. The CLI runs a native binary, so this won't work in StackBlitz / WebContainer. Use local, a Codespace, or Docker.
Part of the Primitiv design system.
