axi-designv1.50.0

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.

.axi-grid

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 cards
47Fights
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

PropertySetsFallback
--axi-grid-minminimum column width in .axi-grid300px