Contributing
The repository is a pnpm workspace with the library, this site and end-to-end tests.
pnpm install
pnpm --filter datui build --watch # library
pnpm docs:dev # http://localhost:3100
pnpm check # lint, typecheck, unit tests, buildAdding a component
- Create
packages/datui/src/components/Name/withName.tsx,Name.test.tsxandindex.ts, and export it fromsrc/index.ts. - Use tokens through Tailwind utilities; never hard-code colors or sizes.
- Test rendering, variants, interaction, keyboard and run the axe helper.
- Add
apps/docs/content/name/meta.tsplus one.tsxfile per example. - Update its row in
docs/component-inventory.md.
See docs/architecture.md and docs/contributing.md in the repository for the full conventions.