Search the documentation

Type to search page titles, component names and descriptions.

    Develop

    Contributing

    The branch flow, the local checks and what a component change must include.

    The complete rules are in AGENTS.md at the root of the repository. This page is the short version for a first contribution.

    #Set up

    npm ci
    npm run build       # packages/faifo-design/dist
    npm test            # every design-system test, from source
    npm run docs:dev    # this site, with live reload

    Node.js 24.22.3 or later on 24.x, or 26.13.1 or later.

    #Branches

    BranchTakesGate
    integrationEvery feature and fix pull requestThe author's focused local checks
    developOnly the promotion from integrationverify, the whole suite
    mainrelease/<version> and hotfix/<version>verify, then the owner releases

    Branch from integration as feat/…, fix/…, docs/… or chore/…. Commit messages and everything stored in the repository are in English. Integration has no broad CI, so write the commands you ran and their results in the pull request.

    #A component change includes

    1. The change in packages/faifo-design/src, using tokens only: no hex colour, no numeric z-index, no --faifo-ref-* in component CSS.
    2. A specimen in the catalogue that shows the new state, and a test that fails without the change.
    3. For a new export: an entry in catalogue/inventory-policy.json, a registration in catalogue/registry.ts when it is a component, and a place on a page under packages/docs/content/components. The documentation build fails when an export or a specimen appears on no page.
    4. A ### entry under ## Unreleased in the package changelog when the API or behaviour changed.

    #Documentation

    The prose of this site is Markdown under packages/docs/content. The API tables and the code of every example are read from the package source at build time, so they cannot be edited here: to change them, change the source or the specimen. A component page quotes sections of the package README with a readme: list in its frontmatter, and any page can place one with a readme: placeholder on a line of its own (the pages under content/design show the form), which keeps contract text in one place.

    npm run docs:check   # types and island registration
    npm run docs:test    # the extractors and the content model
    npm run docs:build   # the site, then link and coverage verification

    #Changelog

    Every pull request that changes the API or behaviour of this package adds an entry under the single ## Unreleased heading of CHANGELOG.md, one ### subheading per change. A release renames Unreleased to its version number, for example ## 0.1.45 — …, in the same change that sets version in package.json.