Layout

col-ui row-ui grid-ui stack-ui

Layout primitives — flex columns, flex rows, CSS grids, and stacked overlays — each with consistent gap, alignment, and justification controls.

col-ui

Flex column. Children stack vertically with a consistent gap.

Item one Item two Item three
Item one Item two Item three
Item one Item two Item three
Item one Item two Item three
Item one Item two Item three

row-ui

Flex row. Children lay out horizontally.

A B C
A B C

justify

Main-axis distribution. One of start, center, end, space-between, space-around.

A B
A B
A B
A B

align

Cross-axis alignment. One of start, center, end, stretch, baseline (row only).

A B
A B
A B
A B

wrap

Allow row children to wrap onto additional lines when they overflow.

One Two Three Four Five

grid-ui

CSS grid with a fixed column count or responsive auto-fill / auto-fit.

1 2 3 4
1 2 3 4 5 6
A B C D

stack-ui

Overlay children in the same cell. Use align to position them within the stack.

Combinations

Nested layouts composing a typical card-style region.

Title Action Stat A Stat B Stat C Stat D

Edge Cases

Boundary conditions.

Only child
No gap No gap

Usage

<col-ui gap="md"> <row-ui justify="space-between"> <div>Title</div> <div>Action</div> </row-ui> <grid-ui columns="3" gap="sm">...</grid-ui> </col-ui>

Properties

col-ui

PropertyTypeDefaultDescription
justifyString'start'Main-axis distribution. start, center, end, space-between, space-around.
alignString'stretch'Cross-axis alignment. start, center, end, stretch.
gapString'md'Space between children. Named xsxl (parametric, via --a-gap-k) or integer rung 016; at k=1 they coincide (md=3).

row-ui

PropertyTypeDefaultDescription
justifyString'start'Main-axis distribution.
alignString'center'Cross-axis alignment. Adds baseline.
gapString'md'Space between children. Named xsxl or integer 016 (same grammar as col-ui).
wrapBooleanfalseAllow children to wrap onto additional lines.

grid-ui

PropertyTypeDefaultDescription
columnsString'3'Column count (16) or responsive preset (auto-fill, auto-fit).
gapString'md'Space between rows and columns. Named xsxl or integer 016.
column-gapString''Override column gap independently.
row-gapString''Override row gap independently.

stack-ui

PropertyTypeDefaultDescription
alignString'center'Positioning of overlaid children. center, top, bottom, left, right, top-left, top-right, bottom-left, bottom-right.

Events

None.

CSS Tokens

col-ui

TokenDefaultDescription
--col-gapvar(--a-space-3)Gap between children.
--col-justifyflex-startMain-axis distribution.
--col-alignstretchCross-axis alignment.

row-ui

TokenDefaultDescription
--row-gapvar(--a-space-3)Gap between children.
--row-justifyflex-startMain-axis distribution.
--row-aligncenterCross-axis alignment.

grid-ui

TokenDefaultDescription
--grid-columns3Number of columns.
--grid-gapvar(--a-space-3)Default row and column gap.
--grid-column-gapvar(--grid-gap)Column-only gap override.
--grid-row-gapvar(--grid-gap)Row-only gap override.

stack-ui

TokenDefaultDescription
--stack-aligncenterplace-items value for overlaid children.

Authoring rules