Resources
Contributing
How to contribute to Stance: development setup, adding a component with tests and docs, the checks every pull request passes, and changesets.
Development setup
git clone https://github.com/BindsHQ/stance.git
cd stance
npm install
npm run build
npm test
npm run dev:docs # http://localhost:3100Adding a component
- Check that the need appears in at least one product and isn’t covered by composing existing parts.
- Create
packages/react/src/components/<name>/with the component, CSS, tests andindex.ts. - Use only
--st-*tokens in CSS, and test keyboard behaviour and axe in all three themes. - Add
apps/docs/content/components/<name>.tsxwith examples and the full API. - Run
npx changesetto describe the change for the release notes.
Read CONTRIBUTING.md for the full guide and code of conduct.