Publishing
Dumb UI ships as a shadcn registry: static JSON served next to the docs. Deploying the site publishes the library.
scripts/build-registry.ts generates registry.json from the component docs, then shadcn build writes one JSON file per item to public/r. The dumb-ui item carries the style tokens and material layer as CSS that the CLI merges into the consumer’s stylesheet.
The site deploys to Netlify from main. netlify.toml runs the build (examples index, registry, Next.js) and serves /r/* with CORS and short caching so new releases reach the CLI quickly. Every docs page is statically generated.
- The registry is always the latest release. Version tags in git (
v0.2.0) mark releases, and the changelog lists what changed per component. - Breaking a token name or a component prop is a minor bump while the version is
0.x, a major bump after1.0. - Because users own their copies, updating is opt-in: re-run
shadcn addand review the diff.