Masthead
The wordmark drawn to the exact width of the page on white, then a violet band with one centred statement in small serif capitals and six region names in two columns of large ones. Region names turn white in hand and stack into one column on phones.
Part of the style
Violet Difference
7 parts that belong together, with their tokens, type and rules.
https://kitbash.me/components/violet-difference/masthead/figma.html?palette=65114e29832eb252
Use the Figma MCP server (https://mcp.figma.com/mcp). Download https://kitbash.me/components/violet-difference/masthead/figma.html?palette=65114e29832eb252 and pass that whole HTML document to the html_to_figma tool, so the part "Masthead" 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 */
:root {
--paper: #71413d;
--ink: #faf4eb;
--idle: #8a5e5a;
--tray: #784945;
--plate: #a47e7a;
--violet: #7c6c54;
}
</style>
<header class="masthead">
<a class="masthead__wordmark" href="#" aria-label="Keldstone, home">
<svg class="masthead__type" viewBox="6.9 0 602.4 73.1" preserveAspectRatio="none" aria-hidden="true" focusable="false">
<text x="0" y="71.4" textLength="614.35" lengthAdjust="spacingAndGlyphs">KELDSTONE</text>
</svg>
</a>
<div class="masthead__band">
<p class="masthead__statement">Every quarry we carry is worked by fewer than twelve people, cut by wire and wedge, and run by someone who can name each bed in the face.</p>
<ul class="masthead__regions" aria-label="Where the stone comes from">
<li><a class="masthead__region" href="#">Alentejo</a></li>
<li><a class="masthead__region" href="#">Brittany</a></li>
<li><a class="masthead__region" href="#">Connemara</a></li>
<li><a class="masthead__region" href="#">Galicia</a></li>
<li><a class="masthead__region" href="#">Pembrokeshire</a></li>
<li><a class="masthead__region" href="#">Trás-os-Montes</a></li>
</ul>
</div>
</header>
<style>
.masthead {
background: var(--paper);
}
/* The wordmark is drawn at 100px in a box exactly as big as its ink, then pulled to the full width of the page. */
.masthead__wordmark {
display: block;
padding: var(--gutter);
color: var(--ink);
}
.masthead__type {
display: block;
width: 100%;
aspect-ratio: 602.4 / 73.1;
fill: currentColor;
font: 800 100px var(--font-mark);
}
.masthead__wordmark:focus-visible {
outline: var(--flag) solid var(--violet);
outline-offset: calc(-1 * var(--flag));
}
.masthead__band {
padding: var(--space-l) var(--gutter);
background: var(--violet);
font-family: var(--font-caps);
line-height: var(--leading-caps);
text-align: center;
text-transform: uppercase;
}
.masthead__statement {
max-width: 71rem;
margin: 0 auto var(--space-l);
font-size: var(--caps-s);
text-wrap: balance;
}
.masthead__regions {
display: grid;
grid-template-rows: repeat(3, auto);
grid-auto-flow: column;
grid-auto-columns: 1fr;
margin: 0;
padding: 0;
list-style: none;
font-size: var(--caps-xl);
}
.masthead__region {
display: inline-flex;
align-items: center;
min-height: var(--tap);
color: var(--ink);
text-decoration: none;
transition: color var(--time) var(--ease);
}
.masthead__region:hover,
.masthead__region:focus-visible {
color: var(--paper);
outline: none;
}
@media (max-width: 48rem) {
.masthead__regions {
display: block;
}
.masthead__region {
padding: var(--space-s) 0;
}
}
@media (prefers-reduced-motion: reduce) {
.masthead__region {
transition-duration: 0s;
}
}
</style>