Layout
Grid
An auto-filling card grid whose minimum column width is per-instance, because a grid of ten app cards and a grid of sixty catalog entries are the same component with different minimums.
repeat(auto-fill, minmax(var(--axi-grid-min, 300px), 1fr)) and the
page gutter for its gap - the column count is a consequence of the measure
and the minimum, never a number a consumer types. Under 640px it collapses to
a single column. Anything this does not cover is plain CSS grid: a layout
system large enough to express any page is a framework.
A grid of stat tiles
A small minimum packs many columns; raise it for cards47Fights
31Won
12Lost
4Re-parsed
<div class="axi-grid" style="--axi-grid-min: 150px">
<div class="axi-stat"><b class="axi-stat__n">47</b><span class="axi-stat__k">Fights</span></div>
<div class="axi-stat"><b class="axi-stat__n">31</b><span class="axi-stat__k">Won</span></div>
<div class="axi-stat"><b class="axi-stat__n">12</b><span class="axi-stat__k">Lost</span></div>
<div class="axi-stat"><b class="axi-stat__n">4</b><span class="axi-stat__k">Re-parsed</span></div>
</div>
Knobs
| Property | Sets | Fallback |
|---|---|---|
--axi-grid-min | minimum column width in .axi-grid | 300px |