Skip to content

primaryAxisSizingMode

Whether the stacking axis sizes to its contents or to a fixed value.

Path

…elements.<element>.styles.primaryAxisSizingMode

Elements Supported

component · container · slot

Value

  • "AUTO" (default) — The stacking axis sizes to its contents.
  • "FIXED" — The stacking axis takes the recorded dimension.

Platform bindings

Figma

Disposition: bound · Realised by: node.primaryAxisSizingMode

Deferred after layoutSizingHorizontal/Vertical, which themselves write it — the shorthand would otherwise clobber the explicit primitive.

CSS

Disposition: unsupported · Realised by: —

Not emitted. Sizing is derived instead from layoutSizingHorizontal and layoutSizingVertical against the parent axis, which the autoLayoutSizing rule states. This key is never read.

Decisions

  • ADR-113 — Style defaults belong to the schema
  • ADR-115 — Closed Style Value Sets

Rules

RuleStatement
DSPEC-44Every property of Styles declares a default, and its value validates against that property’s own schema
DSPEC-45A declared default is a literal, never a TokenReference, PropBinding or Conditional

Source

FormatFile
JSON Schemapackages/schema/schema/styles.schema.json
TypeScriptpackages/schema/types/Styles.ts
Specification§4.1a, §11