Hub grid

The body of a hub page: every page in the section as tiles (or rows for articles), with an optional closing paragraph.

Template · stable · v1.0.0 · owner: Site system lead · contract 19 of 20 points (open: figma)

Do and don't

Do: A hub of tiles

Rendered by tile-grid.ts

Open example: Hub grid · Do: A hub of tiles Use the full-page example to follow page links.

Doors into each page.

Do: Articles as rows

Rendered by tile-grid.ts

Open example: Hub grid · Do: Articles as rows Use the full-page example to follow page links.

Many items scan as rows.

Don't: Empty hub

Rendered by tile-grid.ts

Open example: Hub grid · Don't: Empty hub Use the full-page example to follow page links.

A hub with nothing in it is a dead end; the builder skips it.

Don't: Mixed tiles and rows

Rendered by tile-grid.ts

Open example: Hub grid · Don't: Mixed tiles and rows Use the full-page example to follow page links.

One shape per hub.

Rules

RuleWhyCheck
A hub uses tiles or rows, never both.One shape per list keeps scanning predictable.Automated: tests/unit/site-system.test.ts

API

PropTypeRequiredDefaultWhat it does
labelstringYesThe section's accessible name.
tileslistNoTiles (one of tiles or rows).
rowslistNoRows, for articles.
tailhtmlNoA closing paragraph.
morehtmlNoAn arrow link after rows.

Contract details

The full contract: identity, anatomy, variants, states, tokens, layout, motion, accessibility, content, tests

Identity

AspectValue
Idtile-grid
LayerTemplates
Categorysection
OwnerSite system lead
Statusstable
Version1.0.0
Sourceapps/showcase/site/system/templates/tile-grid.ts (private repository; the contract and the render function are this one module)
VersionDateChange
1.0.02026-10-26Hub grid as one module: its markup moved out of the page builder (scripts/site) into the system.

Use when

  • Product, Solutions, Company, Demos and Articles hubs, and the 404 site map. Why: A hub's job is to send the reader to the right page.

Do not use when

  • For related pages at the foot of a page. Why: Use the Related template: smaller and titled.

Anatomy

PartWhat it is
rootsection.hub with aria-label
tilesTile set (fields-hub) or RowsList (rows-hub) inside a wrap
taildiv.prose.hub-tail after the tiles

Made of: tile, rows-list, text, arrow-link.

Used in: page-articles, page-deep, page-hub, page-404.

Variants

VariantWhenWhy
tilesSection hubs.Colour doors into each page.
rowsArticles.Many similar items scan better as rows.

States

StateRendered or not applicable
defaultdefault
hoverNot applicable: The hub grid is not interactive, so it has no hover state.
focus-visibleNot applicable: The hub grid does not take focus; links and buttons inside it carry their own focus ring.
activeNot applicable: The hub grid cannot be pressed.
disabledNot applicable: The hub grid has nothing to disable.
loadingNot applicable: The hub grid is rendered at build time and is complete when the page loads.
emptyNot applicable: The hub grid is not rendered without content; the builder skips it.
errorNot applicable: The hub grid shows no data that can fail.
currentNot applicable: The hub grid has no current item.
visitedNot applicable: The hub grid is not a link.
expandedNot applicable: The hub grid does not open or close.

Tokens

PartToken
tail.color--ink-2

Layout

AspectValue
breakpointsRequired review at 390, 768, 1024 and 1440 px; execution is not implied by this declaration; columns stack under 768 px; the wrap keeps a 16 px gutter on phones.
wrappingText wraps; nothing scrolls sideways.
textExpansionJapanese runs 20 to 40% longer; headings break between phrases (jaBreaks) and blocks grow downwards.

Spacing and rhythm

AspectValue
internalOne padding: --space-section-sm above and below (D-SITE-005).
externalBetween the page head and the call to action.
rhythmCotton after the page head's edge.

Motion

AspectValue
NoneNo intrinsic element animation. The optional claude-entrance consumer profile may translate below-fold structure once (20px, --dur-weave, --ease-enter, --stagger); reduced motion disables it. This preserved baseline entrance is separate from element playback.

Runtime and reuse

  1. Render-only element; mount any registered child enhancements separately. Preserve required Site CSS, fonts, responsive and locale rules from nativeElement.

Accessibility passport

AspectValue
roleregion (section) named by its heading
nameIts h2, by aria-labelledby
keyboardLinks and buttons inside, in reading order.
focusThe --focus ring on every link and button inside.
screenReaderRead in source order; decorative weaving is aria-hidden.
contrastInk on cotton 14:1; text on every dye field 4.5:1 or better (checked by check-brand).
targetLinks and buttons are 44 px tall.

Content

SlotLengthVoice
label3 wordsThe section name

Good: “All demos”

Bad: “Grid”

Japanese: Labels from nav-ja.

Icons and illustrations

None: this element uses no icon or illustration of its own.

Decisions and exceptions

Usage

17 uses across the built pages (measured by npm run site:system).

Tests

AspectValue
unittests/unit/site-system.test.ts: renders every do and don't example through the registry and checks the classes it owns
visualNot yet: there are no screenshot baselines; the Library page is checked for sideways scroll at 1440 px by tests/site/system.spec.ts
a11ytests/site/system.spec.ts: axe (0 serious or critical) on the element's Library page in light and dark
parityscripts/site/system/check.ts: Library examples are rendered by the same render function the site imports

Figma

not-yet: The Loom Site Figma library is the last stage of the plan; this element is not mapped yet.

Open in Storybook

Start with a conversation about your system.

We read your system, show you what we found, and agree with your team what to fix first.