Develop
KetAtlas adapter
Use the real stylesheet, templates and runtime in self-contained mock-ups.
KetAtlas renders clickable mock-ups as self-contained HTML documents. Faifo Design ships an adapter so a mock-up uses the real stylesheet, the real page templates and the real runtime instead of an imitation of them.
#Materialize
From a project where the package is installed:
npx faifo-design-atlas materialize path/to/ui-mockups
npx faifo-design-atlas check path/to/ui-mockupsThe command requires atlas.json in the target directory and manages four files:
| File | Content |
|---|---|
assets/faifo-design.css | The public stylesheet with local imports inlined |
assets/faifo-design-contracts.js | Canonical server-rendered page and layout templates |
assets/faifo-design-runtime.js | The classic-script keyboard, overlay and focus runtime |
design-system.lock.json | Package version, component count and SHA-256 hashes |
Commit the lock and run check before review: it fails when the materialized files no longer
match the installed package.
#Compose
Link the declared stylesheet and scripts, add data-faifo-design to the document root, and
compose page slots through window.ATLAS_DESIGN_SYSTEM.templates with the
__ATLAS_SLOT_{NAME}__ pattern. Atlas-specific CSS may describe business content; it must not
copy component markup or override semantic tokens.
#The descriptor
faifo-design/atlas/profile.json is the adapter descriptor
(ketatlas.design-system-adapter.v1) and faifo-design/atlas/adapter.schema.json its JSON
Schema. A consumer reads the descriptor rather than assuming file names or attributes: KetAtlas
is not coupled to Faifo Design, and another design system can implement the same protocol.