polyform-ui
v0.2.1
Published
Add Polyform — a material-first, shadcn-compatible UI component registry — to your project.
Maintainers
Readme
polyform-ui
CLI to add Polyform — a material-first, shadcn-compatible UI
component registry — to any React + Tailwind project. It's a thin wrapper over the
shadcn CLI that points at the Polyform registry and resolves the full dependency
graph for you.
Usage
# add components (npm / pnpm / yarn / bun all work)
npx polyform-ui@latest add button card stat-card
bunx --bun polyform-ui@latest add data-table
# browse what's available
npx polyform-ui@latest list
# initialize shadcn in a fresh project (proxies `shadcn init`)
npx polyform-ui@latest initpolyform add <name> expands to shadcn add <registry>/r/<name>.json, so the shadcn
resolver installs the component, its sibling components, the shared cn() helper, and
the Polyform design-token / material CSS in one step.
Configuration
POLYFORM_REGISTRY_URL— point at a different registry (self-hosted or local dev), e.g.POLYFORM_REGISTRY_URL=http://localhost:3000 polyform add button.
Publishing (maintainers)
- Production registry:
https://polyform.raprast.asia(set as theREGISTRYdefault inindex.mjs; override per-run withPOLYFORM_REGISTRY_URL). It serves/r/<name>.jsonitems built by../polyform-web/scripts/build-registry.mjs. npm publish(the npm namepolyformis taken, so this package ispolyform-ui; the installed binary is stillpolyform).
