Contributing

March 10, 2026 ยท View on GitHub

Requirements

Getting Started

pnpm install
pnpm storybook   # starts Storybook on http://localhost:6060

Commit Convention

Follow the category: message format:

CategoryUse for
featNew features or components
fixBug fixes (reference an issue when possible)
refactorCode changes that are neither a fix nor a feature
docsDocumentation updates
buildBuild config or dependency changes
testAdding or updating tests
ciCI/CD configuration
choreEverything else (formatting, tooling, etc.)

See the Conventional Commits spec for details.

Steps to PR

  1. Branch off main using the convention type/scope โ€” e.g. fix/select-overflow, feat/date-range-picker, docs/menu-typo.

  2. Develop your changes. Verify as you go:

pnpm build          # check the build
pnpm test           # run unit tests (Vitest)
pnpm fix            # lint + format
  1. Create a changeset to describe your changes for the changelog:
pnpm changeset

Learn more about Changesets.

For trivial changes (CI config, formatting, etc.) use pnpm changeset add --empty.

If your changeset includes JSX snippets, disable live preview: ```jsx live=false

  1. Push and open a Pull Request against main.

Tests

All bug fixes and new features should include tests. The project uses Vitest with React Testing Library and Chromatic for visual regression.

pnpm test             # run all tests
pnpm test -- Button   # run tests matching "Button"
pnpm test -u          # update snapshots
pnpm chromatic        # visual regression (requires token)