Kraft Panel Split
A white guide page split down the middle against a brown kraft-paper panel, where a single print lies slightly askew and changes every few seconds; plain grotesk sentences, small serif titles and rails of photographs with chips laid over them. Suits listings, guides, shops and directories that want to feel calm and well chosen.
Parts
Top bar
Wordmark with a drawn candle, a long grey search pill with a black round button, and a segmented pill of links ending in a black Sign in; on phones a round menu button opens a sheet.
Code
React For Figma<header class="topbar">
<div class="topbar__bar">
<a class="topbar__brand" href="#" aria-label="Tallow, home">
<svg class="topbar__mark" viewBox="0 0 28 28" width="26" height="26" aria-hidden="true">
<path d="M14 3.2c2.2 2.6 2.9 4.4 2.1 6-.6 1.2-1.6 1.7-2.1 1.7s-1.6-.5-2.1-1.7c-.8-1.6-.1-3.4 2.1-6z" fill="currentColor"/>
<path d="M14 11v2.4" stroke="currentColor" stroke-width="1.2" stroke-linecap="round"/>
<path d="M10.4 13.6h7.2l-.6 9.6h-6z" fill="none" stroke="currentColor" stroke-width="1.3" stroke-linejoin="round"/>
<path d="M11 16.4c1.6.7 4.4.7 6 0" fill="none" stroke="currentColor" stroke-width="1" stroke-linecap="round"/>
<path d="M6.5 24.6h15" stroke="currentColor" stroke-width="1.4" stroke-linecap="round"/>
<path d="M8.4 24.6c0-1.5.9-2.4 2.4-2.4M19.6 24.6c0-1.5-.9-2.4-2.4-2.4" fill="none" stroke="currentColor" stroke-width="1.1"/>
</svg>
<span class="topbar__word">Tallow</span>
</a>
<form class="topbar__search" role="search" onsubmit="return false">
<svg class="topbar__hint" viewBox="0 0 20 14" width="18" height="13" aria-hidden="true"><path d="M1 3.5h9.5a3 3 0 0 1 0 6H6m0 0 2.4-2.4M6 9.5l2.4 2.4" fill="none" stroke="currentColor" stroke-width="1.3" stroke-linecap="round" stroke-linejoin="round"/></svg>
<label class="topbar__label" for="topbar-q">Search rooms</label>
<input class="topbar__input" id="topbar-q" type="search" placeholder="Search for rooms…" autocomplete="off">
<button class="topbar__go" type="submit" aria-label="Search">
<svg viewBox="0 0 16 16" width="12" height="12" aria-hidden="true"><circle cx="7" cy="7" r="4.6" fill="none" stroke="currentColor" stroke-width="1.6"/><path d="m10.4 10.4 3.2 3.2" stroke="currentColor" stroke-width="1.6" stroke-linecap="round"/></svg>
</button>
</form>
<nav class="topbar__nav" aria-label="Main">
<a class="topbar__link" href="#">Reading rooms</a>
<a class="topbar__link" href="#">Listening</a>
<a class="topbar__cta" href="#">Sign in</a>
</nav>
<div class="topbar__phone">
<button class="topbar__toggle" type="button" aria-expanded="false" aria-controls="topbar-sheet" aria-label="Open menu">
<span class="topbar__lines" aria-hidden="true"></span>
</button>
<a class="topbar__cta" href="#">Sign in</a>
</div>
</div>
<div class="topbar__sheet" id="topbar-sheet">
<form class="topbar__search topbar__search--sheet" role="search" onsubmit="return false">
<label class="topbar__label" for="topbar-q2">Search rooms</label>
<input class="topbar__input" id="topbar-q2" type="search" placeholder="Search for rooms…" autocomplete="off">
<button class="topbar__go" type="submit" aria-label="Search">
<svg viewBox="0 0 16 16" width="12" height="12" aria-hidden="true"><circle cx="7" cy="7" r="4.6" fill="none" stroke="currentColor" stroke-width="1.6"/><path d="m10.4 10.4 3.2 3.2" stroke="currentColor" stroke-width="1.6" stroke-linecap="round"/></svg>
</button>
</form>
<a class="topbar__sheetlink" href="#">Reading rooms</a>
<a class="topbar__sheetlink" href="#">Listening</a>
<a class="topbar__sheetlink" href="#">Small museums</a>
<a class="topbar__sheetlink" href="#">Cities</a>
</div>
</header>
<style>
.topbar {
position: relative;
z-index: 5;
font-size: var(--text-s);
}
.topbar__bar {
display: grid;
grid-template-columns: 1fr minmax(0, 420px) 1fr;
align-items: center;
gap: var(--space-l);
height: var(--bar-height);
padding: 0 var(--edge);
}
.topbar__brand {
display: inline-flex;
align-items: center;
gap: 6px;
justify-self: start;
min-height: 44px;
color: var(--ink);
text-decoration: none;
}
.topbar__word {
font-family: var(--font-serif);
font-size: 23px;
letter-spacing: -0.02em;
}
.topbar__search {
display: flex;
align-items: center;
gap: var(--space-s);
height: 52px;
padding: 0 4px 0 20px;
background: var(--field);
border: var(--rule) solid transparent;
border-radius: var(--pill);
transition: border-color var(--quick) var(--ease), background var(--quick) var(--ease);
}
.topbar__search:focus-within {
background: var(--paper);
border-color: var(--ink);
}
.topbar__hint { flex: none; color: var(--ink-soft); }
.topbar__label {
position: absolute;
width: 1px;
height: 1px;
overflow: hidden;
clip-path: inset(50%);
}
.topbar__input {
flex: 1;
min-width: 0;
height: 100%;
border: 0;
background: none;
font: inherit;
font-size: var(--text-m);
color: var(--ink);
outline: none;
}
.topbar__input::placeholder { color: var(--ink-soft); }
.topbar__go {
display: grid;
place-items: center;
flex: none;
width: 44px;
height: 44px;
border: 0;
border-radius: var(--pill);
background: var(--ink);
color: var(--paper);
cursor: pointer;
transition: transform var(--quick) var(--spring);
}
.topbar__go:active { transform: scale(0.92); }
.topbar__nav {
display: flex;
align-items: center;
justify-self: end;
gap: 2px;
padding: 4px;
background: var(--field);
border-radius: var(--pill);
}
.topbar__link,
.topbar__cta {
display: inline-flex;
align-items: center;
min-height: 44px;
padding: 0 16px;
border-radius: var(--pill);
font-weight: 500;
text-decoration: none;
white-space: nowrap;
transition: color var(--quick) var(--ease), background var(--quick) var(--ease);
}
.topbar__link { color: var(--ink-soft); }
.topbar__link:hover,
.topbar__link:focus-visible { color: var(--ink); background: var(--paper); }
.topbar__cta { background: var(--ink); color: var(--paper); }
.topbar__cta:hover { background: var(--kraft-deep); }
.topbar a:focus-visible,
.topbar button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.topbar__phone { display: none; }
.topbar__toggle {
display: grid;
place-items: center;
width: 44px;
height: 44px;
border: 0;
border-radius: var(--pill);
background: none;
cursor: pointer;
transition: background var(--quick) var(--ease);
}
.topbar__toggle:hover { background: var(--field); }
.topbar__lines,
.topbar__lines::before,
.topbar__lines::after {
display: block;
width: 18px;
height: 1.5px;
background: var(--ink);
transition: transform var(--quick) var(--ease), background var(--quick) var(--ease);
}
.topbar__lines { position: relative; }
.topbar__lines::before,
.topbar__lines::after { content: ""; position: absolute; left: 0; }
.topbar__lines::before { top: -6px; }
.topbar__lines::after { top: 6px; }
.topbar.is-open .topbar__lines { background: transparent; }
.topbar.is-open .topbar__lines::before { transform: translateY(6px) rotate(45deg); }
.topbar.is-open .topbar__lines::after { transform: translateY(-6px) rotate(-45deg); }
.topbar__sheet {
position: absolute;
top: calc(var(--bar-height) - 8px);
left: var(--edge);
right: var(--edge);
display: grid;
gap: 2px;
padding: var(--space-s);
background: var(--paper);
border-radius: var(--radius-l);
box-shadow: var(--shadow-pop);
opacity: 0;
visibility: hidden;
transform: translateY(-8px);
transform-origin: top right;
transition: opacity var(--quick) var(--ease), transform 180ms var(--spring), visibility 0s linear var(--quick);
}
.topbar.is-open .topbar__sheet {
opacity: 1;
visibility: visible;
transform: none;
transition-delay: 0s;
}
.topbar__search--sheet { margin-bottom: var(--space-s); }
.topbar__sheetlink {
display: flex;
align-items: center;
min-height: 48px;
padding: 0 var(--space-m);
border-radius: var(--radius-s);
color: var(--ink);
font-size: var(--text-m);
text-decoration: none;
transition: background var(--quick) var(--ease);
}
.topbar__sheetlink:hover { background: var(--paper-warm); }
@media (min-width: 56.01rem) {
.topbar__sheet { display: none; }
}
@media (max-width: 56rem) {
.topbar__bar { grid-template-columns: 1fr auto; height: 72px; }
.topbar__bar > .topbar__search,
.topbar__nav { display: none; }
.topbar__phone { display: flex; align-items: center; gap: var(--space-s); }
.topbar__sheet { top: 64px; }
}
</style>
<script>
(() => {
for (const root of document.querySelectorAll('.topbar')) {
const toggle = root.querySelector('.topbar__toggle');
if (!toggle) continue;
const set = (open) => {
root.classList.toggle('is-open', open);
toggle.setAttribute('aria-expanded', String(open));
toggle.setAttribute('aria-label', open ? 'Close menu' : 'Open menu');
};
toggle.addEventListener('click', () => set(!root.classList.contains('is-open')));
root.addEventListener('keydown', (event) => {
if (event.key === 'Escape' && root.classList.contains('is-open')) { set(false); toggle.focus(); }
});
root.querySelectorAll('.topbar__sheetlink').forEach((link) => link.addEventListener('click', () => set(false)));
}
})();
</script>
Kraft split hero
The plain grotesk sentence with a small drawing set inline on the white half, and the kraft panel on the other with a tilted print that changes every few seconds under a dark caption button.
Code
React For Figma<section class="split" aria-label="Introduction">
<div class="split__side">
<h1 class="split__title">
Find quiet
<svg class="split__glyph" viewBox="0 0 40 40" width="40" height="40" aria-hidden="true">
<path d="M9 30V17.5c0-3.2 2.4-5.2 5.4-5.2h11.2c3 0 5.4 2 5.4 5.2V30" fill="none" stroke="currentColor" stroke-width="1.4" stroke-linejoin="round"/>
<path d="M6.2 21.4h5v8.2M33.8 21.4h-5v8.2" fill="none" stroke="currentColor" stroke-width="1.4" stroke-linejoin="round"/>
<path d="M11.2 24.6h17.6" stroke="currentColor" stroke-width="1.4"/>
<path d="M8.6 30v3.2M31.4 30v3.2" stroke="currentColor" stroke-width="1.4" stroke-linecap="round"/>
<path d="M14 16.4c2.4 1 9.6 1 12 0" fill="none" stroke="currentColor" stroke-width="1" stroke-linecap="round"/>
<path d="M20.6 6.2c1.2 1.4 1.5 2.4 1 3.2-.3.5-.7.7-1 .7s-.8-.2-1-.7c-.4-.8-.1-1.8 1-3.2z" fill="currentColor"/>
</svg>
rooms<br> to read, look and linger.
</h1>
<div class="split__foot">
<p class="split__note">Two hundred and twelve rooms, chosen by people who sat in them.</p>
<a class="split__more" href="#">Explore the index</a>
</div>
</div>
<div class="split__panel">
<div class="split__stage">
<figure class="split__print is-current" style="--tilt: -2.4deg">
<img class="split__img" src="assets/grey-door-room.jpg" alt="A grey room with a white bed and a curtained window" width="966" height="1200">
</figure>
<figure class="split__print" style="--tilt: 1.8deg">
<img class="split__img" src="assets/sunlit-parlour.jpg" alt="Sunlight falling across a pale parlour wall above a sofa" width="1200" height="986">
</figure>
<figure class="split__print" style="--tilt: -1deg">
<img class="split__img" src="assets/entrance-hall.jpg" alt="A hall with painted walls and a curving staircase" width="800" height="772">
</figure>
</div>
<a class="split__caption" href="#">
<svg class="split__arrow" viewBox="0 0 20 14" width="20" height="14" aria-hidden="true"><path d="M1 3.5h9.5a3 3 0 0 1 0 6H6m0 0 2.4-2.4M6 9.5l2.4 2.4" fill="none" stroke="currentColor" stroke-width="1.3" stroke-linecap="round" stroke-linejoin="round"/></svg>
<span class="split__words">
<span class="split__label is-current">Rooms with one window</span>
<span class="split__label">Afternoon parlours</span>
<span class="split__label">Halls worth the stairs</span>
</span>
</a>
</div>
</section>
<style>
.split {
display: grid;
grid-template-columns: 1fr 1fr;
min-height: clamp(560px, 56vw, 820px);
}
.split__side {
display: flex;
flex-direction: column;
justify-content: center;
gap: var(--space-xl);
padding: var(--space-xl) var(--edge);
}
.split__title {
margin: auto 0 0;
max-width: 14em;
font-size: var(--display);
font-weight: 400;
line-height: 1.04;
letter-spacing: -0.015em;
}
.split__glyph {
display: inline-block;
width: 1em;
height: 1em;
margin: 0 0.06em;
vertical-align: -0.12em;
}
.split__foot {
display: flex;
align-items: center;
justify-content: space-between;
gap: var(--space-m);
margin-top: auto;
font-size: var(--text-s);
}
.split__note {
margin: 0;
max-width: 24em;
color: var(--ink-soft);
line-height: 1.2;
}
.split__more {
display: inline-flex;
align-items: center;
flex: none;
min-height: 44px;
padding: 0 18px;
border-radius: var(--pill);
background: var(--field);
color: var(--ink);
font-weight: 500;
text-decoration: none;
transition: background var(--quick) var(--ease);
}
.split__more:hover { background: var(--stone); }
.split__panel {
position: relative;
display: grid;
place-items: center;
overflow: hidden;
padding: calc(var(--bar-height) + var(--space-l)) var(--edge) 120px;
background-color: var(--kraft);
/* paper fibre drawn as noise, multiplied into the kraft colour */
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.25 0 0 0 0 0.17 0 0 0 0 0.08 0 0 0 0.22 0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
}
.split__stage {
position: relative;
width: min(64%, 340px);
aspect-ratio: 4 / 5.4;
}
.split__print {
position: absolute;
inset: 0;
margin: 0;
opacity: 0;
transform: rotate(0deg) scale(0.96);
transition: opacity var(--fade) var(--ease), transform var(--fade) var(--spring);
}
.split__print.is-current {
opacity: 1;
transform: rotate(var(--tilt)) scale(1);
}
.split__img {
width: 100%;
height: 100%;
object-fit: cover;
box-shadow: var(--shadow-print);
}
.split__caption {
position: absolute;
left: 50%;
bottom: var(--space-xl);
display: inline-flex;
align-items: center;
gap: 14px;
min-height: 48px;
min-width: 240px;
padding: 0 24px;
transform: translateX(-50%);
border-radius: var(--radius-s);
background: var(--kraft-deep);
color: var(--paper);
font-size: var(--text-s);
font-weight: 500;
text-decoration: none;
transition: background var(--quick) var(--ease);
}
.split__caption:hover { background: var(--ink); }
.split__caption:focus-visible { outline: 2px solid var(--paper); outline-offset: 3px; }
.split__arrow { flex: none; color: var(--paper-glass); }
.split__words { display: grid; }
.split__label {
grid-area: 1 / 1;
white-space: nowrap;
opacity: 0;
transform: translateY(6px);
transition: opacity var(--quick) var(--ease), transform 180ms var(--spring);
}
.split__label.is-current { opacity: 1; transform: none; }
@media (max-width: 56rem) {
.split {
grid-template-columns: 1fr;
min-height: 0;
padding: 0 var(--space-s);
}
.split__side,
.split__panel { grid-area: 1 / 1; }
.split__panel {
min-height: clamp(560px, 150vw, 720px);
padding: var(--space-xl) var(--edge) 128px;
border-radius: 0 0 var(--radius-l) var(--radius-l);
}
.split__stage { width: min(70%, 300px); }
.split__side {
position: relative;
z-index: 1;
padding: 0 var(--edge) 128px;
color: var(--paper);
text-align: center;
pointer-events: none;
}
.split__title {
margin: auto;
text-shadow: 0 1px 18px var(--veil-soft);
}
.split__foot { display: none; }
.split__caption {
left: var(--edge);
right: var(--edge);
justify-content: center;
min-width: 0;
transform: none;
border-radius: var(--pill);
}
}
</style>
<script>
(() => {
const still = window.matchMedia('(prefers-reduced-motion: reduce)');
for (const root of document.querySelectorAll('.split')) {
const prints = [...root.querySelectorAll('.split__print')];
const labels = [...root.querySelectorAll('.split__label')];
if (prints.length < 2) continue;
const hold = parseFloat(getComputedStyle(root).getPropertyValue('--hold')) || 4200;
let index = 0;
let timer = 0;
let visible = false;
const show = (next) => {
index = next % prints.length;
prints.forEach((print, i) => print.classList.toggle('is-current', i === index));
labels.forEach((label, i) => label.classList.toggle('is-current', i === index));
};
const stop = () => { clearInterval(timer); timer = 0; };
const start = () => {
if (timer || still.matches || !visible) return;
timer = setInterval(() => show(index + 1), hold);
};
new IntersectionObserver(([entry]) => {
visible = entry.isIntersecting;
visible ? start() : stop();
}).observe(root);
still.addEventListener('change', () => { stop(); start(); });
}
})();
</script>
Place rail
Serif section title with round arrow buttons and an Explore more pill above a sideways rail of portrait photographs with translucent chips, grey meta and serif names; a heart saves a place and raises a toast.
Code
React For Figma<section class="rail" aria-labelledby="rail-title">
<div class="rail__head">
<h2 class="rail__title" id="rail-title">Where to sit still in Lisbon</h2>
<div class="rail__tools">
<button class="rail__step" type="button" data-step="-1" aria-label="Previous">
<svg viewBox="0 0 16 16" width="12" height="12" aria-hidden="true"><path d="M13 8H3m0 0 4-4M3 8l4 4" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>
</button>
<button class="rail__step" type="button" data-step="1" aria-label="Next">
<svg viewBox="0 0 16 16" width="12" height="12" aria-hidden="true"><path d="M3 8h10m0 0-4-4m4 4-4 4" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>
</button>
<a class="rail__more" href="#">Explore more</a>
</div>
</div>
<ul class="rail__track">
<li class="rail__card">
<a class="rail__pic" href="#">
<img class="rail__img" src="assets/dining-room.jpg" alt="A long panelled dining room with a chandelier" width="800" height="547" loading="lazy">
<span class="rail__chips"><span class="rail__chip">Long table</span><span class="rail__chip">Chandelier</span><span class="rail__chip">Quiet</span></span>
</a>
<button class="rail__save" type="button" aria-pressed="false" aria-label="Save Casa Verdelho">
<svg viewBox="0 0 20 20" width="16" height="16" aria-hidden="true"><path d="M10 16.6s-6.2-3.8-6.2-8.1A3.4 3.4 0 0 1 10 6.6a3.4 3.4 0 0 1 6.2 1.9c0 4.3-6.2 8.1-6.2 8.1z" fill="currentColor" stroke="currentColor" stroke-width="1.4" stroke-linejoin="round"/></svg>
</button>
<p class="rail__meta">Reading room<br>Lisbon, Portugal</p>
<h3 class="rail__name">Casa Verdelho</h3>
</li>
<li class="rail__card">
<a class="rail__pic" href="#">
<img class="rail__img" src="assets/drawing-room.jpg" alt="A pale drawing room with columns and a bookcase" width="800" height="615" loading="lazy">
<span class="rail__chips"><span class="rail__chip">Books</span><span class="rail__chip">Armchairs</span><span class="rail__chip">Tea</span></span>
</a>
<button class="rail__save" type="button" aria-pressed="false" aria-label="Save The Ledger Room">
<svg viewBox="0 0 20 20" width="16" height="16" aria-hidden="true"><path d="M10 16.6s-6.2-3.8-6.2-8.1A3.4 3.4 0 0 1 10 6.6a3.4 3.4 0 0 1 6.2 1.9c0 4.3-6.2 8.1-6.2 8.1z" fill="currentColor" stroke="currentColor" stroke-width="1.4" stroke-linejoin="round"/></svg>
</button>
<p class="rail__meta">Library<br>Lisbon, Portugal</p>
<h3 class="rail__name">The Ledger Room</h3>
</li>
<li class="rail__card">
<a class="rail__pic" href="#">
<img class="rail__img" src="assets/sitting-room.jpg" alt="A sitting room with red curtains and a portrait" width="800" height="559" loading="lazy">
<span class="rail__chips"><span class="rail__chip">Portraits</span><span class="rail__chip">Garden view</span></span>
</a>
<button class="rail__save" type="button" aria-pressed="false" aria-label="Save Salão Pimenta">
<svg viewBox="0 0 20 20" width="16" height="16" aria-hidden="true"><path d="M10 16.6s-6.2-3.8-6.2-8.1A3.4 3.4 0 0 1 10 6.6a3.4 3.4 0 0 1 6.2 1.9c0 4.3-6.2 8.1-6.2 8.1z" fill="currentColor" stroke="currentColor" stroke-width="1.4" stroke-linejoin="round"/></svg>
</button>
<p class="rail__meta">House museum<br>Sintra, Portugal</p>
<h3 class="rail__name">Salão Pimenta</h3>
</li>
<li class="rail__card">
<a class="rail__pic" href="#">
<img class="rail__img" src="assets/entrance-hall.jpg" alt="A hall with a curving staircase and painted walls" width="800" height="772" loading="lazy">
<span class="rail__chips"><span class="rail__chip">Murals</span><span class="rail__chip">Stairs</span></span>
</a>
<button class="rail__save" type="button" aria-pressed="false" aria-label="Save Hall of Small Hours">
<svg viewBox="0 0 20 20" width="16" height="16" aria-hidden="true"><path d="M10 16.6s-6.2-3.8-6.2-8.1A3.4 3.4 0 0 1 10 6.6a3.4 3.4 0 0 1 6.2 1.9c0 4.3-6.2 8.1-6.2 8.1z" fill="currentColor" stroke="currentColor" stroke-width="1.4" stroke-linejoin="round"/></svg>
</button>
<p class="rail__meta">Gallery<br>Lisbon, Portugal</p>
<h3 class="rail__name">Hall of Small Hours</h3>
</li>
<li class="rail__card">
<a class="rail__pic" href="#">
<img class="rail__img" src="assets/shaker-room.jpg" alt="A plain wooden room with pegs on the wall" width="1200" height="559" loading="lazy">
<span class="rail__chips"><span class="rail__chip">Plain wood</span><span class="rail__chip">Workshop</span></span>
</a>
<button class="rail__save" type="button" aria-pressed="false" aria-label="Save Oficina Baixa">
<svg viewBox="0 0 20 20" width="16" height="16" aria-hidden="true"><path d="M10 16.6s-6.2-3.8-6.2-8.1A3.4 3.4 0 0 1 10 6.6a3.4 3.4 0 0 1 6.2 1.9c0 4.3-6.2 8.1-6.2 8.1z" fill="currentColor" stroke="currentColor" stroke-width="1.4" stroke-linejoin="round"/></svg>
</button>
<p class="rail__meta">Craft room<br>Porto, Portugal</p>
<h3 class="rail__name">Oficina Baixa</h3>
</li>
</ul>
<p class="rail__toast" role="status" aria-live="polite"></p>
</section>
<style>
.rail {
position: relative;
padding: var(--section-space) 0;
overflow: hidden;
}
.rail__head {
display: flex;
align-items: center;
justify-content: space-between;
gap: var(--space-m);
padding: 0 var(--edge);
margin-bottom: var(--space-l);
}
.rail__title {
margin: 0;
font-family: var(--font-serif);
font-size: var(--text-l);
font-weight: 400;
line-height: 1.2;
}
.rail__tools {
display: flex;
align-items: center;
flex: none;
}
.rail__step {
display: grid;
place-items: center;
width: 44px;
height: 44px;
padding: 0;
border: 0;
background: none;
color: var(--ink);
cursor: pointer;
}
.rail__step svg {
box-sizing: content-box;
padding: 10px;
border-radius: var(--pill);
background: var(--field);
transition: background var(--quick) var(--ease), color var(--quick) var(--ease);
}
.rail__step:hover svg { background: var(--stone); }
.rail__step:disabled { cursor: default; color: var(--ink-soft); }
.rail__step:disabled svg { background: var(--paper-warm); }
.rail__more {
display: inline-flex;
align-items: center;
min-height: 44px;
margin-left: var(--space-xs);
padding: 0 14px;
border-radius: var(--pill);
background: var(--field);
color: var(--ink);
font-size: var(--text-s);
font-weight: 500;
text-decoration: none;
white-space: nowrap;
transition: background var(--quick) var(--ease);
}
.rail__more:hover { background: var(--stone); }
.rail button:focus-visible,
.rail a:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.rail__track {
display: grid;
grid-auto-flow: column;
grid-auto-columns: clamp(150px, 22vw, 300px);
gap: var(--gap);
margin: 0;
padding: 0 var(--edge);
list-style: none;
overflow-x: auto;
overscroll-behavior-x: contain;
scroll-snap-type: x mandatory;
scroll-padding-inline: var(--edge);
scrollbar-width: none;
}
.rail__track::-webkit-scrollbar { display: none; }
.rail__card {
position: relative;
scroll-snap-align: start;
}
.rail__pic {
position: relative;
display: block;
aspect-ratio: 4 / 5;
overflow: hidden;
border-radius: var(--radius-s);
background: var(--paper-warm);
}
.rail__img {
width: 100%;
height: 100%;
object-fit: cover;
transition: transform 600ms var(--ease);
}
.rail__pic:hover .rail__img,
.rail__pic:focus-visible .rail__img { transform: scale(1.03); }
.rail__chips {
position: absolute;
left: var(--space-s);
right: var(--space-s);
bottom: var(--space-s);
display: flex;
gap: 2px;
overflow: hidden;
}
.rail__chip {
flex: none;
padding: 6px 10px;
border-radius: var(--radius-s);
background: var(--veil);
backdrop-filter: blur(8px);
color: var(--paper);
font-size: var(--text-xs);
line-height: 1;
}
.rail__save {
position: absolute;
top: var(--space-xs);
right: var(--space-xs);
display: grid;
place-items: center;
width: 44px;
height: 44px;
border: 0;
border-radius: var(--pill);
background: none;
color: transparent;
cursor: pointer;
}
.rail__save svg {
box-sizing: content-box;
padding: 6px;
border-radius: var(--pill);
background: var(--veil);
backdrop-filter: blur(8px);
stroke: var(--paper);
transition: transform 180ms var(--spring), color var(--quick) var(--ease);
}
.rail__save:hover svg { transform: scale(1.1); }
.rail__save.is-saved { color: var(--paper); }
.rail__save.is-saved svg { stroke: var(--paper); animation: rail-pop 320ms var(--spring); }
@keyframes rail-pop {
0% { transform: scale(0.6); }
100% { transform: scale(1); }
}
.rail__meta {
margin: var(--space-m) 0 var(--space-s);
color: var(--ink-soft);
font-size: var(--text-s);
line-height: 1.2;
}
.rail__name {
margin: 0;
font-family: var(--font-serif);
font-size: 18px;
font-weight: 400;
line-height: 1.2;
}
.rail__toast {
position: absolute;
left: 50%;
bottom: var(--space-l);
margin: 0;
padding: 12px 18px;
border-radius: var(--pill);
background: var(--ink);
color: var(--paper);
font-size: var(--text-s);
white-space: nowrap;
box-shadow: var(--shadow-pop);
opacity: 0;
pointer-events: none;
transform: translate(-50%, 16px);
transition: opacity var(--quick) var(--ease), transform 180ms var(--spring);
}
.rail__toast.is-shown { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 56rem) {
.rail__track { grid-auto-columns: minmax(150px, 40vw); gap: var(--space-m); }
.rail__step { display: none; }
}
</style>
<script>
(() => {
for (const root of document.querySelectorAll('.rail')) {
const track = root.querySelector('.rail__track');
const steps = root.querySelectorAll('.rail__step');
const toast = root.querySelector('.rail__toast');
let hide = 0;
const update = () => {
const end = track.scrollWidth - track.clientWidth - 2;
steps.forEach((step) => {
step.disabled = Number(step.dataset.step) < 0 ? track.scrollLeft <= 2 : track.scrollLeft >= end;
});
};
steps.forEach((step) => step.addEventListener('click', () => {
const card = track.querySelector('.rail__card');
const by = card ? card.getBoundingClientRect().width + parseFloat(getComputedStyle(track).columnGap || 0) : 300;
track.scrollBy({ left: by * Number(step.dataset.step), behavior: 'smooth' });
}));
track.addEventListener('scroll', update, { passive: true });
update();
root.querySelectorAll('.rail__save').forEach((save) => save.addEventListener('click', () => {
const on = !save.classList.contains('is-saved');
save.classList.toggle('is-saved', on);
save.setAttribute('aria-pressed', String(on));
const name = save.closest('.rail__card').querySelector('.rail__name').textContent;
toast.textContent = (on ? 'Saved ' : 'Removed ') + name;
toast.classList.add('is-shown');
clearTimeout(hide);
hide = setTimeout(() => toast.classList.remove('is-shown'), 2400);
}));
}
})();
</script>
City chips picture
One wide photograph with a row of white city pills over its lower edge; choosing a pill crossfades to that city's picture.
Code
React For Figma<section class="cities" aria-labelledby="cities-title">
<div class="cities__head">
<h2 class="cities__title" id="cities-title">Rooms by city</h2>
<a class="cities__more" href="#">All cities</a>
</div>
<div class="cities__frame">
<img class="cities__img is-current" src="assets/sunlit-parlour.jpg" alt="Sunlight on the wall of a pale parlour" width="1200" height="986">
<img class="cities__img" src="assets/sitting-room.jpg" alt="A sitting room with red curtains and two windows" width="800" height="559">
<img class="cities__img" src="assets/drawing-room.jpg" alt="A drawing room with columns and a bookcase" width="800" height="615">
<img class="cities__img" src="assets/dining-room.jpg" alt="A panelled dining room with a long table" width="800" height="547">
<div class="cities__chips" role="tablist" aria-label="Cities">
<button class="cities__chip is-active" type="button" role="tab" aria-selected="true">Ghent</button>
<button class="cities__chip" type="button" role="tab" aria-selected="false">Turin</button>
<button class="cities__chip" type="button" role="tab" aria-selected="false">Kraków</button>
<button class="cities__chip" type="button" role="tab" aria-selected="false">Bergen</button>
</div>
</div>
</section>
<style>
.cities {
padding: var(--section-space) var(--edge);
}
.cities__head {
display: flex;
align-items: center;
justify-content: space-between;
gap: var(--space-m);
margin-bottom: var(--space-l);
}
.cities__title {
margin: 0;
font-family: var(--font-serif);
font-size: var(--text-l);
font-weight: 400;
}
.cities__more {
display: inline-flex;
align-items: center;
min-height: 44px;
padding: 0 14px;
border-radius: var(--pill);
background: var(--field);
color: var(--ink);
font-size: var(--text-s);
font-weight: 500;
text-decoration: none;
transition: background var(--quick) var(--ease);
}
.cities__more:hover { background: var(--stone); }
.cities__frame {
position: relative;
display: grid;
aspect-ratio: 2 / 1;
overflow: hidden;
border-radius: var(--radius-s);
background: var(--paper-warm);
}
.cities__img {
grid-area: 1 / 1;
width: 100%;
height: 100%;
object-fit: cover;
opacity: 0;
transition: opacity var(--fade) var(--ease);
}
.cities__img.is-current { opacity: 1; }
.cities__frame::after {
content: "";
grid-area: 1 / 1;
background: linear-gradient(to top, var(--veil-soft), transparent 45%);
pointer-events: none;
}
.cities__chips {
position: absolute;
z-index: 1;
left: var(--space-m);
right: var(--space-m);
bottom: var(--space-m);
display: flex;
flex-wrap: wrap;
gap: var(--space-xs);
}
.cities__chip {
min-height: 44px;
padding: 0 18px;
border: 0;
border-radius: var(--pill);
background: var(--paper);
color: var(--ink);
font: 500 var(--text-s) var(--font-body);
cursor: pointer;
transition: background var(--quick) var(--ease), color var(--quick) var(--ease), transform 180ms var(--spring);
}
.cities__chip:hover { background: var(--field); }
.cities__chip:active { transform: scale(0.94); }
.cities__chip.is-active { background: var(--ink); color: var(--paper); }
.cities a:focus-visible,
.cities__chip:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
@media (max-width: 40rem) {
.cities__frame { aspect-ratio: 4 / 5; }
}
</style>
<script>
(() => {
for (const root of document.querySelectorAll('.cities')) {
const chips = [...root.querySelectorAll('.cities__chip')];
const pictures = [...root.querySelectorAll('.cities__img')];
chips.forEach((chip, index) => chip.addEventListener('click', () => {
chips.forEach((other, i) => {
other.classList.toggle('is-active', i === index);
other.setAttribute('aria-selected', String(i === index));
});
pictures.forEach((picture, i) => picture.classList.toggle('is-current', i === index % pictures.length));
}));
}
})();
</script>
Collection banner
A wide dark photograph with a serif title, one line and a white pill button sitting on a soft scrim.
Code
React For Figma<section class="banner">
<a class="banner__card" href="#">
<img class="banner__img" src="assets/shaker-room.jpg" alt="A plain wooden room with pegs along the wall and a doorway" width="1200" height="559">
<span class="banner__body">
<span class="banner__kicker">Collection · 24 rooms</span>
<span class="banner__title">Plain wood and<br>good light</span>
<span class="banner__line">Workshops, schoolrooms and meeting houses you can still sit in.</span>
<span class="banner__button">See the collection</span>
</span>
</a>
</section>
<style>
.banner {
padding: var(--section-space) var(--edge);
}
.banner__card {
position: relative;
display: grid;
min-height: clamp(360px, 38vw, 520px);
overflow: hidden;
border-radius: var(--radius-s);
background: var(--night);
color: var(--paper);
text-decoration: none;
}
.banner__img {
grid-area: 1 / 1;
width: 100%;
height: 100%;
object-fit: cover;
filter: brightness(0.82) saturate(0.85);
transition: transform 900ms var(--ease);
}
.banner__card:hover .banner__img { transform: scale(1.03); }
.banner__card::after {
content: "";
grid-area: 1 / 1;
background: linear-gradient(to right, var(--veil), transparent 65%);
}
.banner__body {
grid-area: 1 / 1;
z-index: 1;
display: flex;
flex-direction: column;
align-items: flex-start;
justify-content: flex-end;
gap: var(--space-s);
padding: clamp(20px, 3vw, 40px);
}
.banner__kicker {
color: var(--paper-glass);
font-size: var(--text-xs);
}
.banner__title {
font-family: var(--font-serif);
font-size: clamp(var(--text-xl), 3.4vw, 44px);
line-height: 1.02;
letter-spacing: -0.01em;
}
.banner__line {
max-width: 26em;
font-size: var(--text-s);
line-height: 1.25;
}
.banner__button {
display: inline-flex;
align-items: center;
min-height: 44px;
margin-top: var(--space-s);
padding: 0 18px;
border-radius: var(--pill);
background: var(--paper);
color: var(--ink);
font-size: var(--text-s);
font-weight: 500;
transition: background var(--quick) var(--ease);
}
.banner__card:hover .banner__button { background: var(--field); }
.banner__card:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
</style>
Footer
Near-black footer with the candle mark, three grey link columns and the wordmark in huge serif, cut off by the page edge.
Code
React For Figma<footer class="footer">
<div class="footer__top">
<svg class="footer__mark" viewBox="0 0 28 28" width="30" height="30" aria-hidden="true">
<path d="M14 3.2c2.2 2.6 2.9 4.4 2.1 6-.6 1.2-1.6 1.7-2.1 1.7s-1.6-.5-2.1-1.7c-.8-1.6-.1-3.4 2.1-6z" fill="currentColor"/>
<path d="M14 11v2.4" stroke="currentColor" stroke-width="1.2" stroke-linecap="round"/>
<path d="M10.4 13.6h7.2l-.6 9.6h-6z" fill="none" stroke="currentColor" stroke-width="1.3" stroke-linejoin="round"/>
<path d="M11 16.4c1.6.7 4.4.7 6 0" fill="none" stroke="currentColor" stroke-width="1" stroke-linecap="round"/>
<path d="M6.5 24.6h15" stroke="currentColor" stroke-width="1.4" stroke-linecap="round"/>
</svg>
<nav class="footer__cols" aria-label="Footer">
<div class="footer__col">
<h2 class="footer__head">Discover</h2>
<a class="footer__link" href="#">Reading rooms in Ghent</a>
<a class="footer__link" href="#">Listening bars in Turin</a>
<a class="footer__link" href="#">House museums in Kraków</a>
<a class="footer__link" href="#">Rooms with one window</a>
<a class="footer__link" href="#">Plain wood and good light</a>
</div>
<div class="footer__col">
<h2 class="footer__head">About</h2>
<a class="footer__link" href="#">How we choose</a>
<a class="footer__link" href="#">Suggest a room</a>
<a class="footer__link" href="#">Journal</a>
<a class="footer__link" href="#">Privacy</a>
</div>
<div class="footer__col">
<h2 class="footer__head">Elsewhere</h2>
<a class="footer__link" href="#">Newsletter</a>
<a class="footer__link" href="#">Photo diary</a>
</div>
</nav>
</div>
<p class="footer__word" aria-hidden="true">Tallow</p>
</footer>
<style>
.footer {
position: relative;
overflow: hidden;
padding: var(--space-xl) var(--edge) 0;
background: var(--night);
color: var(--paper);
}
.footer__top {
display: grid;
grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
gap: var(--space-xl);
}
.footer__mark { color: var(--stone); }
.footer__cols {
display: grid;
grid-template-columns: 1.4fr 1fr 1fr;
gap: var(--gap);
}
.footer__col { display: grid; align-content: start; }
.footer__head {
margin: 0 0 var(--space-s);
font-size: var(--text-xs);
font-weight: 500;
color: var(--paper);
}
.footer__link {
display: flex;
align-items: center;
min-height: 44px;
color: var(--ink-soft);
font-size: var(--text-s);
text-decoration: none;
transition: color var(--quick) var(--ease);
}
.footer__link:hover,
.footer__link:focus-visible { color: var(--paper); }
.footer__link:focus-visible { outline: 2px solid var(--paper); outline-offset: 2px; }
.footer__word {
margin: var(--space-xl) 0 0;
font-family: var(--font-serif);
font-size: var(--mega);
line-height: 0.78;
letter-spacing: -0.04em;
color: var(--night-ink);
white-space: nowrap;
transform: translateY(0.14em);
user-select: none;
}
@media (max-width: 48rem) {
.footer__top { grid-template-columns: 1fr; }
.footer__cols { grid-template-columns: 1fr 1fr; }
}
</style>
Style
- --ink #141414
- --ink-soft #a1a1a1
- --paper #ffffff
- --paper-warm #faf9f8
- --field #f1f0ee
- --stone #d9d5ce
- --kraft #b38d66
- --kraft-deep #4f3f31
- --veil rgba(20, 20, 20, 0.5)
- --veil-soft rgba(20, 20, 20, 0.2)
- --paper-glass rgba(255, 255, 255, 0.52)
- --night #171717
- --night-ink #2c2c2c
- --line rgba(20, 20, 20, 0.08)
Type
- Instrument Sans for headline, interface and meta, stands in for a neutral, slightly wide grotesk set at 14px for almost everything and 42px for the one hero sentence
- Newsreader for section titles and place names, stands in for a narrow, bookish text serif used small (18 to 28px) and once very large in the footer
Motion
- The hero print crossfades to the next every 4.2s over 0.7s, landing at a new small tilt with a springy cubic-bezier(0.34, 1.56, 0.64, 1); the caption button swaps its words with it.
- Hovers change colour, border or background over 0.16s ease and nothing else.
- Card pictures scale to 103 percent over 0.6s on hover; the save heart pops with the same spring and a toast rises from the bottom of the rail for 2.4s.
- City chips switch the wide picture with a 0.7s crossfade.
Rules
- Two halves on wide screens: white content on the left, a full-height kraft panel on the right holding one print with a soft paper shadow.
- Almost all text is 14px grotesk; grey (#a1a1a1) for kind and place, black for names; only titles go serif, and small.
- Photographs have 4px corners; everything you press is a pill: search, segmented nav, Explore more, chips, round arrow buttons.
- Chips on photographs are dark translucent pills with white 12px text; chips on light grounds are white pills with black text.
- No rules or boxes divide sections; space and the section title row with its pill do.
- The footer is near-black with grey link columns and the wordmark set huge in serif, barely lighter than the ground and cut off by the bottom edge.
base.css
/* Fonts: free Google Fonts that stand in for the site's faces. */
@import url("https://fonts.googleapis.com/css2?family=Instrument+Sans:wght@400;500&family=Newsreader:opsz,wght@6..72,400;6..72,500&display=swap");
:root {
/* Colour */
--ink: #141414; /* main text, black pills and buttons */
--ink-soft: #a1a1a1; /* meta lines: kind and place under a card, footer links */
--paper: #ffffff; /* page background */
--paper-warm: #faf9f8; /* loading boxes and the quiet field behind pictures */
--field: #f1f0ee; /* search pill, segmented nav and Explore more pills */
--stone: #d9d5ce; /* warm grey for empty picture frames and hairlines on dark */
--kraft: #b38d66; /* the brown paper panel behind the hero picture */
--kraft-deep: #4f3f31; /* the caption button sitting on the kraft panel */
--veil: rgba(20, 20, 20, 0.5); /* translucent chips laid over photographs */
--veil-soft: rgba(20, 20, 20, 0.2); /* scrims and the shadow edge of a picture */
--paper-glass: rgba(255, 255, 255, 0.52); /* white text at half strength over dark */
--night: #171717; /* footer ground */
--night-ink: #2c2c2c; /* the giant footer wordmark, barely lighter than the ground */
--line: rgba(20, 20, 20, 0.08); /* hairlines on white */
/* Type */
--font-body: "Instrument Sans", "Helvetica Neue", Arial, sans-serif; /* grotesk for headline, UI, meta */
--font-serif: "Newsreader", Georgia, serif; /* section titles and place names */
--text-xs: 12px; /* chips on pictures, footer headings */
--text-s: 14px; /* UI, meta, buttons */
--text-m: 16px; /* running text */
--text-l: 20px; /* section titles in serif */
--text-xl: 28px; /* banner titles in serif */
--display: clamp(30px, 3vw, 42px); /* the hero sentence */
--mega: clamp(120px, 27vw, 420px); /* footer wordmark */
/* Space */
--space-xs: 4px; /* inside chips */
--space-s: 8px; /* between chips and meta lines */
--space-m: 16px; /* card text from picture */
--space-l: 24px; /* section title from its rail */
--space-xl: 48px; /* blocks inside a section */
--edge: clamp(20px, 3.3vw, 48px); /* side padding of every section */
--gap: 24px; /* between cards in a rail */
--section-space: clamp(56px, 7vw, 96px); /* air above and below a section */
--bar-height: 80px; /* top bar */
/* Shape */
--radius-s: 4px; /* photographs and cards */
--radius-l: 18px; /* hero panel corners on phones, menu sheet */
--pill: 999px; /* pills, chips and round buttons */
--rule: 1px; /* hairlines */
--shadow-print: 0 2px 3px rgba(40, 26, 12, 0.28), 0 22px 40px -12px rgba(40, 26, 12, 0.45); /* a print lying on kraft paper */
--shadow-pop: 0 10px 30px -8px rgba(20, 20, 20, 0.35); /* toasts and the open menu */
/* Motion */
--quick: 160ms; /* hovers, colour and border changes */
--ease: ease; /* default easing */
--spring: cubic-bezier(0.34, 1.56, 0.64, 1); /* small pops: heart, toast, chip press */
--fade: 700ms; /* crossfade between hero prints */
--hold: 4200ms; /* how long a hero print stays */
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 var(--text-m)/1.2 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("kraft-panel-split"), 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