Skip to content

maxWidth

The largest width the element may take when its width is otherwise flexible.

Path

…elements.<element>.styles.maxWidth

Elements Supported

component · container · ellipse · glyph · instance · line · polygon · rectangle · slot · star · text · vector

Value

TokenReference

A design token, written as a $token path plus a $type, as in { $token: Color/On surface, $type: color }. The consuming platform resolves it to a value.

number

null (default)

Themes

A TokenReference written here resolves under the theme in force on this element — the one it selects in themes, or the nearest ancestor’s. The same token path yields a different value under a different theme.

Platform bindings

Figma

Disposition: bound · Realised by: node.maxWidth

Written as resolved. Zero is preserved, because a maximum of zero is a real if unusual constraint and the API accepts it. Skipped on text nodes.

CSS

Disposition: approximated · Realised by: size

Emits max-width. Loss: a resolved value of 0 is suppressed — and unlike a minimum, a maximum of zero is a constraint the schema permits and Figma accepts, so this one is a CSS-side choice rather than a platform limit.

Decisions

  • ADR-081 — defaultFillWidth — the Width a Fill-Width Root Fills
  • ADR-113 — Style defaults belong to the schema

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