Skip to content

Guides

Contributing

Registry layout, preview requirements, and the checks to run before opening a pull request.

DavinciUI is a monorepo: components live in packages/ui, the site and registry live in apps/web, and every component has a preview and a docs page.

Repository map#

packages/uiComponent source and shared styles.
apps/web/components/docsPreviews and docs pages for each component.
apps/web/registryComponent metadata used by the docs and the registry generator.
apps/web/public/rGenerated registry JSON served to the shadcn CLI.

Before opening a pull request#

Add the component

Place the source in packages/ui/src/components and export it from the package entry point.

Register it

Add metadata to apps/web/registry/index.ts and regenerate the registry JSON.

Add a preview

Create the docs preview and page so the component appears in the gallery.

Run the checks
pnpm validate:docs
pnpm validate:registry
pnpm --filter web typecheck
Preview quality

A preview should show the component at rest and on interaction. Avoid placeholder gradients when the component has a real default.

Commit style#

Use conventional commits (feat:, fix:, docs:) and keep the diff focused on one change.

© DavinciUI