Search the documentation

Type to search page titles, component names and descriptions.

    Develop

    Introduction

    What the faifo-design package contains and how its parts fit together.

    faifo-design is one npm package with three parts that are meant to be used together:

    1. Components that return ketjs-view templates: plain HTML with stable data-ui hooks.
    2. One stylesheet that carries the tokens, the fonts and the rules of every component.
    3. A small runtime that binds the interactions HTML cannot express: menus, dialogs, date pickers, dependent fields, number entry.

    The package depends only on @ketvietlab/ketjs-view. It knows nothing about routes, translators, models, sessions or deployments: an application supplies data and translated labels, and the components own markup, spacing and behaviour.

    #Entry points

    ImportWhat it gives you
    faifo-designEvery component, type and helper
    faifo-design/styles.cssThe whole stylesheet, with fonts embedded
    faifo-design/tokens.cssThe tokens alone
    faifo-design/runtimeattachDesignSystemInteractions and the other runtime functions
    faifo-design/runtime/auto.jsA script that attaches the runtime to the document
    faifo-design/contractHOOKS, OWNERS, the hook ratchet and the layout audit
    faifo-design/catalogueThe specimens, the registry and the inventory the docs are built from
    faifo-design/date-picker, faifo-design/date-picker/runtimeThe date pickers alone
    faifo-design/help/runtimeThe help drawer behaviour alone, for a host with its own runtime
    faifo-design/atlas/profile.jsonThe KetAtlas adapter descriptor

    Anything else under faifo-design/… is private. The governance check refuses a deep import that is not in this table.

    #How a screen is built

    Start from the highest-level pattern that fits and go down only as far as needed:

    1. A page pattern (ListPage, RecordPage, WorkspacePage) decides the order and rhythm of the screen.
    2. Its slots take components: a DataTable, a RecordForm, a RecordRail.
    3. Primitives (Button, Field, Badge, Stack) fill what remains.

    The Components overview lists them by purpose, and each page has an API reference generated from the source of version 0.1.44.

    #Requirements

    • Node.js 24.22.3 or later on 24.x, or 26.13.1 or later.
    • @ketvietlab/ketjs-view 1.0.0-rc.1.
    • Browsers that support light-dark(), cascade layers, :has() and container queries.