The grid identity system lets semantic HTML elements auto-register to grid areas based on their element type.
HTML declares structure, CSS assigns layout.
data-layout="regions" stacks a header / content / footer column on any element: the <header> (or [slot="header"]) first, the <footer> (or [slot="footer"]) last, and every other child in between in DOM order. Semantic children place themselves without explicit layout attributes.
A <section> with data-layout="regions". The <header>, <section>, and <footer> children take their regions; the section grows to fill any spare height.
This section content auto-places into the content grid area. No explicit placement needed.
Works on any element. An <article> with regions is a natural fit for blog posts, cards, and content blocks.
The grid identity system lets semantic HTML elements auto-register to grid areas based on their element type.
HTML declares structure, CSS assigns layout.
Children that are not a header or footer region sit between them in DOM order — several bare elements stack, they never overlap. With no <section>, the footer is pinned to the bottom.
This bare paragraph sits between the header and footer without needing a <section> wrapper.
A second bare paragraph stacks below it.
The big win: data-layout="grid" wrapping data-layout="regions" articles. Each card auto-places its header, content, and footer without any explicit layout attributes on children.
Optimized for speed with lazy loading and tree-shaking built in.
WCAG 2.1 AA compliant with semantic HTML and ARIA support.
CSS custom properties for full design token control.
Container queries and fluid layouts adapt to any viewport.
data-layout="regions" is structural only (placement and gap). <layout-card> adds visual chrome (borders, shadows, padding) on top of a similar header / content / footer structure.
Content goes here. No visual styling from the layout.
Content goes here. Visual chrome comes from the component.