Contributing Guide
How to make focused, useful contributions to Honest UI.
The best contributions are focused, easy to review, and clear about the user problem they solve.
What you can contribute
You can help by:
- Fixing bugs.
- Improving docs.
- Adding new UI components.
- Adding examples.
- Improving accessibility.
Before you start
Open an issue before starting a large change so maintainers can confirm the problem and scope. Small fixes, documentation edits, and example improvements can usually go straight to a pull request.
Good first changes include:
- Fixing unclear docs.
- Adding a missing example state.
- Improving labels or keyboard behavior.
- Cleaning up a component prop or class name.
- Fixing a bug with a small reproduction.
Quick steps
- Fork the repo and clone it.
- Create a new branch.
- Make a small, focused change.
- Run the checks that apply to the changed files.
- Open a pull request with a clear description.
Commands to run before you open a PR
npm run lint -- path/to/changed-file.tsx
npm run build
npm run build:package
npm --prefix package/honestui run typecheckIf you changed docs, check that the docs site still builds and the changed pages render correctly.
Write clear pull requests
Please include:
- What changed.
- Why you changed it.
- Screenshots if UI changed.
- Any breaking changes.
- The checks you ran.
Keep unrelated changes in separate pull requests so each change can be reviewed and verified on its own.
Component contribution checklist
When adding or changing a component, check:
- The default example is useful.
- Important states are documented.
- The component works with keyboard navigation.
- Labels, descriptions, and errors are connected where needed.
- The manual installation block lists required dependencies and CSS variables.
- The component source and examples use the same import style as the rest of the registry.
Docs contribution checklist
When changing docs, use simple language.
Prefer short paragraphs and specific examples. Explain when to use a component, when not to use it, and what each example demonstrates.
Need more details?
For the full technical process, file conventions, and registry details, see: