axi-designv1.50.0

Data

Table

A ranked list of rows inside a panel. Rows are separated by rules rather than outlined or blocked, because the panel is the raised thing and the table is its interior.

.axi-table .axi-table__num .axi-table__rank .axi-table__rank--top .axi-table__who .axi-table__scroll .axi-table--sticky .axi-table--pinned .axi-table--dense .axi-table--fixed .axi-table__cell--sorted .axi-table__sort .axi-table--matrix .axi-table--ruler

Numbers are set right-aligned and names left-aligned on the element itself, not left to every consumer to remember. .axi-table__rank--top is the only fill a table ever gets, and only for a real podium position - a row number stays outlined.

A table wider or taller than the panel holding it goes in an .axi-table__scroll and takes the modifiers it needs: --sticky keeps the head in place, --pinned keeps the first column in place, --dense steps the padding and type down for twenty columns instead of four. Both freezing modifiers switch the table to separate borders, because a collapsed table hands its cell borders to the table element and a border owned by the table scrolls away with it - a sticky head under collapse loses the line that makes it a lid. There is no scrolled-under state: the head's edge is drawn whether anything has moved beneath it or not.

A table sharing a pane with something else takes --fixed instead, and sets its column proportions in a <colgroup>. width: 100% is a floor, not a cap: under the default auto layout the columns size to their content, and because every cell is nowrap, content wins - a three-column table measures 581px inside a 360px pane. A page-width table absorbs that, and .axi-table__scroll turns it into a horizontal scrollbar on purpose; a table beside a selector list has neither option and needs the columns to divide the room it has. Under --fixed a cell narrower than its content is the normal case, so cells clip and ellipsise, and a name cell's label truncates while the icon beside it keeps its size.

Mark the sorted column with aria-sort on the <th> - the attribute a screen reader needs anyway, rather than a class saying the same thing twice - and .axi-table__cell--sorted on that column's cells, which is the one part CSS cannot work out for itself. Where the sort is something the reader can change, wrap the heading in an .axi-table__sort button - a heading that responds to a click but not to a keyboard is a column nobody tabbing through the page can sort.

Where picking a row drives something else - a detail pane, a chart, a second table - mark it with aria-current on the <tr>, again the attribute the announcement already needs.

The mark is the row's leading edge, not its fill, and the reason is worth knowing: hovering a row already raises it, and there is no neutral step left for a selection to take. The ramp a theme guarantees is ground, surface, surface-raised; --axi-surface-float looks like a fourth rung and is not one - it promises OPACITY for things sitting over content, which is why the default theme aliases it to --axi-surface and glass sets it darker than --axi-surface-raised. So selection and hover share the raised fill and are told apart by an accent edge on the first cell, which every body row reserves as a transparent control-weight border so that lighting it costs no reflow. One edge is a mark; the box around a row is what rule 8 refuses.

The matrix

Two categorical axes with a quantity where they cross — players down the side, time buckets across, a count in each cell. --matrix draws the field and --ruler is for the case where the columns are a timeline rather than a list of categories.

Rule 9 says a quantity is drawn as length and never as intensity, and this is the one shape it bounds rather than forbids. The plane is spent: with both axes spoken for there is no third dimension left to give the quantity a length, a bar per cell is 2400 bars four pixels wide, and neither axis can be re-sorted by the value because both are already sorted by something the reader needs. What makes the intensity admissible is rule 9's own argument rather than an exemption from it — the cell prints its number. The digit is the legible copy, the band is only what lets the eye find the shape without reading two thousand figures one at a time. A matrix cell with nothing written in it is a heatmap, and rule 9 refuses it.

It is a MODIFIER and not a component, which is the finding rather than a convenience. Everything structural a matrix field needs, the table already had: --sticky for a ruler that stays, --pinned for names that stay, --dense for sixty columns' padding, --fixed with a colgroup for proportional cells, .axi-table__scroll for the frame they move in. The only thing missing was the quantity.

Set the band with data-heat="1" to "4" on the cell. Four steps, each a color-mix() of the accent into --axi-surface-paint so every band is a computed opaque colour — the accent at 18% alpha over the field would be rule 2's faded ink, and it fails on its own terms too, because the cells a reader scans for are the quiet ones and an alpha ramp is where those disappear. The flat companion and not --axi-surface, because a surface token may hold a gradient and color-mix() takes colours only: spell it wrong and the bands do not fade, they vanish. The top two steps carry --axi-accent-ink, because past roughly half strength the field is the accent and the text on it is the accent's companion.

A cell carrying a band keeps it under hover and under aria-current. A fill that is the data has no room for a row state, so the row state is drawn by the leading edge and by every cell with nothing to say — which is the same edge-not-fill answer the selection above reaches on its own grounds.

--ruler changes two things and only two. Column labels move left, because a label on a ruler names a MOMENT and centring it puts the text half a cell right of the instant it points at. And data-tick` on a column draws its division as the rule at the hairline step — the same line that parts the rows, continued down the field. Mark only the labelled columns: sixty ruled columns is a spreadsheet, and the bands are meant to be the figure.

data-group-start on a tr rules a change of category down the rows — a subgroup, a team, a date. Heavier in ink rather than in weight, because going up a form step would put a control-weight line inside running content, which is rule 8's grid of boxes. It works on any table, not only a matrix.

A matrix field

Strips taken per player per five seconds. Every cell prints its number — the band is what lets the eye find the shape, not the only copy of it
Player 0:00 0:30 1:00
Skoll.4183 6 6 2 1 3 8 7 2 7 2
Renna.9021 4 7 5 7 4 1 1 8 2 1 4
Oakvale.5567 3 1 8 4 7 3 1 3 1 4 6
Bracken.7712 9 2 2 6 7 1 1 4 5 2 1
Marrow.3098 7 4 2 4 9 6 5 3
Thistle.6640 7 5 3 9 7 3 5
<div class="axi-panel" style="--axi-panel-pad: 0;">
  <div class="axi-table__scroll">
    <table class="axi-table axi-table--dense axi-table--matrix axi-table--ruler axi-table--sticky axi-table--pinned">
      <thead>
        <tr>
        <th>Player</th>
        <th scope="col">0:00</th>
        <th scope="col"></th>
        <th scope="col"></th>
        <th scope="col"></th>
        <th scope="col"></th>
        <th scope="col"></th>
        <th scope="col" data-tick>0:30</th>
        <th scope="col"></th>
        <th scope="col"></th>
        <th scope="col"></th>
        <th scope="col"></th>
        <th scope="col"></th>
        <th scope="col" data-tick>1:00</th>
        <th scope="col"></th>
        <th scope="col"></th>
        <th scope="col"></th>
        </tr>
      </thead>
      <tbody>
        <tr>
        <th scope="row">Skoll.4183</th>
        <td data-heat="3">6</td>
        <td></td>
        <td></td>
        <td data-heat="3">6</td>
        <td data-heat="1">2</td>
        <td></td>
        <td data-tick data-heat="1">1</td>
        <td data-heat="2">3</td>
        <td data-heat="4">8</td>
        <td data-heat="4">7</td>
        <td></td>
        <td></td>
        <td data-tick></td>
        <td data-heat="1">2</td>
        <td data-heat="4">7</td>
        <td data-heat="1">2</td>
        </tr>
        <tr>
        <th scope="row">Renna.9021</th>
        <td data-heat="2">4</td>
        <td data-heat="4">7</td>
        <td data-heat="3">5</td>
        <td data-heat="4">7</td>
        <td></td>
        <td data-heat="2">4</td>
        <td data-tick data-heat="1">1</td>
        <td data-heat="1">1</td>
        <td data-heat="4">8</td>
        <td></td>
        <td></td>
        <td data-heat="1">2</td>
        <td data-tick data-heat="1">1</td>
        <td></td>
        <td data-heat="2">4</td>
        <td></td>
        </tr>
        <tr data-group-start>
        <th scope="row">Oakvale.5567</th>
        <td data-heat="2">3</td>
        <td data-heat="1">1</td>
        <td data-heat="4">8</td>
        <td data-heat="2">4</td>
        <td data-heat="4">7</td>
        <td></td>
        <td data-tick data-heat="2">3</td>
        <td></td>
        <td data-heat="1">1</td>
        <td></td>
        <td data-heat="2">3</td>
        <td data-heat="1">1</td>
        <td data-tick></td>
        <td data-heat="2">4</td>
        <td></td>
        <td data-heat="3">6</td>
        </tr>
        <tr>
        <th scope="row">Bracken.7712</th>
        <td data-heat="4">9</td>
        <td data-heat="1">2</td>
        <td data-heat="1">2</td>
        <td data-heat="3">6</td>
        <td data-heat="4">7</td>
        <td></td>
        <td data-tick data-heat="1">1</td>
        <td></td>
        <td data-heat="1">1</td>
        <td data-heat="2">4</td>
        <td></td>
        <td></td>
        <td data-tick data-heat="3">5</td>
        <td data-heat="1">2</td>
        <td data-heat="1">1</td>
        <td></td>
        </tr>
        <tr data-group-start>
        <th scope="row">Marrow.3098</th>
        <td data-heat="4">7</td>
        <td data-heat="2">4</td>
        <td data-heat="1">2</td>
        <td data-heat="2">4</td>
        <td></td>
        <td data-heat="4">9</td>
        <td data-tick></td>
        <td data-heat="3">6</td>
        <td></td>
        <td></td>
        <td data-heat="3">5</td>
        <td></td>
        <td data-tick data-heat="2">3</td>
        <td></td>
        <td></td>
        <td></td>
        </tr>
        <tr>
        <th scope="row">Thistle.6640</th>
        <td></td>
        <td></td>
        <td data-heat="4">7</td>
        <td></td>
        <td></td>
        <td data-heat="3">5</td>
        <td data-tick></td>
        <td data-heat="2">3</td>
        <td data-heat="4">9</td>
        <td></td>
        <td></td>
        <td></td>
        <td data-tick></td>
        <td data-heat="4">7</td>
        <td data-heat="2">3</td>
        <td data-heat="3">5</td>
        </tr>
      </tbody>
    </table>
  </div>
</div>

A ranked table

The top rank is filled; the rest are outlined

Top damage — 47 fights

PlayerDamageDown contrib.Share
1 Skoll.4183 412,908389.1%
2 Renna.9021 377,140318.3%
3 Oakvale.5567 344,602297.6%
<div class="axi-panel" style="--axi-panel-pad: 18px;">
  <p class="axi-eyebrow">Top damage — 47 fights</p>
  <table class="axi-table">
    <thead>
      <tr><th>Player</th><th>Damage</th><th>Down contrib.</th><th>Share</th></tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="axi-table__who"><span class="axi-table__rank axi-table__rank--top">1</span> Skoll.4183</span></td>
        <td class="axi-table__num">412,908</td><td>38</td><td>9.1%</td>
      </tr>
      <tr>
        <td><span class="axi-table__who"><span class="axi-table__rank">2</span> Renna.9021</span></td>
        <td class="axi-table__num">377,140</td><td>31</td><td>8.3%</td>
      </tr>
      <tr>
        <td><span class="axi-table__who"><span class="axi-table__rank">3</span> Oakvale.5567</span></td>
        <td class="axi-table__num">344,602</td><td>29</td><td>7.6%</td>
      </tr>
    </tbody>
  </table>
</div>

Scrolled, pinned and dense

Scroll sideways: the head and the first column stay. Damage is the sorted column
Player DamageDown contrib.Cleanses StripsStabilityAlacrityQuickness Dist. to tagDeaths
Skoll.4183412,908381,20431118.4%62.1%71.0%4182
Renna.9021377,1403198827421.7%59.8%68.3%5024
Oakvale.5567344,602291,45119016.2%64.4%66.9%3771
Bracken.7712301,8852474240829.1%55.0%70.2%6113
Marrow.3098288,043221,67312212.8%66.7%64.1%3405
<div class="axi-panel" style="--axi-panel-pad: 0;">
  <div class="axi-table__scroll" style="max-height: 148px;">
    <table class="axi-table axi-table--sticky axi-table--pinned axi-table--dense">
      <thead>
        <tr>
          <th>Player</th>
          <th aria-sort="descending">Damage</th><th>Down contrib.</th><th>Cleanses</th>
          <th>Strips</th><th>Stability</th><th>Alacrity</th><th>Quickness</th>
          <th>Dist. to tag</th><th>Deaths</th>
        </tr>
      </thead>
      <tbody>
        <tr><td>Skoll.4183</td><td class="axi-table__cell--sorted">412,908</td><td>38</td><td>1,204</td><td>311</td><td>18.4%</td><td>62.1%</td><td>71.0%</td><td>418</td><td>2</td></tr>
        <tr><td>Renna.9021</td><td class="axi-table__cell--sorted">377,140</td><td>31</td><td>988</td><td>274</td><td>21.7%</td><td>59.8%</td><td>68.3%</td><td>502</td><td>4</td></tr>
        <tr><td>Oakvale.5567</td><td class="axi-table__cell--sorted">344,602</td><td>29</td><td>1,451</td><td>190</td><td>16.2%</td><td>64.4%</td><td>66.9%</td><td>377</td><td>1</td></tr>
        <tr><td>Bracken.7712</td><td class="axi-table__cell--sorted">301,885</td><td>24</td><td>742</td><td>408</td><td>29.1%</td><td>55.0%</td><td>70.2%</td><td>611</td><td>3</td></tr>
        <tr><td>Marrow.3098</td><td class="axi-table__cell--sorted">288,043</td><td>22</td><td>1,673</td><td>122</td><td>12.8%</td><td>66.7%</td><td>64.1%</td><td>340</td><td>5</td></tr>
      </tbody>
    </table>
  </div>
</div>

Sharing a pane

Fixed columns, proportions in a colgroup. The long skill name truncates; the icon beside it does not
SkillDamage% Total
1 Chapter 4: Scorched Aftermath of the Eternal Vigil 412,90841.2%
2 Ghastly Breach 188,20418.8%
3 Grasping Dead 96,5519.6%
<div class="axi-panel" style="--axi-panel-pad: 0; max-width: 360px;">
  <div class="axi-table__scroll" style="max-height: 148px;">
    <table class="axi-table axi-table--fixed axi-table--sticky">
      <colgroup><col style="width: 57%;"><col style="width: 23%;"><col style="width: 20%;"></colgroup>
      <thead>
        <tr><th>Skill</th><th aria-sort="descending">Damage</th><th>% Total</th></tr>
      </thead>
      <tbody>
        <tr>
          <td><span class="axi-table__who"><span class="axi-table__rank">1</span> <span>Chapter 4: Scorched Aftermath of the Eternal Vigil</span></span></td>
          <td class="axi-table__cell--sorted">412,908</td><td>41.2%</td>
        </tr>
        <tr>
          <td><span class="axi-table__who"><span class="axi-table__rank">2</span> <span>Ghastly Breach</span></span></td>
          <td class="axi-table__cell--sorted">188,204</td><td>18.8%</td>
        </tr>
        <tr>
          <td><span class="axi-table__who"><span class="axi-table__rank">3</span> <span>Grasping Dead</span></span></td>
          <td class="axi-table__cell--sorted">96,551</td><td>9.6%</td>
        </tr>
      </tbody>
    </table>
  </div>
</div>

Knobs

PropertySetsFallback
--axi-matrix-cellthe floor on a matrix cell's height and width24px

Rules this answers