Section header
The standard title for any section: a heading with a short accent bar under it, an intro line and an optional button that links to the full list. Open every section with it so the page reads as one system. On a dark band it flips to white by itself.
<section class="blk-section" aria-labelledby="blk-head-title">
<div class="blk-container">
<header class="blk-head">
<div class="blk-head__main">
<h2 id="blk-head-title">Section title</h2>
<p>One or two sentences that say what this section is for and why someone should keep reading.</p>
</div>
<a class="blk-btn blk-btn--outline blk-head__btn" href="#">View all</a>
</header>
<!-- Section content goes here -->
</div>
</section>.blk-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; margin-bottom: clamp(26px, 4vw, 42px); }
.blk-head__main { max-width: 52rem; }
.blk-head__main h2::after { content: ""; display: block; width: 64px; height: 3px; border-radius: 2px; background: var(--blk-accent); margin-top: 16px; }
.blk-head__main p { font-family: var(--blk-font-heading); font-weight: 400; font-size: clamp(1.12rem, 1.6vw, 1.32rem); line-height: 1.5; color: var(--blk-muted); margin-top: 16px; }
.blk-head__btn { flex: 0 0 auto; white-space: nowrap; }
.blk-dark .blk-head__main h2 { color: var(--blk-on-dark); }
.blk-dark .blk-head__main h2::after { background: var(--blk-on-dark); }
.blk-dark .blk-head__main p { color: var(--blk-on-dark-muted); }
@media (max-width: 720px) { .blk-head { flex-direction: column; align-items: flex-start; } }How to customise it
- Change the title and the single intro sentence. Keep the intro to one or two sentences.
- The accent bar is drawn by CSS (
.blk-head__main h2::after), so it follows--blk-accent. Do not add an image or an eyebrow label above the title. - Remove the button for a section that has no page to link to. The header then centres on the text.
- Use the outline button for a link to another page and keep the filled button for the one main action on the page.
Tokens it reads
--blk-accent--blk-heading--blk-muted--blk-font-heading--blk-on-dark--blk-on-dark-mutedAdd the "Section header" block from Product Scope Blocks (https://resources.productscope.uk/blocks/blocks/section-header) to my page. Link https://resources.productscope.uk/blocks/blocks/kit/blocks.css once. Paste the HTML from https://resources.productscope.uk/blocks/blocks/kit/blocks/section-header.html and replace the placeholder text with my real content. Do not change the class names, add inline styles or add scripts. To change colours or fonts, override the --blk- variables in my own CSS. Do not invent facts, clients or numbers.