Masthead
The name in 18 px medium over a grey role line, with a pinging status dot and a quiet three-link row.
Part of the style
Pixel Redaction Notes
7 parts that belong together, with their tokens, type and rules.
https://kitbash.me/components/pixel-redaction-notes/masthead/figma.html?palette=f49490a372ade821
Use the Figma MCP server (https://mcp.figma.com/mcp). Download https://kitbash.me/components/pixel-redaction-notes/masthead/figma.html?palette=f49490a372ade821 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: #030303;
--paper-depth: #010101;
--well: #19150a;
--line: #19150a;
--marker: #302710;
--ink: #fffff4;
--ink-soft: #fdf643;
--ink-faint: #7d651f;
--dot: rgba(255, 255, 244, 0.5);
}
</style>
<header class="masthead">
<div class="masthead__inner">
<div class="masthead__id">
<a class="masthead__name" href="#">Mara Quill</a>
<p class="masthead__role">Interface Carpenter</p>
</div>
<nav class="masthead__nav" aria-label="Main">
<a class="masthead__link" href="#">Notes</a>
<a class="masthead__link" href="#">Shelf</a>
<a class="masthead__link" href="#">Write</a>
</nav>
<p class="masthead__status">
<span class="masthead__dot" aria-hidden="true"></span>
Taking on two small projects this spring.
</p>
</div>
</header>
<style>
.masthead {
padding: var(--section-space) var(--edge) 0;
}
.masthead__inner {
display: grid;
grid-template-columns: minmax(0, 1fr) auto;
align-items: start;
gap: var(--space-l) var(--gap);
max-width: var(--measure);
margin: 0 auto;
}
.masthead__id {
min-width: 0;
}
.masthead__name {
display: inline-block;
color: var(--ink);
font-size: var(--text-l);
font-weight: 500;
line-height: 28px;
margin-block: -8px;
padding-block: 8px;
text-decoration: none;
border-radius: var(--radius-s);
}
.masthead__role {
margin: 0;
color: var(--ink-soft);
font-size: var(--text-m);
line-height: var(--leading-label);
}
.masthead__nav {
display: flex;
gap: var(--space-xs);
margin: -10px -12px 0 0;
}
.masthead__link {
display: inline-flex;
align-items: center;
min-height: 44px;
padding: 0 12px;
color: var(--ink-soft);
font-size: var(--text-s);
line-height: var(--leading-small);
text-decoration: underline;
text-decoration-color: color-mix(in srgb, currentColor var(--underline-rest), transparent);
text-underline-offset: var(--underline-offset);
border-radius: var(--radius-s);
transition: text-decoration-color var(--quick) var(--ease), color var(--quick) var(--ease);
}
.masthead__link:hover {
color: var(--ink);
text-decoration-color: color-mix(in srgb, currentColor var(--underline-hover), transparent);
}
.masthead__link:focus-visible,
.masthead__name:focus-visible {
outline: var(--rule) solid var(--ink);
outline-offset: 2px;
}
.masthead__status {
grid-column: 1 / -1;
display: inline-flex;
align-items: center;
gap: 10px;
justify-self: start;
margin: 0;
padding: var(--space-xs) 12px var(--space-xs) 10px;
background: var(--well);
border-radius: var(--radius-l);
color: var(--ink);
font-size: var(--text-s);
line-height: var(--leading-small);
}
.masthead__dot {
position: relative;
flex: none;
width: 8px;
height: 8px;
border-radius: var(--radius-pill);
background: var(--dot);
}
.masthead__dot::after {
content: "";
position: absolute;
inset: 0;
border-radius: inherit;
background: var(--dot);
animation: masthead-ping var(--pulse) cubic-bezier(0, 0, 0.2, 1) infinite;
}
@keyframes masthead-ping {
75%, 100% { transform: scale(2.4); opacity: 0; }
}
@media (max-width: 30rem) {
.masthead__inner {
grid-template-columns: 1fr;
gap: var(--space-m);
}
.masthead__nav {
margin: 0 0 0 -12px;
}
}
@media (prefers-reduced-motion: reduce) {
.masthead__dot::after { animation: none; opacity: 0; }
}
</style>