Masthead
The capital bitmap wordmark, a one-line tagline, a parenthesised link and a small pixel-grid brand mark at the right.
Part of the style
Pixel Caps Manuscript
6 parts that belong together, with their tokens, type and rules.
https://kitbash.me/components/pixel-caps-manuscript/masthead/figma.html?palette=bb1d56ab5c0d2d8a
Use the Figma MCP server (https://mcp.figma.com/mcp). Download https://kitbash.me/components/pixel-caps-manuscript/masthead/figma.html?palette=bb1d56ab5c0d2d8a 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: #ffffff;
--ink: #59121b;
--ink-mute: #8b8167;
--rule-mute: #c5bda9;
--paper-wash: #f7f6f4;
}
</style>
<header class="masthead">
<div class="masthead__lead">
<h1 class="masthead__wordmark">Blackout Desk</h1>
<p class="masthead__tagline">Every old page is hiding a poem. Keep the words you want.</p>
<a class="masthead__link" href="#poems">(see the poems people kept)</a>
</div>
<a class="masthead__brand" href="#" aria-label="Ostra, home">
<svg class="masthead__mark" viewBox="0 0 30 30" width="30" height="30" aria-hidden="true">
<rect x="1" y="1" width="28" height="28" fill="none" stroke="currentColor" stroke-width="2" />
<rect x="6" y="6" width="5" height="5" fill="currentColor" />
<rect x="19" y="6" width="5" height="5" fill="currentColor" />
<rect x="6" y="12.5" width="18" height="5" fill="currentColor" />
<rect x="12.5" y="19" width="5" height="5" fill="currentColor" />
</svg>
<span class="masthead__name">Ostra</span>
</a>
</header>
<style>
.masthead {
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: var(--gap);
padding: var(--space-xl) var(--edge) var(--space-xl);
}
.masthead__wordmark {
margin: 0 0 var(--space-m);
font-family: var(--font-display);
font-size: var(--display-xl);
font-weight: 400;
line-height: 1;
letter-spacing: var(--track-caps);
text-transform: uppercase;
}
.masthead__tagline {
max-width: 34ch;
margin: 0 0 var(--space-s);
font-family: var(--font-display);
font-size: var(--text-l);
line-height: 1.4;
}
.masthead__link {
display: inline-flex;
align-items: center;
min-height: var(--tap);
color: inherit;
font-family: var(--font-display);
font-size: var(--text-m);
text-decoration: underline;
text-decoration-thickness: var(--rule-thin);
text-underline-offset: 3px;
transition: text-decoration-thickness var(--quick) var(--ease);
}
.masthead__link:hover,
.masthead__link:focus-visible {
text-decoration-thickness: var(--rule);
}
.masthead__brand {
display: flex;
flex: none;
align-items: center;
gap: var(--space-s);
min-height: var(--tap);
padding-left: var(--space-m);
border-left: var(--rule-thin) solid var(--ink);
color: inherit;
text-decoration: none;
}
.masthead__name {
font-family: var(--font-display);
font-size: var(--display-m);
line-height: 1;
}
.masthead__mark {
transition: transform var(--step) var(--ease);
}
.masthead__brand:hover .masthead__mark,
.masthead__brand:focus-visible .masthead__mark {
transform: rotate(90deg);
}
@media (max-width: 40rem) {
.masthead {
flex-direction: column-reverse;
padding-top: var(--space-l);
}
.masthead__brand {
align-self: flex-end;
}
.masthead__wordmark {
font-size: clamp(3rem, 2rem + 6vw, 4rem);
line-height: 0.95;
}
}
</style>