Skip to content

namedStyleVersusInline

disposition: bound, direction: figma-to-spec, basis: implementation

A rule of the Figma binding. These keys resolve jointly — no one of them determines any single output, so the rule below is the mapping.

Keys. typography

Operands

Every fact the rule reads. Nothing outside this set participates.

OperandFrom
self.textStyleEntrywhether a text-style entry was captured at all, which is not the same as its value
node.textStyleIdFigma node — an empty string counts as no style, the same as null
baseline.typographythe unvaried baseline for this element

Cases

Ordered — first match wins.

#WhenEmitsWhy
1self.textStyleEntry absentnothingno text-style entry was captured for this node at all, so the pass has nothing to choose between and leaves typography as it found it. Distinct from an entry captured with an empty value, below
2node.textStyleId presenta style reference
typography removed
the named style is the source; resolved values beside it would be a second copy
3node.textStyleId absent and self.typography absent and baseline.typography presenttypography re-injected from the baselinea variant diff dropped it, but with no named style the values are the only record
4node.textStyleId absenttypography as resolved values

Otherwise

Nothing is emitted.

Stage. postProcess — produced by a later pass, not read directly.

A named text style and inline typography are mutually exclusive in a document: one is a reference, the other is the resolved values. Typography sub-fields are additionally compared against their own defaults, a second and distinct default source from the style keys.