datui
Color scheme

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, build

Adding a component

  • Create packages/datui/src/components/Name/ with Name.tsx, Name.test.tsx and index.ts, and export it from src/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.ts plus one .tsx file 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.