Skip to content

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:

  1. What you are building, in one sentence. “The partner payout screen.”
  2. What is missing. “A way to show a value that is still being calculated.”
  3. What you would do without it. This tells us how urgent it is.
  4. A screenshot or link, if you have one.

That is enough. You do not need to propose a solution.

Open a pull request against main with:

  • The change in tokens/, packages/ui/ or src/data/components.mjs. Never edit generated files in src/generated/.
  • The component’s page content: what it is for, what not, rules, accessibility notes, the example markup.
  • npm test passing. It rebuilds the site, measures every contrast pair and checks every stated number.
  • A line for the changelog under an “Unreleased” heading.
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”
  1. Does something already do this? Most requests are answered by an existing component.
  2. Is it needed twice? A one-off stays in the product until a second screen needs it.
  3. Does it hold in both brands and both modes?
  4. Is it accessible? Contrast pairs added to tokens/contrast-pairs.json, keyboard support, names and roles.
  5. Does it follow the voice? Labels, errors and states per Writing and voice.
  6. Does it use only tokens? No literal colors in xg-ui.css.
  • 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.
Terminal window
npm install
npm run dev # the site with hot reload
npm test # build + checks
  • Tokens: edit tokens/primitives.json, tokens/semantic.json or tokens/brands/waardex.json.
  • Components: CSS in packages/ui/xg-ui.css, behavior in packages/ui/xg-ui.js, documentation and examples in src/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.

Who approves what is in Governance. How versions and statuses work is in Releasing.