Skip to content

aspectRatio

Locked aspect ratio. Present only when the node has a locked ratio.

Type(s)

TypeExample
AspectRatioValuex: 16
y: 9
nullnull (unconstrained)

TokenReference is intentionally excluded — aspect ratio is a structural lock of literal numbers in the Figma API, not a token-driven value.

Supported on

ElementFigma Layer(s)
containerComponent, Frame, Instance, Slot
textText
glyphGlyph
vectorsRectangle, Vector, Ellipse, Star, Polygon

Source

FormatFile
TypeScriptpackages/schema/types/Styles.ts
JSON Schemapackages/schema/schema/styles.schema.json