Skip to content

centerHorizontalOffset

Horizontal offset from center. Present when the horizontal constraint is CENTER.

Type(s)

TypeExample
number0 (pixels)
nullnull

Not token-bindable — structural property computed from Figma layout constraints, not a design value.

Supported on

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

Figma key

Reads from x when the horizontal constraint is CENTER. See ADR 041 — Layout Positioning.

Source

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