Project chapter
Olive chapter opener: underlined eyebrow on the left, a big statement on the right and a row of tags that fill one after another with a wipe.
Part of the style
Reed Mono Chapters
7 parts that belong together, with their tokens, type and rules.
https://kitbash.me/components/reed-mono-chapters/chapter/figma.html?palette=93f8092787c99e4d
Use the Figma MCP server (https://mcp.figma.com/mcp). Download https://kitbash.me/components/reed-mono-chapters/chapter/figma.html?palette=93f8092787c99e4d and pass that whole HTML document to the html_to_figma tool, so the part "Project chapter" 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 {
--reed: #783d32;
--bark: #fff4df;
--sand: #60271e;
--night: #fffffd;
--chalk: #481108;
--chalk-dim: #481108;
--shade: rgba(255, 255, 253, 0.28);
--bark-veil: rgba(255, 244, 223, 0.2);
--olive: #e3927c;
--mustard: #641c07;
--harbor: #d18d87;
--sky: #8b635f;
--signal: #88795d;
--skin: #736e65;
--hair: #73706c;
--teal: #bfa18f;
}
</style>
<section class="chapter">
<span class="chapter__corner" aria-hidden="true">p</span>
<div class="chapter__inner">
<h2 class="chapter__eyebrow">North Pier Baths</h2>
<div class="chapter__body">
<p class="chapter__statement">A sea pool at the end of a long pier, now easy to find from the ferry, the tram and the beach. Forty signs, one map, a timetable you can read wet.</p>
<p class="chapter__tags">
<span class="chapter__by">By me:</span>
<span class="chapter__tag"><span class="chapter__tag-text">Signage</span></span>
<span class="chapter__tag"><span class="chapter__tag-text">Wayfinding</span></span>
<span class="chapter__tag"><span class="chapter__tag-text">Website</span></span>
<span class="chapter__tag"><span class="chapter__tag-text">Pictograms</span></span>
</p>
</div>
</div>
</section>
<style>
.chapter {
position: relative;
padding: var(--space-wall) var(--edge) var(--space-16);
background: var(--olive);
color: var(--sand);
}
.chapter__corner {
position: absolute;
top: calc(var(--gutter) - 0.6rem);
left: var(--gutter);
color: var(--signal);
font-family: var(--font-mark);
font-size: 2.2rem;
font-weight: 800;
line-height: 1;
}
.chapter__inner {
display: grid;
grid-template-columns: minmax(0, 1fr) minmax(0, 2.6fr);
gap: var(--space-7);
}
.chapter__eyebrow {
justify-self: start;
align-self: start;
margin: 0.85em 0 0;
padding-bottom: 0.15em;
border-bottom: var(--rule) solid currentColor;
font-size: var(--text-m);
font-weight: 500;
letter-spacing: var(--tracking-caps);
line-height: 1;
text-transform: uppercase;
}
.chapter__statement {
max-width: 22em;
margin: 0 0 var(--space-7);
font-size: var(--text-xl);
letter-spacing: var(--tracking-tight);
line-height: 1.25;
}
.chapter__tags {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: var(--space-2);
margin: 0;
font-size: var(--text-s);
line-height: 1;
}
.chapter__by { margin-right: var(--space-1); }
.chapter__tag {
position: relative;
padding: 0.45em 0.75em;
border: 1px solid var(--sand);
overflow: hidden;
}
.chapter__tag::before {
content: "";
position: absolute;
inset: 0;
background: var(--sand);
transform: scaleX(0);
transform-origin: left;
transition: transform var(--duration-m) var(--ease-out);
transition-delay: calc(var(--order, 0) * 260ms + 200ms);
}
.chapter__tag-text {
position: relative;
transition: color var(--duration-s) linear;
transition-delay: calc(var(--order, 0) * 260ms + 380ms);
}
.chapter.is-seen .chapter__tag::before { transform: scaleX(1); }
.chapter.is-seen .chapter__tag-text { color: var(--olive); }
@media (max-width: 48rem) {
.chapter__inner { grid-template-columns: minmax(0, 1fr); }
.chapter__eyebrow { margin-top: 0; }
}
@media (prefers-reduced-motion: reduce) {
.chapter__tag::before { transform: scaleX(1); transition: none; }
.chapter__tag-text { color: var(--olive); transition: none; }
}
</style>
<script>
(() => {
const seen = new IntersectionObserver((entries) => {
for (const entry of entries) {
if (!entry.isIntersecting) continue;
entry.target.classList.add('is-seen');
seen.unobserve(entry.target);
}
}, { threshold: 0.15 });
for (const root of document.querySelectorAll('.chapter')) {
root.querySelectorAll('.chapter__tag').forEach((tag, order) => tag.style.setProperty('--order', order));
seen.observe(root);
}
})();
</script>