Map A Real Component System
Map A Real Component System
Section titled “Map A Real Component System”Use a designer-readable matrix to map real component refs to Topogram semantic widgets.
Status: current Audience: designers, front-end leads, design-system maintainers, and agents Use when: a team has existing components or Storybook stories and wants to connect them to Topogram without treating source imports as design truth.
Topogram asks teams to map four things:
semantic_ui: screens, layouts, regions, render entries, messages, and accessibility obligations.design_language: platform scope and design-token vocabulary.component_map: widget-to-platform component refs and behavior support.- reports and slices: the review matrix and agent context that prove what is mapped, missing, unsupported, or contract-only.
The graph is not a render tree. It is a work map. Designers should start from the matrix, not raw .tg files.
Five-Minute Substantial Proof
Section titled “Five-Minute Substantial Proof”Use the operations design-review proof when you want a running SaaS UI and one designer-readable packet:
git clone https://github.com/attebury/topogram-proof-operations-design-review.gitcd topogram-proof-operations-design-reviewnpm installnpm run verifyOpen these files first:
proof/artifacts/step-06-designer-closeout/final-designer-packet.mdproof/artifacts/step-06-designer-closeout/designer-review-checklist.mdproof/artifacts/step-06-designer-closeout/final-screen-slice.mdproof/artifacts/step-04-designer-report-packet/design-coverage.mdtopo/component-maps/operations-component-map.tg
This is the most concrete designer/front-end-lead path: a maintained React app, Acme Operations UI component refs, semantic layouts, regions, and render entries, a component map, a polished Markdown packet, and a slice-guided UI change.
Storybook Mapping Proof
Section titled “Storybook Mapping Proof”git clone https://github.com/attebury/topogram-proof-real-component-system-map.gitcd topogram-proof-real-component-system-mapnpm installnpm run verifyOpen these files first:
proof/artifacts/step-06-designer-review-checklist.mdproof/artifacts/step-06-work-map.mdproof/artifacts/step-06-screen-slice.mdproof/artifacts/step-06-widget-slice.jsontopo/component-maps/component-map-acme-ops-widgets.tg
Use this proof when the important question is Storybook evidence and explicit candidate review. The useful review question is: which semantic widget maps to which trusted component ref, on which platform, with which behavior and state coverage?
Mapping Workflow
Section titled “Mapping Workflow”-
Inventory real component refs. Use stable design-system identities such as
acme.dataGrid, not source paths likesrc/components/DataGrid. -
Define semantic widgets. A widget such as
widget_intake_griddescribes reusable UI intent: rows, selection, sorting, filtering, states, and placement. -
Define the design language.
design_languagerecords platform scope and token names. It is the header for a component system, not a CSS file. -
Author or adopt a component map.
component_maprecords connect semantic widgets to platform component refs. Eachwidget_mappingsays whether the mapping isrendered,contract_only,implementation_owned, orunsupported. -
Review the matrix. Run
topogram query ui-design-coverage ./topo --surface <surface> --format markdownand treat unsupported, contract-only, missing-platform, missing-state, missing-i18n, missing-ARIA, and missing-token rows as work. -
Give agents slices, not the whole repo. Use
topogram query slice ./topo --surface <surface> --screen <screen> --detail compact --format markdownfor screen work and--widget <widget>for component mapping work.
Component Map Example
Section titled “Component Map Example”component_map component_map_acme_ops_widgets { name "Acme Operations Component Map" description "Maps semantic operations widgets to stable Acme component refs." design_language design_acme_ops status active
widget_mapping { id intake_grid_web_wide widget widget_intake_grid platform web viewport wide component_ref "acme.dataGrid" pattern data_grid_view density compact state_coverage [loading, empty, error] status rendered behaviors_rendered [selection, sorting, filtering] }
widget_mapping { id intake_grid_web_narrow widget widget_intake_grid platform web viewport narrow component_ref "acme.cardList" pattern resource_cards density comfortable state_coverage [loading, empty] status contract_only behaviors_rendered [selection] behaviors_contract_only [sorting, filtering] }}component_ref is the stable design-system identity. status and behavior arrays decide what is safe for agents to treat as implemented.
Storybook Path
Section titled “Storybook Path”Storybook is evidence, not the source of truth. Static CSF stories can propose component_mappings candidates when they include explicit parameters.topogram metadata.
topogram extractor policy pin @topogram/extractor-storybook-design@1topogram extract ./component-library --out ./extracted-topogram --from ui --extractor @topogram/extractor-storybook-designtopogram adopt --list ./extracted-topogram --jsontopogram adopt component-mappings ./extracted-topogram --dry-run --jsonReview the candidate, then apply the accepted mapping to canonical component_map source.