Contributing
How the Xerobi monorepo is organised and how changes land.
Set up
Node 22 and Bun 1.4. The repo is a Turborepo with packages/tokens, packages/ui, packages/registry, packages/cli, skills/xerobi-design, apps/web and apps/playground.
bun install
bun run build
bun run devChange a token
Edit the source in packages/tokens/src/*.json and run the build. It regenerates CSS, Tailwind, TypeScript, React Native and Dart outputs. Commit the regenerated Flutter package.
Add or change a component
Components live in packages/ui/src/components/<name> with an index.ts. Add a category and description in packages/registry/src/meta.mjs (the registry build fails without it), and a demo file in apps/web/src/demos/<name>.tsx. Demo functions are the examples shown on the docs page and stored in the registry.
Checks before a pull request
bun run build
bun run typecheck
bun run test
bun run lint
bun run audit:designThe design audit must report zero errors. Intentional exceptions go in packages/ui/scripts/audit-allowlist.json with a reason.
Releasing
Publish a GitHub release tagged tokens-v<version>, ui-v<version>, ui-registry-v<version> or ui-cli-v<version>. The workflow publishes with npm trusted publishing.
Naming and versioning
Folders are kebab-case, exports PascalCase, slots data-slot="component-part". Packages use semver: removing or renaming a token, variant or prop is a major change.