gridColumns
The columns a grid templates, when the column axis is the templated one.
Path
…elements.<element>.styles.gridColumns
Elements Supported
Value
AdaptiveGridTracks
A track count derived from the container: as many tracks as fit at the declared minimum, with remaining space shared equally.
minSize: 200integer
A fixed count of equal tracks.
null (default)
Platform bindings
Figma
Disposition: unsupported · Realised by: rule wrapping
Neither captured nor rendered yet. ADR-122 specifies the mapping: a count binds to Figma’s column count with rows generated, while the adaptive form has no Figma counterpart at all — render writes a concrete count for the frame’s width and capture cannot recover the minimum.
CSS
Disposition: bound · Realised by: rule autoLayout
An integer emits repeat(n, minmax(0, 1fr)) — minmax(0, 1fr) rather than a bare 1fr, so a wide child cannot push its track past its share. The adaptive form emits repeat(auto-fill, minmax(<minSize>, 1fr)), and auto-fit when collapseUnusedTracks is set, which is exactly the distinction that boolean names.
Resolved jointly with
This key does not map on its own. Its rule’s ordered case table is linked above.
wrapping — Figma
autoLayout — CSS
Decisions
None.
Rules
| Rule | Statement |
|---|---|
| DSPEC-44 | Every Styles property declares a default valid against its own schema |
| DSPEC-45 | A declared default is a literal, never a reference or conditional |
| DSPEC-47 | Jointly resolved keys are stated as an ordered case table, not prose |
Source
| Format | File |
|---|---|
| JSON Schema | packages/schema/schema/styles.schema.json |
| TypeScript | packages/schema/types/Styles.ts |
| Specification | §4.1a, §11 |