Skip to content

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.

OperandFrom
layera primitive layer inside composed example content
conventions.primitivesdeclared conventions — each entry names a design system component and the primitive shape it claims

Derived predicates

NameExpressionSource
derived.matchCountconventions.primitives = the number of entries that resolve against this layercapture-side primitive resolution (ADR-074)

Cases

Ordered — first match wins.

#WhenEmitsWhy
1derived.matchCount = 1an 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
2derived.matchCount = more than 1the same promotion to the highest-scoring entry’s component, plus multipleMatches: trueTwo 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.