Pixel Caps Manuscript
Black ink on a warm putty page: a thin bitmap face in capitals for the name and the step labels, a plain grotesk for reading, and text set inside square 2 px window frames with a title bar and three round dots. It suits small writing tools, step-by-step makers, reading experiments and quiet literary projects.
Parts
Masthead
The capital bitmap wordmark, a one-line tagline, a parenthesised link and a small pixel-grid brand mark at the right.
Code
React For Figma<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>
Erasure workbench
The signature tool: a three-step rail beside a framed story window; pick words, black out the rest, keep the poem. On phones the rail folds into a Step n / 3 bar.
Code
React For Figma<section class="workbench" data-stage="1" aria-label="Erasure workbench">
<div class="workbench__side">
<ol class="workbench__rail">
<li class="workbench__step is-current">
<span class="workbench__dot" aria-hidden="true"></span>
<h3 class="workbench__label">Step 1</h3>
<p class="workbench__hint">Read the page and find the story inside it.</p>
<button class="workbench__action" type="button" data-step="1">Find your words</button>
</li>
<li class="workbench__step">
<span class="workbench__dot" aria-hidden="true"></span>
<h3 class="workbench__label">Step 2</h3>
<p class="workbench__hint">Tap the words to keep, then black out the rest.</p>
<button class="workbench__action" type="button" data-step="2" disabled>Black out the rest</button>
</li>
<li class="workbench__step">
<span class="workbench__dot" aria-hidden="true"></span>
<h3 class="workbench__label">Step 3</h3>
<p class="workbench__hint">Keep your poem and leave the page for the next reader.</p>
<button class="workbench__action" type="button" data-step="3" disabled>Keep your poem</button>
</li>
</ol>
<button class="workbench__again" type="button">
<svg class="workbench__spin" viewBox="0 0 16 16" width="16" height="16" aria-hidden="true"><path d="M13 6.5A5.2 5.2 0 0 0 3.6 4.4M3 9.5a5.2 5.2 0 0 0 9.4 2.1" fill="none" stroke="currentColor" stroke-width="1.6" /><path d="M3 1.8v3.4h3.4M13 14.2v-3.4H9.6" fill="none" stroke="currentColor" stroke-width="1.6" /></svg>
<span>Start over</span>
</button>
</div>
<article class="workbench__window is-loading">
<header class="workbench__bar">
<h2 class="workbench__title is-shown" data-page="0">Comet Over the Market</h2>
<h2 class="workbench__title" data-page="1">The Almanac for May</h2>
<h2 class="workbench__title" data-page="2">Notice to the Ferry Town</h2>
<div class="workbench__dots" role="group" aria-label="Pages">
<button class="workbench__pager is-current" type="button" data-page="0" aria-label="Page 1" aria-pressed="true"></button>
<button class="workbench__pager" type="button" data-page="1" aria-label="Page 2" aria-pressed="false"></button>
<button class="workbench__pager" type="button" data-page="2" aria-label="Page 3" aria-pressed="false"></button>
</div>
</header>
<div class="workbench__body">
<div class="workbench__loader" aria-hidden="true"><span></span><span></span><span></span></div>
<div class="workbench__page is-shown" data-page="0">
<p>The night the comet came, the whole market stayed open past the lamps. Fishmongers left their ice to melt, the bread woman climbed onto her own cart, and the clockmaker stopped every clock in his window so that nobody could say how late it was.</p>
<p>We had been told it would burn the sky, or poison the wells, or bring back everyone we had lost. It did none of those things. It hung there over the church roof like a pale thread pulled loose from a coat, and the children tried to reach it with brooms.</p>
<p>My grandmother sold more candles that night than in the whole of winter. She said a light in the hand is worth a light in the sky, and she would not look up, not once, until the square was empty and the last candle gone.</p>
<p>In the morning the paper called it a great wonder and a terrible warning on the same page. I cut out both halves and kept them in the tin with the buttons, and some years later I could not remember which one I had believed.</p>
</div>
<div class="workbench__page" data-page="1">
<p>Sow beans when the elm leaf is the size of a mouse's ear. Mend the fence before the moon is full, for a full moon makes the cattle bold and the neighbours generous with advice.</p>
<p>Expect rain on the third, a fair wind on the ninth and a quarrel near the end of the month that will turn out to be about nothing at all. Keep the cellar door shut and the letters answered.</p>
<p>The swallows return. The bees swarm. Somebody in the house will learn to whistle and will not stop until June.</p>
</div>
<div class="workbench__page" data-page="2">
<p>Notice is given that the ferry will cross twice daily, weather allowing, and once on Sundays for the pleasure of the river. Passengers are asked to keep their hats on and their opinions low.</p>
<p>Goods left on the landing for more than three tides become the property of the gulls. Lost children are kept at the toll house and returned with a biscuit. The ferryman does not sing on request, but he does sing.</p>
</div>
</div>
</article>
<div class="workbench__phonebar">
<p class="workbench__count">Step <span class="workbench__now">1</span> / 3</p>
<button class="workbench__next" type="button">Find your words</button>
<button class="workbench__reset" type="button" aria-label="Start over">
<svg class="workbench__spin" viewBox="0 0 16 16" width="18" height="18" aria-hidden="true"><path d="M13 6.5A5.2 5.2 0 0 0 3.6 4.4M3 9.5a5.2 5.2 0 0 0 9.4 2.1" fill="none" stroke="currentColor" stroke-width="1.6" /><path d="M3 1.8v3.4h3.4M13 14.2v-3.4H9.6" fill="none" stroke="currentColor" stroke-width="1.6" /></svg>
</button>
</div>
</section>
<style>
.workbench {
display: grid;
grid-template-columns: minmax(15rem, 28rem) minmax(0, 1fr);
align-items: start;
gap: var(--gap);
padding: var(--space-l) var(--edge) var(--section-space);
}
/* Rail */
.workbench__rail {
margin: 0;
padding: 0;
list-style: none;
}
.workbench__step {
position: relative;
padding: 0 0 var(--space-xl) calc(var(--dot) + var(--space-l));
color: var(--ink-mute);
transition: color var(--step) var(--ease);
}
.workbench__step:not(:last-child)::before {
content: "";
position: absolute;
top: calc(var(--dot) / 2 + 6px);
bottom: -6px;
left: calc(var(--dot) / 2 - var(--rule) / 2);
width: var(--rule);
background: var(--ink);
}
.workbench__dot {
position: absolute;
top: 6px;
left: 0;
width: var(--dot);
height: var(--dot);
border: var(--rule) solid var(--ink);
border-radius: var(--radius-dot);
background: var(--paper);
transition: background-color var(--step) var(--ease);
}
.workbench__step.is-current,
.workbench__step.is-done {
color: var(--ink);
}
.workbench__step.is-current .workbench__dot,
.workbench__step.is-done .workbench__dot {
background: var(--ink);
}
.workbench__label {
margin: 0 0 var(--space-xs);
font-family: var(--font-display);
font-size: var(--display-m);
font-weight: 400;
line-height: 1.2;
}
.workbench__hint {
margin: 0 0 var(--space-m);
}
.workbench__action,
.workbench__next {
width: 100%;
min-height: var(--tap);
padding: var(--space-s) var(--space-m);
border: var(--rule) solid var(--ink);
border-radius: var(--radius-none);
background: transparent;
color: var(--ink);
font: 500 var(--text-m)/1.2 var(--font-body);
cursor: pointer;
transition: background-color var(--quick) var(--ease), color var(--quick) var(--ease), border-color var(--quick) var(--ease);
}
.workbench__action:hover:not(:disabled),
.workbench__next:hover:not(:disabled),
.workbench__action:focus-visible,
.workbench__next:focus-visible {
background: var(--paper-wash);
outline: none;
}
.workbench__action:active:not(:disabled),
.workbench__next:active:not(:disabled) {
background: var(--ink);
color: var(--paper);
}
.workbench__action:disabled,
.workbench__next:disabled {
border-color: var(--rule-mute);
color: var(--ink-mute);
cursor: default;
}
.workbench__again {
display: flex;
align-items: center;
gap: var(--space-s);
min-height: var(--tap);
margin-left: calc(var(--dot) + var(--space-l));
width: calc(100% - var(--dot) - var(--space-l));
padding: var(--space-s) 0 0;
border: 0;
border-top: var(--rule-thin) solid var(--ink);
background: none;
color: var(--ink);
font: 400 var(--text-s)/1 var(--font-body);
cursor: pointer;
}
.workbench__again:hover span,
.workbench__again:focus-visible span {
text-decoration: underline;
text-underline-offset: 3px;
}
.workbench.is-spinning .workbench__spin {
animation: workbench-spin var(--spin) var(--ease) 1;
}
@keyframes workbench-spin {
to { transform: rotate(-360deg); }
}
/* Window */
.workbench__window {
border: var(--rule) solid var(--ink);
background: var(--paper);
}
.workbench__bar {
display: flex;
align-items: center;
justify-content: space-between;
gap: var(--space-m);
padding: 0 var(--space-s) 0 var(--space-l);
border-bottom: var(--rule) solid var(--ink);
}
.workbench__title {
display: none;
margin: 0;
padding: var(--space-s) 0;
font-family: var(--font-display);
font-size: var(--display-m);
font-weight: 400;
line-height: 1.2;
}
.workbench__title.is-shown {
display: block;
}
.workbench__dots {
display: flex;
flex: none;
}
.workbench__pager {
display: grid;
place-items: center;
width: var(--tap);
height: var(--tap);
margin-inline: calc((var(--tap) - var(--dot) - 12px) / -2);
padding: 0;
border: 0;
background: none;
cursor: pointer;
}
.workbench__pager::before {
content: "";
width: var(--dot);
height: var(--dot);
border: var(--rule) solid var(--ink);
border-radius: var(--radius-dot);
transition: background-color var(--quick) var(--ease);
}
.workbench__pager.is-current::before,
.workbench__pager:hover::before {
background: var(--ink);
}
.workbench__pager:disabled {
cursor: default;
}
.workbench__pager:disabled:not(.is-current)::before {
background: none;
}
.workbench__body {
position: relative;
padding: var(--space-l);
}
.workbench__page {
display: none;
}
.workbench__page.is-shown {
display: block;
animation: workbench-in var(--step) var(--ease);
}
.workbench__page p {
max-width: 68ch;
margin: 0 0 var(--space-m);
}
.workbench__page p:last-child {
margin-bottom: 0;
}
@keyframes workbench-in {
from { opacity: 0; }
}
.workbench__loader {
display: none;
}
.workbench__window.is-loading .workbench__page {
visibility: hidden;
}
.workbench__window.is-loading .workbench__loader {
position: absolute;
inset: var(--space-l);
display: grid;
align-content: start;
gap: var(--space-m);
}
.workbench__loader span {
height: var(--space-m);
background: var(--paper-wash);
animation: workbench-pulse var(--pulse) ease-in-out infinite;
}
.workbench__loader span:nth-child(2) { width: 86%; animation-delay: 160ms; }
.workbench__loader span:nth-child(3) { width: 62%; animation-delay: 320ms; }
@keyframes workbench-pulse {
50% { opacity: 0.35; }
}
/* Words */
.workbench__word {
display: inline;
padding: 0;
border: 0;
background: transparent;
color: inherit;
font: inherit;
text-align: inherit;
transition: background-color var(--step) var(--ease), color var(--step) var(--ease), box-shadow var(--step) var(--ease);
transition-delay: calc(var(--order, 0) * 4ms);
}
.workbench[data-stage="2"] .workbench__word {
cursor: pointer;
}
.workbench[data-stage="2"] .workbench__word:hover {
box-shadow: inset 0 -2px 0 var(--ink);
}
.workbench__word:focus-visible {
outline: var(--rule) solid var(--ink);
outline-offset: 1px;
}
.workbench__word.is-kept {
background: var(--ink);
color: var(--paper);
box-shadow: 0.15em 0 0 var(--ink), -0.15em 0 0 var(--ink);
}
.workbench[data-stage="3"] .workbench__word,
.workbench[data-stage="4"] .workbench__word {
background: var(--ink);
color: transparent;
box-shadow: 0.3em 0 0 var(--ink);
}
.workbench[data-stage="3"] .workbench__word.is-kept,
.workbench[data-stage="4"] .workbench__word.is-kept {
background: var(--paper);
color: var(--ink);
box-shadow: 0.15em 0 0 var(--paper), -0.15em 0 0 var(--paper);
font-weight: 500;
}
/* Phone bar */
.workbench__phonebar {
display: none;
}
@media (max-width: 48rem) {
.workbench {
grid-template-columns: minmax(0, 1fr);
gap: 0;
padding-bottom: 0;
}
.workbench__side {
display: none;
}
.workbench__phonebar {
position: sticky;
bottom: 0;
display: grid;
grid-template-columns: auto minmax(0, 1fr) var(--tap);
align-items: center;
gap: var(--space-m);
margin: var(--space-l) calc(var(--edge) * -1) 0;
padding: var(--space-s) var(--edge);
border-top: var(--rule) solid var(--ink);
background: var(--paper);
}
.workbench__count {
margin: 0;
font-family: var(--font-display);
font-size: var(--display-l);
line-height: 1;
white-space: nowrap;
}
.workbench__next {
font-size: var(--text-s);
}
.workbench__reset {
display: grid;
place-items: center;
width: var(--tap);
height: var(--tap);
padding: 0;
border: 0;
background: none;
color: var(--ink);
cursor: pointer;
}
.workbench__bar {
padding-left: var(--space-m);
}
.workbench__title {
font-size: var(--text-l);
}
.workbench__body {
max-height: clamp(20rem, 100vw, 30rem);
overflow-y: auto;
padding: var(--space-m) var(--space-l) var(--space-l);
}
}
@media (prefers-reduced-motion: reduce) {
.workbench__loader span,
.workbench__page.is-shown,
.workbench.is-spinning .workbench__spin {
animation: none;
}
.workbench__word {
transition: none;
}
}
</style>
<script>
(() => {
for (const root of document.querySelectorAll('.workbench')) {
const steps = [...root.querySelectorAll('.workbench__step')];
const actions = [...root.querySelectorAll('.workbench__action')];
const pagers = [...root.querySelectorAll('.workbench__pager')];
const titles = [...root.querySelectorAll('.workbench__title')];
const pages = [...root.querySelectorAll('.workbench__page')];
const windowBox = root.querySelector('.workbench__window');
const now = root.querySelector('.workbench__now');
const next = root.querySelector('.workbench__next');
const nextLabels = actions.map((button) => button.textContent);
let page = 0;
const reduce = matchMedia('(prefers-reduced-motion: reduce)').matches;
setTimeout(() => windowBox.classList.remove('is-loading'), reduce ? 0 : 700);
const kept = () => pages[page].querySelectorAll('.workbench__word.is-kept').length;
const wrapWords = (container) => {
if (container.dataset.wrapped) return;
container.dataset.wrapped = 'yes';
let order = 0;
for (const paragraph of container.querySelectorAll('p')) {
const words = paragraph.textContent.split(/(\s+)/);
paragraph.textContent = '';
for (const part of words) {
if (!part) continue;
if (/^\s+$/.test(part)) { paragraph.append(part); continue; }
const word = document.createElement('button');
word.type = 'button';
word.className = 'workbench__word';
word.setAttribute('aria-pressed', 'false');
word.style.setProperty('--order', Math.min(order++, 120));
word.textContent = part;
paragraph.append(word);
}
}
};
const setStage = (stage) => {
root.dataset.stage = String(stage);
steps.forEach((step, index) => {
step.classList.toggle('is-done', index + 1 < stage);
step.classList.toggle('is-current', index + 1 === stage);
});
actions[0].disabled = stage !== 1;
actions[1].disabled = stage !== 2 || kept() === 0;
actions[2].disabled = stage !== 3;
actions[2].textContent = stage === 4 ? 'Poem kept' : nextLabels[2];
pagers.forEach((pager) => { pager.disabled = stage !== 1; });
now.textContent = String(Math.min(stage, 3));
next.textContent = stage === 4 ? 'Poem kept' : nextLabels[stage - 1];
next.disabled = stage === 4 || (stage === 2 && kept() === 0);
for (const word of pages[page].querySelectorAll('.workbench__word')) word.disabled = stage !== 2;
};
const advance = () => {
const stage = Number(root.dataset.stage);
if (stage === 1) wrapWords(pages[page]);
if (stage < 4) setStage(stage + 1);
};
const showPage = (index) => {
page = index;
pagers.forEach((pager, i) => {
pager.classList.toggle('is-current', i === index);
pager.setAttribute('aria-pressed', String(i === index));
});
titles.forEach((title, i) => title.classList.toggle('is-shown', i === index));
pages.forEach((item, i) => item.classList.toggle('is-shown', i === index));
};
const reset = () => {
for (const word of root.querySelectorAll('.workbench__word.is-kept')) {
word.classList.remove('is-kept');
word.setAttribute('aria-pressed', 'false');
}
setStage(1);
root.classList.remove('is-spinning');
void root.offsetWidth;
root.classList.add('is-spinning');
};
root.addEventListener('animationend', (event) => {
if (event.animationName === 'workbench-spin') root.classList.remove('is-spinning');
});
actions.forEach((button) => button.addEventListener('click', advance));
next.addEventListener('click', advance);
root.querySelector('.workbench__again').addEventListener('click', reset);
root.querySelector('.workbench__reset').addEventListener('click', reset);
pagers.forEach((pager, index) => pager.addEventListener('click', () => showPage(index)));
root.querySelector('.workbench__body').addEventListener('click', (event) => {
const word = event.target.closest('.workbench__word');
if (!word || root.dataset.stage !== '2') return;
const on = word.classList.toggle('is-kept');
word.setAttribute('aria-pressed', String(on));
setStage(2);
});
}
})();
</script>
Kept poems
Window-framed cards, each an old printed sheet in grey multiplied into the putty with black bars across it and the kept words below.
Code
React For Figma<section class="poems" id="poems" aria-labelledby="poems-heading">
<div class="poems__head">
<h2 class="poems__heading" id="poems-heading">Kept this week</h2>
<p class="poems__note">Four pages, four readers, four poems nobody else would have found.</p>
</div>
<ul class="poems__grid">
<li class="poems__card">
<a class="poems__link" href="#">
<span class="poems__bar"><span class="poems__title">Thread Pulled Loose</span><span class="poems__dots" aria-hidden="true"><i></i><i></i><i></i></span></span>
<span class="poems__sheet">
<img class="poems__img" src="assets/comet-sheet.jpg" alt="A printed broadside with a headline, a comet drawn as a long streak and a row of houses at the foot" width="545" height="800" loading="lazy">
<span class="poems__strikes" aria-hidden="true"><i style="--y: 18%; --x: 8%; --w: 70%"></i><i style="--y: 34%; --x: 14%; --w: 58%"></i><i style="--y: 50%; --x: 6%; --w: 80%"></i><i style="--y: 66%; --x: 22%; --w: 50%"></i></span>
</span>
<span class="poems__words">the whole market / stayed open / like a pale thread</span>
<span class="poems__by">kept by reader 0412</span>
</a>
</li>
<li class="poems__card">
<a class="poems__link" href="#">
<span class="poems__bar"><span class="poems__title">Fair Wind, Ninth</span><span class="poems__dots" aria-hidden="true"><i></i><i></i><i></i></span></span>
<span class="poems__sheet">
<img class="poems__img" src="assets/almanac-page.jpg" alt="A small cloth-bound almanac standing open, its covers embroidered with flowers" width="800" height="734" loading="lazy">
<span class="poems__strikes" aria-hidden="true"><i style="--y: 22%; --x: 10%; --w: 64%"></i><i style="--y: 40%; --x: 30%; --w: 56%"></i><i style="--y: 58%; --x: 8%; --w: 72%"></i><i style="--y: 76%; --x: 16%; --w: 44%"></i></span>
</span>
<span class="poems__words">mend the fence / somebody will learn / to whistle</span>
<span class="poems__by">kept by reader 0388</span>
</a>
</li>
<li class="poems__card">
<a class="poems__link" href="#">
<span class="poems__bar"><span class="poems__title">Wings Left Open</span><span class="poems__dots" aria-hidden="true"><i></i><i></i><i></i></span></span>
<span class="poems__sheet">
<img class="poems__img" src="assets/insect-title.jpg" alt="An engraved title page framed by butterflies and moths with open wings" width="800" height="515" loading="lazy">
<span class="poems__strikes" aria-hidden="true"><i style="--y: 24%; --x: 26%; --w: 48%"></i><i style="--y: 42%; --x: 12%; --w: 76%"></i><i style="--y: 60%; --x: 30%; --w: 40%"></i></span>
</span>
<span class="poems__words">nothing at all / turned out / to be about wings</span>
<span class="poems__by">kept by reader 0301</span>
</a>
</li>
<li class="poems__card">
<a class="poems__link" href="#">
<span class="poems__bar"><span class="poems__title">Three Tides</span><span class="poems__dots" aria-hidden="true"><i></i><i></i><i></i></span></span>
<span class="poems__sheet">
<img class="poems__img" src="assets/news-sheet.jpg" alt="A two-page printed news sheet with dense columns, a verse panel and a woodcut scene" width="800" height="589" loading="lazy">
<span class="poems__strikes" aria-hidden="true"><i style="--y: 16%; --x: 6%; --w: 40%"></i><i style="--y: 34%; --x: 52%; --w: 40%"></i><i style="--y: 54%; --x: 10%; --w: 70%"></i><i style="--y: 72%; --x: 24%; --w: 60%"></i></span>
</span>
<span class="poems__words">left on the landing / the ferryman / does sing</span>
<span class="poems__by">kept by reader 0277</span>
</a>
</li>
</ul>
</section>
<style>
.poems {
padding: var(--section-space) var(--edge);
}
.poems__head {
display: flex;
flex-wrap: wrap;
align-items: baseline;
justify-content: space-between;
gap: var(--space-s) var(--gap);
margin-bottom: var(--space-l);
}
.poems__heading {
margin: 0;
font-family: var(--font-display);
font-size: var(--display-l);
font-weight: 400;
line-height: 1.1;
}
.poems__note {
max-width: 40ch;
margin: 0;
color: var(--ink-mute);
}
.poems__grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
gap: var(--gap);
margin: 0;
padding: 0;
list-style: none;
}
.poems__link {
display: flex;
flex-direction: column;
height: 100%;
border: var(--rule) solid var(--ink);
color: inherit;
text-decoration: none;
transition: background-color var(--quick) var(--ease);
}
.poems__link:hover,
.poems__link:focus-visible {
background: var(--paper-wash);
outline: none;
}
.poems__bar {
display: flex;
align-items: center;
justify-content: space-between;
gap: var(--space-s);
padding: var(--space-s) var(--space-s) var(--space-s) var(--space-m);
border-bottom: var(--rule) solid var(--ink);
}
.poems__title {
min-width: 0;
overflow: hidden;
font-family: var(--font-display);
font-size: var(--text-l);
line-height: 1.2;
white-space: nowrap;
text-overflow: ellipsis;
}
.poems__dots {
display: flex;
flex: none;
gap: 3px;
}
.poems__dots i {
width: 10px;
height: 10px;
border: var(--rule) solid var(--ink);
border-radius: var(--radius-dot);
}
.poems__dots i:last-child {
background: var(--ink);
}
.poems__sheet {
position: relative;
display: block;
aspect-ratio: 4 / 5;
margin: var(--space-m) var(--space-m) 0;
overflow: hidden;
background: var(--paper);
}
.poems__img {
width: 100%;
height: 100%;
object-fit: cover;
filter: grayscale(1) contrast(1.35) brightness(1.08);
mix-blend-mode: multiply;
}
.poems__strikes i {
position: absolute;
top: var(--y);
left: var(--x);
width: var(--w);
height: 7%;
background: var(--ink);
transform: scaleX(0.82);
transform-origin: 0 50%;
transition: transform var(--step) var(--ease);
}
.poems__strikes i:nth-child(2) { transition-delay: 40ms; }
.poems__strikes i:nth-child(3) { transition-delay: 80ms; }
.poems__strikes i:nth-child(4) { transition-delay: 120ms; }
.poems__link:hover .poems__strikes i,
.poems__link:focus-visible .poems__strikes i {
transform: scaleX(1);
}
.poems__words {
padding: var(--space-m) var(--space-m) var(--space-xs);
font-weight: 500;
line-height: 1.4;
}
.poems__by {
margin-top: auto;
padding: 0 var(--space-m) var(--space-m);
color: var(--ink-mute);
font-size: var(--text-s);
}
@media (prefers-reduced-motion: reduce) {
.poems__strikes i {
transition: none;
}
}
</style>
Step rail
A standalone how-it-works list on the dotted rail; choosing a step fills the line and the dots up to it.
Code
React For Figma<section class="steps" aria-labelledby="steps-heading">
<h2 class="steps__heading" id="steps-heading">How a page becomes a poem</h2>
<ol class="steps__rail" style="--reach: 1">
<li class="steps__item is-reached">
<button class="steps__pick" type="button" aria-pressed="true">
<span class="steps__dot" aria-hidden="true"></span>
<span class="steps__label">Step 1</span>
</button>
<h3 class="steps__title">Pick a page</h3>
<p class="steps__text">A broadside, an almanac, a notice from a town that no longer exists. Every page we keep is old enough to be anyone's.</p>
</li>
<li class="steps__item">
<button class="steps__pick" type="button" aria-pressed="false">
<span class="steps__dot" aria-hidden="true"></span>
<span class="steps__label">Step 2</span>
</button>
<h3 class="steps__title">Keep a few words</h3>
<p class="steps__text">Read slowly. Tap only the words that belong to you. Everything else turns into a black bar.</p>
</li>
<li class="steps__item">
<button class="steps__pick" type="button" aria-pressed="false">
<span class="steps__dot" aria-hidden="true"></span>
<span class="steps__label">Step 3</span>
</button>
<h3 class="steps__title">Pass it on</h3>
<p class="steps__text">Your poem goes on the wall, and the page goes back in the drawer for the next reader to find something else.</p>
</li>
</ol>
</section>
<style>
.steps {
padding: var(--section-space) var(--edge);
}
.steps__heading {
margin: 0 0 var(--space-xl);
font-family: var(--font-display);
font-size: var(--display-l);
font-weight: 400;
line-height: 1.1;
}
.steps__rail {
position: relative;
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: var(--gap);
margin: 0;
padding: 0;
list-style: none;
}
/* The line runs from the first dot to the last; the black fill grows to the reached dot. */
.steps__rail::before,
.steps__rail::after {
content: "";
position: absolute;
top: calc(var(--tap) / 2 - var(--rule) / 2);
left: calc(var(--dot) / 2);
width: calc((100% - var(--gap) * 2) / 3 * 2 + var(--gap) * 2);
height: var(--rule);
transform-origin: 0 50%;
}
.steps__rail::before {
background: var(--rule-mute);
}
.steps__rail::after {
background: var(--ink);
transform: scaleX(calc((var(--reach) - 1) / 2));
transition: transform var(--step) var(--ease);
}
.steps__item {
position: relative;
z-index: 1;
color: var(--ink-mute);
transition: color var(--step) var(--ease);
}
.steps__item.is-reached {
color: var(--ink);
}
.steps__pick {
display: inline-flex;
align-items: center;
gap: var(--space-m);
min-height: var(--tap);
padding: 0 var(--space-m) 0 0;
border: 0;
background: var(--paper);
color: inherit;
cursor: pointer;
}
.steps__dot {
width: var(--dot);
height: var(--dot);
border: var(--rule) solid currentColor;
border-radius: var(--radius-dot);
background: var(--paper);
transition: background-color var(--step) var(--ease), border-color var(--step) var(--ease);
}
.steps__item.is-reached .steps__dot {
border-color: var(--ink);
background: var(--ink);
}
.steps__label {
font-family: var(--font-display);
font-size: var(--display-m);
line-height: 1;
}
.steps__pick:hover .steps__label,
.steps__pick:focus-visible .steps__label {
text-decoration: underline;
text-decoration-thickness: var(--rule);
text-underline-offset: 4px;
}
.steps__pick:focus-visible {
outline: none;
}
.steps__title {
margin: var(--space-m) 0 var(--space-s);
font-size: var(--text-l);
font-weight: 500;
line-height: 1.3;
}
.steps__text {
max-width: 34ch;
margin: 0;
}
@media (max-width: 48rem) {
.steps__rail {
grid-template-columns: minmax(0, 1fr);
gap: var(--space-l);
}
.steps__rail::before,
.steps__rail::after {
display: none;
}
.steps__item:not(:last-child)::before {
content: "";
position: absolute;
z-index: -1;
top: calc(var(--tap) / 2);
bottom: calc(var(--space-l) * -1 - var(--tap) / 2);
left: calc(var(--dot) / 2 - var(--rule) / 2);
width: var(--rule);
background: var(--rule-mute);
transition: background-color var(--step) var(--ease);
}
.steps__item:has(+ .is-reached)::before {
background: var(--ink);
}
.steps__title,
.steps__text {
margin-left: calc(var(--dot) + var(--space-m));
}
}
</style>
<script>
(() => {
for (const root of document.querySelectorAll('.steps')) {
const rail = root.querySelector('.steps__rail');
const items = [...root.querySelectorAll('.steps__item')];
items.forEach((item, index) => {
item.querySelector('.steps__pick').addEventListener('click', () => {
rail.style.setProperty('--reach', String(index + 1));
items.forEach((other, i) => {
other.classList.toggle('is-reached', i <= index);
other.querySelector('.steps__pick').setAttribute('aria-pressed', String(i === index));
});
});
});
}
})();
</script>
Monday page
A window with a bitmap title bar holding one pitch, a square email field and a square button, with a pulsing waiting dot.
Code
React For Figma<section class="signup">
<div class="signup__window">
<div class="signup__bar">
<h2 class="signup__title">A Page Every Monday</h2>
<span class="signup__dots" aria-hidden="true"><i></i><i></i><i></i></span>
</div>
<div class="signup__body">
<p class="signup__pitch">One old page in your inbox at breakfast. No poem attached: that part is yours. Send back the words you kept and we may pin them up.</p>
<form class="signup__form" novalidate>
<label class="signup__label" for="signup-email">Email address</label>
<div class="signup__row">
<input class="signup__field" id="signup-email" name="email" type="email" required placeholder="you@example.com" autocomplete="email">
<button class="signup__send" type="submit">Send me a page</button>
</div>
<p class="signup__status" role="status"><span class="signup__wait" aria-hidden="true"></span><span class="signup__message">Next page goes out Monday, 7:00.</span></p>
</form>
</div>
</div>
</section>
<style>
.signup {
padding: var(--section-space) var(--edge);
}
.signup__window {
max-width: 46rem;
border: var(--rule) solid var(--ink);
}
.signup__bar {
display: flex;
align-items: center;
justify-content: space-between;
gap: var(--space-m);
padding: var(--space-s) var(--space-m) var(--space-s) var(--space-l);
border-bottom: var(--rule) solid var(--ink);
}
.signup__title {
margin: 0;
font-family: var(--font-display);
font-size: var(--display-m);
font-weight: 400;
line-height: 1.2;
}
.signup__dots {
display: flex;
flex: none;
gap: 4px;
}
.signup__dots i {
width: var(--dot);
height: var(--dot);
border: var(--rule) solid var(--ink);
border-radius: var(--radius-dot);
}
.signup__dots i:last-child {
background: var(--ink);
}
.signup__body {
padding: var(--space-l);
}
.signup__pitch {
max-width: 52ch;
margin: 0 0 var(--space-l);
}
.signup__label {
display: block;
margin-bottom: var(--space-s);
font-family: var(--font-display);
font-size: var(--text-m);
}
.signup__row {
display: flex;
flex-wrap: wrap;
gap: var(--space-s);
}
.signup__field {
flex: 1 1 14rem;
min-width: 0;
min-height: var(--tap);
padding: var(--space-s) var(--space-m);
border: var(--rule) solid var(--ink);
border-radius: var(--radius-none);
background: transparent;
color: var(--ink);
font: 400 var(--text-m)/1.2 var(--font-body);
}
.signup__field::placeholder {
color: var(--ink-mute);
}
.signup__field:focus {
outline: none;
background: var(--paper-wash);
}
.signup__field.is-wrong {
border-style: dashed;
}
.signup__send {
flex: 0 1 auto;
min-height: var(--tap);
padding: var(--space-s) var(--space-l);
border: var(--rule) solid var(--ink);
border-radius: var(--radius-none);
background: var(--ink);
color: var(--paper);
font: 500 var(--text-m)/1.2 var(--font-body);
cursor: pointer;
transition: background-color var(--quick) var(--ease), color var(--quick) var(--ease);
}
.signup__send:hover,
.signup__send:focus-visible {
background: transparent;
color: var(--ink);
outline: none;
}
.signup__status {
display: flex;
align-items: center;
gap: var(--space-s);
margin: var(--space-m) 0 0;
color: var(--ink-mute);
font-size: var(--text-s);
}
.signup__wait {
flex: none;
width: 10px;
height: 10px;
border-radius: var(--radius-dot);
background: var(--ink);
animation: signup-pulse var(--pulse) ease-in-out infinite;
}
.signup.is-done .signup__wait {
animation: none;
}
.signup.is-done .signup__status {
color: var(--ink);
}
@keyframes signup-pulse {
50% { opacity: 0.2; }
}
@media (max-width: 30rem) {
.signup__send {
flex-basis: 100%;
}
}
@media (prefers-reduced-motion: reduce) {
.signup__wait {
animation: none;
}
}
</style>
<script>
(() => {
for (const root of document.querySelectorAll('.signup')) {
const form = root.querySelector('.signup__form');
const field = root.querySelector('.signup__field');
const message = root.querySelector('.signup__message');
form.addEventListener('submit', (event) => {
event.preventDefault();
const good = field.checkValidity();
field.classList.toggle('is-wrong', !good);
root.classList.toggle('is-done', good);
message.textContent = good ? 'You are on the list. Watch for Monday.' : 'That address needs another look.';
if (good) form.reset();
});
}
})();
</script>
Black band
The single black band: brand mark and links on the left, credit and year on the right.
Code
React For Figma<footer class="footer">
<div class="footer__start">
<a class="footer__brand" href="#" aria-label="Ostra, home">
<svg class="footer__mark" viewBox="0 0 30 30" width="26" height="26" 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="footer__name">Ostra</span>
</a>
<nav class="footer__nav" aria-label="Footer">
<a class="footer__link" href="#">The drawer</a>
<a class="footer__link" href="#">Send us a page</a>
<a class="footer__link" href="#">Privacy</a>
</nav>
</div>
<p class="footer__credit"><span>An Ostra project.</span> <span>© 2027</span></p>
</footer>
<style>
.footer {
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: space-between;
gap: var(--space-m) var(--gap);
padding: var(--space-m) var(--edge);
background: var(--ink);
color: var(--paper);
font-size: var(--text-s);
}
.footer__start {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: var(--space-s) var(--space-l);
}
.footer__brand {
display: flex;
align-items: center;
gap: var(--space-s);
min-height: var(--tap);
color: inherit;
text-decoration: none;
}
.footer__name {
font-family: var(--font-display);
font-size: var(--text-l);
line-height: 1;
}
.footer__nav {
display: flex;
flex-wrap: wrap;
column-gap: var(--space-l);
}
.footer__link {
display: inline-flex;
align-items: center;
min-height: var(--tap);
color: inherit;
text-decoration: none;
}
.footer__link:hover,
.footer__link:focus-visible {
text-decoration: underline;
text-underline-offset: 3px;
outline: none;
}
.footer__credit {
display: flex;
gap: var(--space-l);
margin: 0;
}
</style>
Style
- --paper #f3edea
- --ink #000000
- --ink-mute #7c7775
- --rule-mute #9b9592
- --paper-wash #e8e1dd
Type
- Tiny5 for wordmark, step labels, window titles, numbers, stands in for the site's own thin bitmap screen face, used in capitals for the name and in mixed case for steps and titles
- Geist for reading text, buttons, captions, stands in for the site's own plain regular grotesk at 16/24
Motion
- The story window shows two pulsing grey lines for 700 ms (opacity 1 to 0.35 on a 1.4 s loop) before the text fades in over 420 ms.
- Moving to the next step fills the rail line down to the next dot and fills that dot black over 420 ms, cubic-bezier(0.2, 0.7, 0.2, 1).
- Blacking out turns every word not kept into a solid black bar over 420 ms, a beat apart word by word.
- The reset arrows spin once over 900 ms when pressed; buttons wash to a darker putty in 160 ms on hover.
Rules
- One putty ground (#f3edea) and pure black; the only grey is for steps not reached yet. A single black band closes the page.
- Every frame, rail and button border is 2 px solid black with square corners; only the dots are round.
- The bitmap face is for names and labels, never for paragraphs; reading text stays a plain grotesk at 16/24.
- Text sits in a window: a 2 px frame, a title bar ruled off below with three dots at its right, the current one filled.
- Steps run down a 2 px rail with a 14 px dot each: filled when reached, hollow and greyed when not.
- Lots of empty putty: the header is left aligned, small, with a parenthesised underlined link under its tagline.
base.css
/* Fonts: Tiny5 stands in for the site's thin bitmap screen face, Geist for its plain reading grotesk. */
@import url("https://fonts.googleapis.com/css2?family=Tiny5&family=Geist:wght@400;500&display=swap");
:root {
/* Colour */
--paper: #f3edea; /* page background, warm putty */
--ink: #000000; /* main text, rules, blackout bars, footer ground */
--ink-mute: #7c7775; /* steps not reached yet, quiet captions */
--rule-mute: #9b9592; /* borders of disabled buttons */
--paper-wash: #e8e1dd; /* pressed and hovered button fill, picture wells */
/* Type */
--font-display: "Tiny5", "Courier New", monospace; /* wordmark, step labels, window titles, numbers */
--font-body: "Geist", "Helvetica Neue", Arial, sans-serif; /* reading text, buttons, captions */
--display-xl: clamp(2.75rem, 1.6rem + 3.2vw, 3.5rem); /* the wordmark in capitals */
--display-l: clamp(1.5rem, 1.2rem + 1vw, 2rem); /* phone step bar, big numbers */
--display-m: 1.5rem; /* step labels and window titles */
--text-l: 1.25rem; /* tagline */
--text-m: 1rem; /* reading text and buttons */
--text-s: 0.875rem; /* captions, small print */
--track-caps: 0.075em; /* tracking of the capital wordmark */
--leading: 1.5; /* reading line height */
/* Space */
--edge: clamp(1.25rem, 0.5rem + 2.2vw, 2rem); /* side padding of every section */
--gap: 2rem; /* between rail and window, between cards */
--section-space: clamp(3rem, 2rem + 3vw, 4.5rem); /* air above and below a section */
--space-xs: 0.25rem; /* tight steps */
--space-s: 0.5rem; /* label to line */
--space-m: 1rem; /* paragraph gap */
--space-l: 1.5rem; /* window padding */
--space-xl: 3rem; /* between step groups */
/* Lines and shape */
--rule: 2px; /* every frame, rail and button border */
--rule-thin: 1px; /* the divider above Try again */
--radius-none: 0; /* frames, buttons and fields stay square */
--radius-dot: 9999px; /* step dots and window dots only */
--dot: 14px; /* rail dot and window dot size */
--tap: 44px; /* smallest tap target */
/* Motion */
--ease: cubic-bezier(0.2, 0.7, 0.2, 1); /* default easing */
--quick: 160ms; /* hover and press */
--step: 420ms; /* the rail filling, words turning to bars */
--pulse: 1.4s; /* loading lines and waiting dot */
--spin: 900ms; /* the reset arrows turning once */
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 var(--text-m)/var(--leading) var(--font-body); -webkit-font-smoothing: antialiased; }
img, svg, canvas { display: block; max-width: 100%; }
@media (prefers-reduced-motion: reduce) {
*, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
For your agent
Use the kitbash MCP server at https://kitbash.me/mcp. Call get_pack("pixel-caps-manuscript"), then get_component for the parts you need, and build my site in that style: keep its tokens and rules, replace the placeholder copy with mine.
How to connect