axi-designv1.50.0

Data

Stat

A single number and its label, flat inside a panel. The number stays in the plain text ink unless it carries a real state.

.axi-stat .axi-stat__k .axi-stat__n .axi-stat--accent .axi-stat--meta .axi-stat--ok .axi-stat--warn .axi-stat--danger

A tile takes an ink only when its number has a state, exactly as a chip does under rule 5 - colour used for emphasis rather than status is the mistake this component exists to prevent. --meta is the one modifier that annotates rather than asserts: a count of something known about the data, not measured from it.

A row of stat tiles

Only tiles with a real state take an ink
47Fights
31Won
12Lost
4Needs re-parse
<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 axi-stat--ok"><b class="axi-stat__n">31</b><span class="axi-stat__k">Won</span></div>
  <div class="axi-stat axi-stat--danger"><b class="axi-stat__n">12</b><span class="axi-stat__k">Lost</span></div>
  <div class="axi-stat axi-stat--meta"><b class="axi-stat__n">4</b><span class="axi-stat__k">Needs re-parse</span></div>
</div>

Rules this answers