Contributing
The system grows from requests. Anyone can make one: product, engineering, sales, marketing. You do not need to know what a token is.
1. Asking: you need something the system does not have
Section titled “1. Asking: you need something the system does not have”Open an issue in this site’s repository with the label request. Say:
- What you are building, in one sentence. “The partner payout screen.”
- What is missing. “A way to show a value that is still being calculated.”
- What you would do without it. This tells us how urgent it is.
- A screenshot or link, if you have one.
That is enough. You do not need to propose a solution.
2. Proposing: you have the answer in mind
Section titled “2. Proposing: you have the answer in mind”Open a pull request against main with:
- The change in
tokens/,packages/ui/orsrc/data/components.mjs. Never edit generated files insrc/generated/. - The component’s page content: what it is for, what not, rules, accessibility notes, the example markup.
npm testpassing. It rebuilds the site, measures every contrast pair and checks every stated number.- A line for the changelog under an “Unreleased” heading.
3. What comes back: four answers
Section titled “3. What comes back: four answers”| Answer | Means |
|---|---|
| Yes | It goes into the next release. |
| Yes, differently | The need is real; the system answers it another way (an existing component, a variant instead of a new one). |
| Not yet | Valid, but it waits for a second use. It is added to the roadmap. |
| No | It conflicts with a principle. The answer says which one. |
Every answer says why.
4. Reviewing: what an answer checks, in order
Section titled “4. Reviewing: what an answer checks, in order”- Does something already do this? Most requests are answered by an existing component.
- Is it needed twice? A one-off stays in the product until a second screen needs it.
- Does it hold in both brands and both modes?
- Is it accessible? Contrast pairs added to
tokens/contrast-pairs.json, keyboard support, names and roles. - Does it follow the voice? Labels, errors and states per Writing and voice.
- Does it use only tokens? No literal colors in
xg-ui.css.
5. How long
Section titled “5. How long”- A request gets a first answer within five business days.
- A small change (a token value, a rule, a fix) ships in the next patch.
- A new component ships at Beta in the next minor release after it is accepted.
6. Contributing to the source
Section titled “6. Contributing to the source”npm installnpm run dev # the site with hot reloadnpm test # build + checks- Tokens: edit
tokens/primitives.json,tokens/semantic.jsonortokens/brands/waardex.json. - Components: CSS in
packages/ui/xg-ui.css, behavior inpackages/ui/xg-ui.js, documentation and examples insrc/data/components.mjs. - Brand files: add to
public/brand/, never edit an existing logo file. A missing variant comes from the brand owner, not from a redraw.
7. What this does not decide
Section titled “7. What this does not decide”Who approves what is in Governance. How versions and statuses work is in Releasing.