Contributing
Meridian grows slowly on purpose. A component that exists has to be maintained, documented and supported forever, so the bar for adding one is high and the bar for fixing one is low.
Before you propose a component
Answer these four questions in the issue. If two or more answers are "not sure", it is a pattern, not a component:
- Does it appear in at least three unrelated screens, or is it specific to one workflow?
- Can it be built from existing primitives with classes you already have?
- Does it have states that the current library cannot express?
- Who maintains it when the original author moves on?
Change process
| Step | What happens | Who decides |
|---|---|---|
| 1 · Issue | A description of the problem, with screenshots of the current workaround | Anyone |
| 2 · Triage | Label as token change, component change, or new component | Maintainers, weekly |
| 3 · Proposal | Markup sketch, token usage, states, accessibility notes | Author |
| 4 · Review | Two approvals: one design, one engineering | Reviewers |
| 5 · Release | Ships in the next minor version with a changelog entry | Maintainers |
Review criteria
A pull request is merged when all of these are true:
- It uses tokens. No raw hex, no magic pixel values — if a value does not exist, the token set is the thing to change.
- States are complete. Default, hover, focus, active, disabled, invalid — whichever apply.
- It works in both themes. Dark mode is not an afterthought; a component that only works in light mode is not merged.
- Contrast passes. The CI check is not advisory.
- The diff is small. A component in three files beats the same component in one clever file.
Versioning
Semantic versioning, applied to the public surface — tokens and class names:
| Change | Bump |
|---|---|
| New component, new token, new optional modifier | Minor |
| Visual fix, contrast fix, documentation | Patch |
| Renamed token, removed class, changed default behaviour | Major |
Local development
git clone https://example.invalid/meridian.git
cd meridian
npm install
npm run dev # docs site on :4321, rebuilds on save
npm test # contrast + snapshot checks
npm run build # dist/meridian.css
The documentation site is the test harness. If a component cannot be demonstrated in a short HTML block, its API is too complicated.
Licensing
Contributions are accepted under Apache-2.0. There is no CLA — submitting a pull request is
agreement to the licence.