primitivePromotion
disposition: bound, direction: figma-to-spec, basis: implementation
An anatomy rule of the Figma binding. The element types named below resolve jointly here — which type a node becomes, or what tag and semantics an element takes, is decided by this rule rather than per type.
Keys. text, glyph, instance
Operands
Every fact the rule reads. Nothing outside this set participates.
| Operand | From |
|---|---|
layer | a primitive layer inside composed example content |
conventions.primitives | declared conventions — each entry names a design system component and the primitive shape it claims |
Derived predicates
| Name | Expression | Source |
|---|---|---|
derived.matchCount | conventions.primitives = the number of entries that resolve against this layer | capture-side primitive resolution (ADR-074) |
Cases
Ordered — first match wins.
| # | When | Emits | Why |
|---|---|---|---|
| 1 | derived.matchCount = 1 | an instance element of the matching component, with promotedPrimitive: true and the consumed content — the text layer’s string or the glyph’s name — in $extensions['com.figma'] | The promotion records itself and what it consumed, so reversal and auditing stay possible |
| 2 | derived.matchCount = more than 1 | the same promotion to the highest-scoring entry’s component, plus multipleMatches: true | Two components claiming one layer may describe the design system or a drifted conventions file — either way the ambiguity is a property of this element, durable rather than a warning that scrolls past |
Otherwise
the layer stays a primitive element — A primitive matching no entry is just a primitive
Applies in composed/example content, not to the component’s own anatomy.