VERIFICATION-0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF
Evidence-driven engineering systems · Extended localized content for verification and layout resilience
<forma-site-header>
Identity and primary navigation that wraps instead of hiding links, keeps 44px targets, and marks the current page with a non-color rule.
<forma-site-header>patterns/site-header.htmlThe site header is the banner row of a marketing site: a brand link (decorative mark plus a visible name), an optional tagline, and a native nav list of primary destinations. Links are ordinary anchors, so routing and current-page state belong to the site. Forma supplies the wrapping layout, 44px targets, the current-page under-rule driven by aria-current, a single emphasized action link, and the sticky behavior where it is safe.
aria-hidden, so the name is the link's accessible name.The smallest correct markup: the canonical pattern from patterns/site-header.html inside its public tag. Copy this first, then adapt labels, names and state.
Rendered from the canonical pattern file.
Static specimen. Its links point to placeholder destinations that do not exist on this site. Its controls are shown for their markup and appearance and cannot be operated here.
Evidence-driven engineering systems
<forma-site-header class="forma-component-tag">
<div class="forma-site">
<header class="forma-site-header">
<div class="forma-site-header__inner">
<div class="forma-site-header__identity">
<a class="forma-site-header__brand" href="#top"><span class="forma-site-header__mark" aria-hidden="true">EX</span><span class="forma-site-header__name">Example / Product</span></a>
<p class="forma-site-header__tagline">Evidence-driven engineering systems</p>
</div>
<nav class="forma-site-nav" aria-label="Primary">
<ul class="forma-site-nav__list">
<li><a class="forma-site-nav__link" href="#top" aria-current="page">Overview</a></li>
<li><a class="forma-site-nav__link" href="#research">Research</a></li>
<li><a class="forma-site-nav__link" href="#docs">Documentation</a></li>
<li><a class="forma-site-nav__link" data-forma-variant="action" href="#contact">Get in touch</a></li>
</ul>
</nav>
</div>
</header>
</div>
</forma-site-header>
Click or tap the code once to select all of it, then copy.
On a documentation subpage the Documentation link is marked aria-current="true" (the current section, not the exact page). It gets the same persistent under-rule as aria-current="page". No action link is used here, so no destination competes with the page content.
Live demo. 4 native actions work here and are verified by an outcome test.
Behavior at the interface boundary
<forma-site-header class="forma-component-tag">
<div class="forma-site">
<header class="forma-site-header">
<div class="forma-site-header__inner">
<div class="forma-site-header__identity">
<a class="forma-site-header__brand" href="#site-header-current-section-home"><span class="forma-site-header__mark" aria-hidden="true">LM</span><span class="forma-site-header__name">Harbor / Limen</span></a>
<p class="forma-site-header__tagline">Behavior at the interface boundary</p>
</div>
<nav class="forma-site-nav" aria-label="Limen">
<ul class="forma-site-nav__list">
<li><a class="forma-site-nav__link" id="site-header-current-section-home" href="#site-header-current-section-home">Overview</a></li>
<li><a class="forma-site-nav__link" href="#site-header-current-section-home" aria-current="true">Documentation</a></li>
<li><a class="forma-site-nav__link" href="#site-header-current-section-home">Releases</a></li>
</ul>
</nav>
</div>
</header>
</div>
</forma-site-header>
Click or tap the code once to select all of it, then copy.
A long compound product name and no tagline. The name wraps inside the identity group rather than truncating, and the navigation drops below the identity when both no longer fit on one row.
Live demo. 6 native actions work here and are verified by an outcome test.
<forma-site-header class="forma-component-tag">
<div class="forma-site">
<header class="forma-site-header">
<div class="forma-site-header__inner">
<div class="forma-site-header__identity">
<a class="forma-site-header__brand" href="#site-header-long-brand-name-top"><span class="forma-site-header__mark" aria-hidden="true">TR</span><span class="forma-site-header__name">Example Harbor / Tutoris Research Publications</span></a>
</div>
<nav class="forma-site-nav" aria-label="Tutoris">
<ul class="forma-site-nav__list">
<li><a class="forma-site-nav__link" id="site-header-long-brand-name-top" href="#site-header-long-brand-name-top" aria-current="page">Publications</a></li>
<li><a class="forma-site-nav__link" href="#site-header-long-brand-name-top">Methods</a></li>
<li><a class="forma-site-nav__link" href="#site-header-long-brand-name-top">Datasets</a></li>
<li><a class="forma-site-nav__link" href="#site-header-long-brand-name-top">About</a></li>
<li><a class="forma-site-nav__link" data-forma-variant="action" href="#site-header-long-brand-name-top">Subscribe</a></li>
</ul>
</nav>
</div>
</header>
</div>
</forma-site-header>
Click or tap the code once to select all of it, then copy.
Each mobile example renders in its own document inside a real narrow viewport, so Forma's media and container queries run exactly as they would on a phone. Choose a width to compare.
The canonical pattern in a true 320px viewport, the minimum width every Forma component must support without page-level horizontal scrolling.
Static specimen. Its links point to placeholder destinations that do not exist on this site. Its controls are shown for their markup and appearance and cannot be operated here.
Forma components have no JavaScript API. Their public contract is the markup: native elements and attributes you write, and the CSS hooks below. The CSS hook table is generated from the built stylesheet, so it always matches the shipped implementation.
| Attribute | On | Values | Default | Description |
|---|---|---|---|---|
aria-label | nav.forma-site-nav | string | — | Names the navigation landmark. Use "Primary" and give any other nav on the page a different name. |
aria-current | a.forma-site-nav__link | page | true | absent | page for the exact current page, true for the current section on a subpage. Mark only one link. |
aria-hidden | span.forma-site-header__mark | true | — | Required. The mark is decorative; the visible name is the brand link's accessible name. |
href | a | URL | — | Ordinary navigation links; the site owns routing. |
| Hook | Kind | Values or default | Description |
|---|---|---|---|
.forma-site-header | Block class | — | Banner root. Draws the bottom rule and a translucent, blurred page background, and is the forma-site-header size container. Sticky at 40rem wide and 36rem tall or more. |
.forma-site-header__brand | Element class | — | Brand link with a 44px minimum height; underlines on hover. |
.forma-site-header__identity | Element class | — | Groups the brand link and optional tagline; wraps internally. |
.forma-site-header__inner | Element class | — | Wrapping flex row, capped at the maximum layout width with fluid gutters, that places identity and navigation at opposite ends. |
.forma-site-header__mark | Element class | — | Square decorative mark on the inverse surface. Always aria-hidden="true". |
.forma-site-header__name | Element class | — | Visible brand name. Wraps anywhere rather than truncating and never hides. |
.forma-site-header__tagline | Element class | — | Optional supplementary line in the mono label size. Hidden when the header is narrower than 56rem. |
.forma-site-nav | Block class | — | The navigation landmark element. |
.forma-site-nav__link | Element class | — | Navigation link: 44px minimum height, no underline, and a transparent bottom rule that shows on hover and when current. |
.forma-site-nav__list | Element class | — | Unstyled list that wraps its links and aligns them to the inline end. |
[aria-current] | Attribute hook | "page", "true" | page or true on a navigation link draws a persistent strong under-rule (Highlight in forced colors). |
[data-forma-variant] | Attribute hook | "action" | action on at most one navigation link renders it with the tone's action background and text colors, as the site's main conversion. |
| Keys | Result |
|---|---|
| Tab / Shift+Tab | Moves through the brand link and navigation links in source order. |
| Enter | Follows the focused link (native link behavior). |
| State | How it is expressed | Presentation |
|---|---|---|
| Default | no attributes | Link text in the tone's text color with a transparent under-rule. |
| Hover | :hover | The under-rule turns the accent color; the brand link underlines; the action link shifts to the action hover background. |
| Current | aria-current="page" or "true" | A persistent strong under-rule marks the current destination. |
| Focus | :focus-visible | The shell's outline and halo ring surround the focused link. |
| Action | data-forma-variant="action" | Filled link that reads as the primary conversion; bordered in forced colors. |
| Sticky | @media (min-width: 40rem) and (min-height: 36rem) | The header sticks to the top of the viewport; anchor targets get scroll padding below it. |
nav with a list of anchors; nothing is hidden at narrow widths.aria-current, and uses Highlight for it in forced colors.aria-current on exactly one link and keep it accurate for the rendered page.aria-hidden="true" and give the brand link a meaningful visible name.data-forma-variant="action" on at most one link.overflow-wrap: anywhere and never hides.min-width: 40rem and min-height: 36rem..forma-site.Generated fault-injection specimens expose content, spacing, color-cue, and reduced-effective-contrast risks. They screen presentation robustness as engineering screens without claiming human-subject validation.