Search the documentation

Type to search page titles, component names and descriptions.

    Develop

    Changelog

    What changed in each release of faifo-design, and what is waiting for the next one.

    Every pull request that changes the API or behaviour of the design system adds an entry under Unreleased. A release renames that heading to its version number (see Changelog in the README). A version without a heading below has no recorded entry.

    Releases up to 0.1.44 were published as @ketvietlab/design-system. Their entries are shown with today's identifiers, so a name below can be searched for in the current source.

    #Unreleased

    #Collection shell specimen without the context rail

    The app-shell specimen ("Collection shell") no longer fills the right rail with a "Context" panel: the list workspace is shown with its sidebar and the page alone. AppShell still takes rightRail, and the workspace specimens still show it.

    #Metric-matched fallback fonts

    Text no longer moves when a brand font arrives. The brand faces load with font-display: swap, so a page that fetches them as files paints first with the next family of the stack; that family had other advances and another ascent, and every line re-broke on arrival.

    • tokens.css declares Porto Faifo Sans Fallback (regular and bold) and Porto Faifo Mono Fallback: platform fonts (local() only, nothing is downloaded) scaled with size-adjust to the brand face's average advance over English, Vietnamese and label text, and given its ascent and descent. Their unicode-range is the brand face's own coverage, so a character Porto Faifo lacks still falls through to Inter.
    • --faifo-font-sans and --faifo-font-mono name the stand-in directly after the brand family. Inter keeps its role: it is fetched when a page shows a character Porto Faifo does not have.
    • The sans stand-in draws with Arial, Liberation Sans or Arimo; the mono stand-in with Menlo. A platform with none of them falls through to the rest of the stack as before.
    • tools/design/font-fallback-metrics.py regenerates the faces from the font files.

    A host does nothing to adopt this; a stylesheet that overrides --faifo-font-sans or --faifo-font-mono keeps its own stack.

    #Renamed to faifo-design

    The design system is now the package faifo-design, developed in its own repository. This is a breaking rename for every consumer; no component behaviour changes with it.

    • Package and entry points: @ketvietlab/design-system → faifo-design (/styles.css, /tokens.css, /runtime, /runtime/auto.js, /contract, /catalogue, /date-picker, /help/runtime).
    • Tokens: --kv-* → --faifo-*. Attributes: data-kv-* → data-faifo-*; the scope attribute data-kv-design-system → data-faifo-design.
    • Components: KetGrid, KetTable and every type, helper and island named after them → FaifoGrid, FaifoTable (createFaifoGrid, createFaifoTableView, faifoGridOptions, FAIFO_GRID_NO_CHANGES, …). Their hooks move from kg-*/kt-* to fg-*/ft-*, and ket-grid-island → faifo-grid-island.
    • Events: ket:screen-help-request, ket:relation-created, ket:grid-ready, ket:search-filter-navigate and ket:records-changed → faifo:*. The reorder drag type is application/x-faifo-reorder; the apply-on-input focus key is faifo-design.apply-on-input.focus; keyframes and Mermaid classes use the faifo- prefix.
    • Commands: ket-design-system-atlas → faifo-design-atlas, ket-design-system-layout-audit → faifo-design-layout-audit; materialized KetAtlas assets are assets/faifo-design*.{css,js}. The skill is faifo-design.
    • Cascade layers: ket.reset, ket.theme, ket.app, ket.user → faifo.reset, faifo.theme, faifo.app, faifo.user. A host that declares a layer order of its own, or writes its overrides in ket.user, names the new layers.
    • Unchanged, because another project defines them: the package @ketvietlab/ketjs-view with its island host (ket-island, data-ket-island), and the protocol of a KetJS host that components speak to (data-ket-slot, data-ket-reload, data-ket-preserve-context, ket:navigation-*, _ket/fn).

    #Elevation, control states and finish

    No component, prop, export, data-ui hook or existing token name changes; only values and CSS.

    • Elevation is scheme-aware and layered. --faifo-shadow-xs|sm|md|popover|float keep their names and now pair a contact shadow with an ambient one, faint on light surfaces and heavy on dark ones. New tokens: --faifo-shadow-dialog (Modal, Dialog and ConfirmDialog now read it), --faifo-shadow-control, --faifo-shadow-control-highlight, --faifo-focus-ring-danger, --faifo-selection-bg and --faifo-scrollbar-thumb.
    • Button: a resting button sits one hairline above its surface, a filled one has a lit top edge, and both go flat when pressed. Colour, fill and stroke change with the fast motion token. A filled danger or positive button has one colour edge to edge in every state (the pale rim is gone), and every tone and emphasis now answers hover and press. A pressed toggle draws a one-pixel accent ring on its tint; a logo choice keeps its two-pixel ring.
    • Field: hover and focus change with the fast motion token. A focused field that is still invalid keeps its danger stroke and takes a danger halo instead of turning blue. The error message is medium weight. A focused checkbox Field shows the focus outline again.
    • Switch: the track answers hover, and keyboard focus adds the focus outline to the pale halo.
    • Menu: keyboard focus reads as the hovered row with its ring inside the row, a destructive item hovers on the danger tint, and an unavailable item no longer answers hover.
    • Notice: the mark and the action are centred on the first line of copy, and an action no longer makes the notice taller than its text.
    • App navigation: in the fixed tools header the identity and context each stay on one line and truncate, instead of wrapping out of the header.
    • Finish: selected text and scroll thumbs follow the scheme, the text caret takes the accent, headings wrap balanced and paragraphs avoid a last line of one word.
    • Forced colours: Button and Field redraw their stroke, pressed state and focus as outlines, because forced colours drop the box shadows that draw them.

    #Relation select

    No prop, export, label or existing data-ui hook changes. New hooks: relation-dialog-content, relation-dialog-subject, relation-row-menu and relation-row-more; new attributes data-relation-dialog (browse or form) on the sheet and data-pending on a row.

    • The picker still fills its field column. Its trigger is drawn as a field control, the caret turns when the list is open, the search has its icon, and options are inset rows with the selection mark in the readable accent colour.
    • Every dialog of the picker is a small sheet (34rem) instead of the 56rem default. Browsing keeps one height while the list is searched (36rem at most); the search and Create sit in a band above the scrolling rows, and the rows stay on screen, dimmed, while a search loads.
    • A row shows the record, Select (pressed and reading Chosen on the current value) and one "more" button holding Edit and Remove, in place of a button per command. The menu opens upward near the bottom of the list and follows arrow keys, Home, End and Escape.
    • Remove asks on its own row, with Cancel beside a filled danger button. A second press while the request is in flight is ignored.
    • Editing and creating replace the list with the form: the title names the record being edited, the first field takes focus, and Cancel and Save are in the sheet footer for every form, not only quick create.
    • Errors use the design system Notice. A refused save or removal shows the server's reason and clears the pending row; only a failed load offers Retry.
    • Escape closes the row menu, then a pending removal, then the dialog.

    #Dark surfaces and disabled controls

    Token values only: no component, prop, export, data-ui hook or token name changes. Light surfaces keep their values; the one part that moves in light is the graphite rail noted below.

    • The dark canvas, sidebar, rail and panels are a step lighter (canvas #15181d to #181b20, panel #1a1e23 to #1e2227), and the canvas sits further from a panel. Buttons and fields rise with them (--faifo-interactive-bg, --faifo-input-bg and its hover and focus fills), so a control keeps its distance from the panel under it. Raised surfaces, table headers and hover fills keep their values: the danger badge sits at exactly AA on a raised surface, so that step cannot rise without losing it. The graphite app switcher rail reads the same canvas colour in either theme, so it lifts by the same step.
    • A disabled control is visible in dark. --faifo-interactive-disabled is now a 6% white veil in dark instead of a fill three steps from the panel, so a disabled Button, Field, select, relation picker and count pill stays the same distance above the canvas, a panel or a raised surface. Its dark value is translucent: do not rely on it to cover what is behind it.
    • Disabled text in dark is lighter (#505862 to #636b76), so a value that can no longer change stays readable on the veil.

    The design system has a logo: the mark and an outlined wordmark, "Faifo" in Porto Faifo Sans Bold and "Design" in Medium. The package ships them under dist/brand/ (see Logo in the README), and the catalogue rail and its favicon use them in place of the letter placeholder. The full-resolution app icon stays beside the sources in brand/faifo-app-icon.png and is not published. No component, prop, export, data-ui hook or token changes.

    #Faifo Design name

    • Present the design system, its catalogue and agent skill as Faifo Design. The package name, import paths, CLI commands, skill ID, tokens and data-ui hooks stay unchanged; entries below keep the name in use when written.

    #One layer scale and component colour roles

    • --faifo-layer-* is the one stacking scale, with the same values as before (menu 40 < popover 50 < dialog 100 < dock 150 < toast 200), plus local steps --faifo-layer-local-below|raised|overlay|edge (-1, 1, 2, 3) for parts inside one component.
    • Deprecated: --faifo-z-base, --faifo-z-sticky, --faifo-z-dropdown, --faifo-z-popover, --faifo-z-modal, --faifo-z-dock and --faifo-z-toast remain as aliases of the matching --faifo-layer-* token. Use --faifo-layer-*.
    • Component CSS no longer reads --faifo-ref-* palette tokens or hex colours. New component roles in tokens.css carry the same values: --faifo-action-logo-stage, --faifo-action-logo-selection, --faifo-qr-code-bg, --faifo-qr-code-ink, --faifo-flat-bg and --faifo-grouped-* for the grouped presentation. Rendered colours and layers do not change.

    #Porto Faifo symbols

    • Render Porto Faifo Symbols through the existing Icon API and accessible naming contract.

    #Porto Faifo fonts

    • Use Porto Faifo Sans for the sans and display tokens and Porto Faifo Mono for the monospace token. Keep the existing typography roles and Inter fallback.

    #Terminal colours

    • Add --faifo-terminal-ansi-0 … --faifo-terminal-ansi-15, the 16 ANSI colours for a terminal on --faifo-page-bg, in light and dark. Every colour except the background's own slot (black on dark, bright white on light) reads at 4.5:1 or more.

    #0.1.44 — Inter by default

    • Stop shipping KÉT Sans. Its license does not allow redistributing the font files and its use is limited to Két Việt products; 0.1.42 and 0.1.43 bundled KÉT Sans Optical 1.0. Inter 4.1 is now the interface typeface of the public package.
    • --faifo-font-sans still names "KÉT Sans" before Inter, so a Két Việt product that registers KÉT Sans in its own stylesheet keeps it.
    • Declare MIT AND ISC AND OFL-1.1 (code, Lucide icons, Inter) instead of MIT, and add the Inter notice to LICENSE.

    #0.1.32 — Product list, normalized primitives and shared visual rhythm

    #Product list and agent skill

    • Add opt-in FaifoTableColumn.wrap for readable descriptive columns in server and island tables, with token-owned minimum widths and content-driven row height.
    • Normalize column labels and keep a single outside table border in flat/grouped results. Operational ListPage owns the toolbar-to-result gap and renders its result count without a second surface, on desktop and mobile.
    • Use the wrapping contract in the actual KetSuite Product list; align legacy list view controls with the shared responsive control height.
    • Consolidate repository design guidance into the independently packaged Faifo Design agent skill; API documentation and engineering rules remain in place.

    #Normalized primitives

    • Standardize Text roles, shared Lucide Icon, inline Link, independent action tone/variant and stable loading geometry.
    • Consolidate Field/FieldFrame label/help/error ownership; add supported scalar props, affixes, native search clear, textarea rows/resize, money currency/precision, and checked/value separation with mixed choice state.
    • Extend token-based responsive layouts, badge progress/icons, native removable tag commands, avatar image fallback, shared loading indicators, progress sizes and accessible tooltip triggers/Escape.
    • Preserve Faifo colours, Lucide, 32/36px default controls, native navigation, side labels, and compatibility aliases. CountBadge announcements now require announce; Notice supports an explicit announcement policy.
    • Expand /primitives and the normalization matrix in README, hook inventory, rendering contracts and browser interaction/geometry checks.

    #Shared visual rhythm

    • Pin typography, spacing, button and input dimensions to Polaris React 13.9.5 / tokens 9.4.2. Default actions use large (32px desktop / 36px mobile) to align with inputs; compact is 28/32px. Preserve Faifo colours, weights, Lucide and field layout.
    • Apply Polaris grouping and spacing principles through Faifo roles: common page gutters, surface/table/modal insets, and heading gaps; retain Faifo colours and Lucide.
    • Keep desktop table rows at 40px across density presets, with 6px cell padding; mobile retains larger rows.
    • Remove grouped-presentation and page-body overrides of composed layout spacing.
    • Migration: grouped pages now use the same spacing as default pages. Use public Stack gap variants for deliberate grouping; remove local spacing compensations. To roll back, revert this rhythm change as a unit, not individual module overrides.
    • Catalogue: /layering documents the rhythm; browser checks measure both presentations.

    #0.1.30 — date pickers, primitives harness and page titles

    • Enhance DatePicker and DateRangePicker with accessible draft calendars, seven Vietnamese quick ranges, civil-date arithmetic, keyboard navigation and responsive month layouts. DatePicker retains native validation/fallback; DateRangePicker uses one visible range field with a preset select inside its calendar and two ISO form values. Both calendars fill mobile screens; ranges scroll vertically through multiple months. Add the /dates playground.

    • Add /primitives, a render-pure harness covering every primitive with theme, density, state and content-pressure comparisons.

    • Keep notice icons beside wrapping copy and place actions below it in narrow containers. Preserve icon, spinner, tag-removal and progress-value geometry with long content.

    • Align checkbox/radio controls with field edges and vertical option-group labels with their first option.

    • Give Select a consistent chevron inset and room for long values while retaining its native picker, keyboard and validation semantics.

    • Keep explicit Stack gap variants authoritative when legacy KetSuite controls CSS is loaded.

    • Backport the integration page-title contract (f6c5f413): shared 24px title token, 17px below tablet width, remove the compact operational list exception so every page uses the same title scale.

    • Keep modal titles at the xl type step and section/nested surface headings at lg so headings remain distinct from body content.

    • Badge and Tag now use the full pill radius, matching CountBadge across all themes and tones.

    #0.1.14 — KetSuite application navigation

    • Migrated the KetSuite administration shell to the public AppNavigation contract.
    • Kept dense desktop navigation scrollable with a pinned account footer and exposed the same hierarchy through a left-side mobile drawer.
    • Preserved menu search, nested branches, one expanded top-level group, breadcrumbs, localization, and active state on leaf destinations only.
    • Added a stable navigation slot so progressive fragment responses can refresh menu content without replacing the long-lived application shell.

    Released as part of the coordinated KetJS 0.1.14 package set.

    #0.1.13 — application navigation

    • Added the responsive AppNavigation shell for dense desktop sidebars and mobile drawers.
    • Added nested navigation branches with a single expanded top-level group and active state on leaf items.
    • Kept application breadcrumbs visible while navigation context changes.
    • Added a complete application demo and browser coverage for desktop, mobile, theme switching, and nested standalone navigation.

    Released as part of the coordinated KetJS 0.1.13 package set.

    #0.1.12 — reproducible inventory release

    • Excluded ignored local build products from generated inventory inputs while preserving non-ignored new source files.
    • Kept source-archive generation deterministic when Git metadata is unavailable.

    This patch has no public component API changes and supersedes the unpublished npm attempts for 0.1.10 and 0.1.11.

    #0.1.11 — component system Waves 0–6

    • Standardized the public primary scale around Indigo #5968DF.

    • Aligned accent, focus, navigation, and informational semantic roles with the new scale in both light and dark themes.

    • Updated the component catalogue specimen and added regression coverage for every public primary swatch.

    • Added a deterministic public/compatibility inventory and governance checks.

    • Organized component source, CSS ownership, registry metadata, specimens, and token contracts.

    • Added interaction primitives and a shared progressive-enhancement runtime.

    • Added typed forms, controlled pickers, data operations, and record/workspace composition.

    • Added migration and release-readiness audits; deprecated compatibility page recipes remain available.

    • Added a generic KetAtlas adapter descriptor, deterministic materializer and verification lock.

    Released as part of the coordinated KetJS 0.1.11 package set.