Mark and standfirst
A large orange mark, a heavy tight title, a big grey standfirst and two orange pills, rising in one after another at load.
Part of the style
Charcoal Tile Directory
7 parts that belong together, with their tokens, type and rules.
https://kitbash.me/components/charcoal-tile-directory/hero/figma.html?type=matted-dark-console
Use the Figma MCP server (https://mcp.figma.com/mcp). Download https://kitbash.me/components/charcoal-tile-directory/hero/figma.html?type=matted-dark-console and pass that whole HTML document to the html_to_figma tool, so the part "Mark and standfirst" lands as editable layers in my open Figma file. Fonts come from Google Fonts: if a face is missing in Figma, pick the closest one.
Code
<style>
/* Goes after the pack's base.css */
@import url("https://fonts.googleapis.com/css2?family=Geist:wght@400;500;600&family=Geist+Mono:wght@400;500&display=swap");
:root {
--font-display: "Geist", system-ui, sans-serif;
--font-body: "Geist", system-ui, sans-serif;
}
</style>
<section class="hero">
<div class="hero__inner">
<svg class="hero__mark hero__item" viewBox="0 0 40 40" role="img" aria-label="Oddment">
<path d="M12 6h18a6 6 0 0 1 6 6v16a6 6 0 0 1-6 6H12L4 25.5v-11Z" fill="var(--accent)"/>
<circle cx="13" cy="20" r="3.4" fill="var(--paper)"/>
<path d="M21 15h9M21 20h9M21 25h5" stroke="var(--paper)" stroke-width="2.6" stroke-linecap="round"/>
</svg>
<h1 class="hero__title hero__item">Oddment</h1>
<p class="hero__lede hero__item">Handpicked objects, odd furniture, glazed things and printed matter, tagged and shelved for collectors, makers and the merely curious.</p>
<div class="hero__actions hero__item">
<a class="hero__pill" href="#">Suggest</a>
<a class="hero__pill" href="#">Open a shelf</a>
</div>
<p class="hero__count hero__item"><span class="hero__dot" aria-hidden="true"></span>412 objects shelved, 9 added this week</p>
</div>
</section>
<style>
.hero {
padding: clamp(72px, 12vw, 140px) var(--edge) var(--section-space);
}
.hero__inner {
width: min(100%, var(--page-width));
margin: 0 auto;
}
.hero__mark {
width: clamp(72px, 10vw, 104px);
height: auto;
margin-bottom: var(--space-l);
}
.hero__title {
margin: 0 0 var(--space-m);
font-family: var(--font-display);
font-size: var(--display-l);
font-weight: 700;
line-height: 1.02;
letter-spacing: var(--track-display);
}
.hero__lede {
max-width: 30em;
margin: 0 0 var(--space-l);
color: var(--ink);
font-size: clamp(18px, 2.2vw, var(--text-l));
line-height: 1.34;
}
.hero__actions {
display: flex;
flex-wrap: wrap;
gap: var(--space-s);
}
.hero__pill {
display: inline-flex;
align-items: center;
min-height: 48px;
padding: 0 22px;
border-radius: var(--radius-round);
background: var(--accent);
color: var(--on-accent);
font-size: var(--text-m);
font-weight: 600;
text-decoration: none;
transition: transform var(--quick) var(--ease-press), background-color var(--quick) var(--ease-press);
}
.hero__pill:hover { background: var(--accent-press); }
.hero__pill:active { transform: scale(0.96); }
.hero__pill:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.hero__count {
display: flex;
align-items: center;
gap: var(--space-s);
margin: var(--space-xl) 0 0;
color: var(--ink-soft);
font-size: var(--text-s);
}
.hero__dot {
width: 8px;
height: 8px;
border-radius: var(--radius-round);
background: var(--accent);
animation: hero-blink 2.4s var(--ease-std) infinite;
}
.hero__item {
animation: hero-enter 700ms var(--ease) both;
animation-delay: calc(var(--order, 0) * 90ms + 120ms);
}
.hero__count.hero__item { animation-name: hero-enter; }
@keyframes hero-enter {
from { opacity: 0; transform: translateY(16px); }
}
@keyframes hero-blink {
50% { opacity: 0.25; }
}
@media (prefers-reduced-motion: reduce) {
.hero__item, .hero__dot { animation: none; }
}
</style>
<script>
(() => {
for (const hero of document.querySelectorAll('.hero')) {
hero.querySelectorAll('.hero__item').forEach((item, order) => item.style.setProperty('--order', order));
}
})();
</script>