Tile Ring Blackroom
A near-black stage with tightly tracked grotesk headlines, light grey rounded cards, uppercase mono pills and one acid lime accent, opened by a slow ring of small rounded picture tiles. It suits a library, a catalogue or a membership product that wants to feel like a gallery after dark.
Parts
Pill menu bar
Wordmark at left, a white pill holding mono caps links with a count badge, a round icon button and a lime join pill; on phones a round burger opens a white panel.
Code
React For Figma<header class="nav">
<a class="nav__wordmark" href="#">Pipwell</a>
<nav class="nav__bar" aria-label="Main">
<a class="nav__link" href="#">Seeds <span class="nav__count">212</span></a>
<a class="nav__link" href="#">Membership</a>
<a class="nav__link" href="#">FAQ</a>
<a class="nav__link" href="#">Gardens</a>
</nav>
<div class="nav__actions">
<a class="nav__round nav__account" href="#" aria-label="Your account">
<svg viewBox="0 0 20 20" width="16" height="16" aria-hidden="true"><circle cx="10" cy="10" r="8.2" fill="none" stroke="currentColor" stroke-width="1.6"/><circle cx="10" cy="8" r="2.8" fill="none" stroke="currentColor" stroke-width="1.6"/><path d="M4.8 15.6c1.3-1.9 3-2.8 5.2-2.8s3.9.9 5.2 2.8" fill="none" stroke="currentColor" stroke-width="1.6"/></svg>
</a>
<a class="nav__join" href="#">Join <span class="nav__arrow" aria-hidden="true"></span></a>
<button class="nav__round nav__burger" type="button" aria-expanded="false" aria-label="Open menu">
<span class="nav__lines" aria-hidden="true"></span>
</button>
</div>
<div class="nav__panel">
<a class="nav__panel-link" href="#">Seeds <span class="nav__count">212</span></a>
<a class="nav__panel-link" href="#">Membership</a>
<a class="nav__panel-link" href="#">FAQ</a>
<a class="nav__panel-link" href="#">Gardens</a>
</div>
</header>
<style>
.nav {
position: relative;
z-index: 5;
display: flex;
align-items: center;
gap: var(--space-xs);
padding: var(--edge);
background: var(--night);
}
.nav__wordmark {
display: inline-flex;
align-items: center;
min-height: 44px;
margin-right: auto;
color: var(--white);
font-family: var(--font-display);
font-size: 22px;
font-weight: var(--weight);
letter-spacing: var(--track-tight);
text-decoration: none;
}
.nav__bar {
display: flex;
align-items: center;
gap: 2px;
height: var(--control);
padding: 0 var(--space-s);
border-radius: var(--radius-xl);
background: var(--white);
}
.nav__link,
.nav__panel-link {
display: inline-flex;
align-items: center;
gap: var(--space-xs);
min-height: 44px;
padding: 0 var(--space-s);
border-radius: var(--radius-pill);
color: var(--ink);
font: var(--weight) var(--text-s)/1 var(--font-mono);
text-transform: uppercase;
text-decoration: none;
transition: background-color var(--quick) ease;
}
.nav__link:hover,
.nav__link:focus-visible {
background: var(--card);
outline: none;
}
.nav__count {
padding: 4px 7px;
border-radius: var(--radius-pill);
background: var(--card);
font-size: var(--text-xs);
transition: background-color var(--quick) ease;
}
.nav__link:hover .nav__count { background: var(--lime); }
.nav__actions {
display: flex;
gap: var(--space-xs);
}
.nav__round {
display: grid;
place-items: center;
width: var(--control);
height: var(--control);
padding: 0;
border: 0;
border-radius: var(--radius-pill);
background: var(--white);
color: var(--ink);
cursor: pointer;
transition: background-color var(--medium) ease;
}
.nav__round:hover { background: var(--card); }
.nav__join {
display: inline-flex;
align-items: center;
gap: var(--space-s);
height: var(--control);
padding: 0 26px;
border-radius: var(--radius-pill);
background: var(--lime);
color: var(--ink);
font: var(--weight) var(--text-s)/1 var(--font-mono);
text-transform: uppercase;
text-decoration: none;
transition: background-color var(--medium) ease;
}
.nav__join:hover,
.nav__join:focus-visible { background: var(--white); outline: none; }
.nav__arrow {
width: 0;
height: 0;
border-left: 5px solid transparent;
border-right: 5px solid transparent;
border-top: 7px solid currentColor;
transition: rotate var(--medium) var(--ease);
}
.nav__join:hover .nav__arrow { rotate: -90deg; }
.nav__burger { display: none; }
.nav__lines,
.nav__lines::before {
display: block;
width: 20px;
height: 1.5px;
background: currentColor;
transition: translate var(--medium) var(--ease), rotate var(--medium) var(--ease);
}
.nav__lines { translate: 0 -3.5px; }
.nav__lines::before { content: ""; translate: 0 7px; }
.nav.is-open .nav__lines { translate: 0 0; rotate: 45deg; }
.nav.is-open .nav__lines::before { translate: 0 0; rotate: -90deg; }
.nav__panel {
position: absolute;
top: calc(100% - var(--space-s));
right: var(--edge);
left: var(--edge);
display: none;
flex-direction: column;
padding: var(--space-s);
border-radius: var(--radius-l);
background: var(--white);
}
.nav__panel-link { justify-content: space-between; min-height: 52px; font-size: 15px; }
.nav__panel-link + .nav__panel-link { border-top: var(--rule) solid var(--line-light); border-radius: 0; }
@media (max-width: 860px) {
.nav__bar,
.nav__account { display: none; }
.nav__burger { display: grid; }
.nav.is-open .nav__panel { display: flex; }
}
@media (max-width: 380px) {
.nav__wordmark { font-size: 19px; }
.nav__join { padding: 0 18px; }
}
</style>
<script>
(() => {
for (const root of document.querySelectorAll('.nav')) {
const burger = root.querySelector('.nav__burger');
if (!burger) continue;
burger.addEventListener('click', () => {
const open = root.classList.toggle('is-open');
burger.setAttribute('aria-expanded', String(open));
burger.setAttribute('aria-label', open ? 'Close menu' : 'Open menu');
});
}
})();
</script>
Tile ring hero
A white opening screen: the headline split to both sides of a black stage where twelve rounded picture tiles orbit a small label.
Code
React For Figma<section class="hero">
<h1 class="hero__title">
<span class="hero__side hero__side--left">Rare seeds,</span>
<span class="hero__stage">
<span class="hero__ring">
<img class="hero__tile" style="--i:0" src="assets/poppies-daisies.jpg" alt="Poppies and daisies in a jug" width="800" height="636">
<img class="hero__tile" style="--i:1" src="assets/beach.jpg" alt="Boats on a beach under cloud" width="800" height="591">
<img class="hero__tile" style="--i:2" src="assets/apples.jpg" alt="A bowl of apples seen from above" width="598" height="800">
<img class="hero__tile" style="--i:3" src="assets/poppy-field.jpg" alt="A poppy field below poplars" width="800" height="520">
<img class="hero__tile" style="--i:4" src="assets/sunflowers.jpg" alt="Two sunflower heads in a vase" width="617" height="800">
<img class="hero__tile" style="--i:5" src="assets/pears-lemons.jpg" alt="Grapes, pears and lemons on a cloth" width="800" height="662">
<img class="hero__tile" style="--i:6" src="assets/harbour.jpg" alt="A harbour under a yellow sky" width="800" height="588">
<img class="hero__tile" style="--i:7" src="assets/apples-grapes.jpg" alt="Apples and grapes on a white cloth" width="800" height="640">
<img class="hero__tile" style="--i:8" src="assets/poppies-daisies.jpg" alt="" width="800" height="636">
<img class="hero__tile" style="--i:9" src="assets/poppy-field.jpg" alt="" width="800" height="520">
<img class="hero__tile" style="--i:10" src="assets/apples.jpg" alt="" width="598" height="800">
<img class="hero__tile" style="--i:11" src="assets/beach.jpg" alt="" width="800" height="591">
</span>
<span class="hero__label">Swap shelf <sup class="hero__label-count">12</sup></span>
</span>
<span class="hero__side hero__side--right">swapped by post</span>
</h1>
<div class="hero__foot">
<p class="hero__lead">A growing library of 212 open-pollinated seeds, each with a sowing card, a grower's note and a packet you send back next autumn.</p>
<a class="hero__button" href="#">Browse the shelf <span class="hero__arrow" aria-hidden="true"></span></a>
<span class="hero__scroll" aria-hidden="true">↓ Scroll to sow</span>
</div>
</section>
<style>
.hero {
display: grid;
align-content: space-between;
gap: var(--space-l);
min-height: clamp(560px, 50vw, 720px);
padding: var(--space-l) var(--edge) var(--edge);
background: var(--white);
color: var(--ink);
}
.hero__title {
display: grid;
grid-template-columns: 1fr auto 1fr;
align-items: center;
gap: var(--space-m);
margin: 0;
font: var(--weight) var(--text-l)/1.2 var(--font-display);
letter-spacing: var(--track-tight);
}
.hero__side--right { text-align: right; }
.hero__stage {
position: relative;
display: grid;
place-items: center;
width: clamp(300px, 34vw, 480px);
aspect-ratio: 16 / 11;
overflow: hidden;
border-radius: var(--radius-s);
background: var(--night);
color: var(--white);
}
.hero__ring {
position: absolute;
inset: 0;
}
.hero__tile {
position: absolute;
top: 50%;
left: 50%;
width: 12%;
height: auto;
aspect-ratio: 1;
object-fit: cover;
border-radius: var(--radius-m);
--angle: calc(var(--i) * 30deg);
transform: translate(-50%, -50%) rotate(var(--angle)) translateY(-200%) rotate(calc(var(--angle) * -1));
animation: hero-orbit var(--orbit) linear infinite;
}
.hero__tile:nth-child(3n) { width: 10%; }
.hero__tile:nth-child(4n + 1) { border-radius: 50% 50% var(--radius-s) var(--radius-s); }
.hero__label {
position: relative;
font-size: 15px;
}
.hero__label-count { color: var(--ash); font-size: 11px; }
.hero__stage:hover .hero__tile,
.hero.is-off .hero__tile { animation-play-state: paused; }
@keyframes hero-orbit {
to { transform: translate(-50%, -50%) rotate(calc(var(--angle) + 360deg)) translateY(-200%) rotate(calc(var(--angle) * -1 - 360deg)); }
}
.hero__foot {
display: grid;
grid-template-columns: minmax(0, 300px) 1fr;
align-items: end;
gap: var(--space-m) var(--space-l);
}
.hero__lead {
grid-column: 1;
margin: 0;
font-size: 14px;
line-height: 1.4;
}
.hero__button {
grid-column: 1;
justify-self: start;
display: inline-flex;
align-items: center;
gap: var(--space-s);
min-height: var(--control);
padding: 0 26px;
border-radius: var(--radius-pill);
background: var(--night);
color: var(--white);
font: var(--weight) var(--text-s)/1 var(--font-mono);
text-transform: uppercase;
text-decoration: none;
transition: background-color var(--medium) ease, color var(--medium) ease;
}
.hero__button:hover,
.hero__button:focus-visible { background: var(--lime); color: var(--ink); outline: none; }
.hero__arrow {
border-left: 5px solid transparent;
border-right: 5px solid transparent;
border-top: 7px solid currentColor;
}
.hero__scroll {
grid-column: 2;
grid-row: 2;
justify-self: end;
color: var(--ash);
font: var(--weight) var(--text-xs)/1 var(--font-mono);
text-transform: uppercase;
}
@media (max-width: 760px) {
.hero { min-height: 0; padding-top: var(--space-xl); }
.hero__title {
grid-template-columns: 1fr;
justify-items: center;
gap: 0;
font-size: clamp(40px, 11vw, 64px);
line-height: var(--leading-tight);
text-align: center;
}
.hero__side--right { text-align: center; }
.hero__stage { order: 3; width: 100%; margin-top: var(--space-l); }
.hero__foot { grid-template-columns: 1fr; justify-items: center; text-align: center; }
.hero__lead { font-size: var(--text-m); }
.hero__button { justify-self: center; }
.hero__scroll { display: none; }
}
@media (prefers-reduced-motion: reduce) {
.hero__tile { animation: none; }
}
</style>
<script>
(() => {
const watch = new IntersectionObserver((entries) => {
for (const entry of entries) entry.target.classList.toggle('is-off', !entry.isIntersecting);
});
for (const root of document.querySelectorAll('.hero')) watch.observe(root);
})();
</script>
Grey card rail
Centred headline with a two-grey lead, then three light grey cards each with a white date chip, a small black screen holding a picture and a mono meta line below.
Code
React For Figma<section class="collection">
<header class="collection__head">
<h2 class="collection__title">Better harvests, without the guesswork</h2>
<p class="collection__lead">Grow standout plants <span class="collection__soft">in any patch of soil,</span> without the trial and error. <span class="collection__soft">Every packet comes with</span> a sowing card and a grower's note.</p>
</header>
<ul class="collection__rail">
<li class="collection__item">
<a class="collection__card" href="#">
<span class="collection__chip">Added 3 days ago</span>
<span class="collection__screen"><img class="collection__picture" src="assets/poppy-field.jpg" alt="A poppy field below a row of poplars" width="800" height="520"></span>
</a>
<p class="collection__meta"><span class="collection__number">212</span>Field poppy, sun, autumn sowing</p>
</li>
<li class="collection__item">
<a class="collection__card" href="#">
<span class="collection__chip">Added 1 week ago</span>
<span class="collection__screen"><img class="collection__picture" src="assets/pears-lemons.jpg" alt="Grapes, pears and lemons on a cloth" width="800" height="662"></span>
</a>
<p class="collection__meta"><span class="collection__number">211</span>Dwarf pear, pips, cold start</p>
</li>
<li class="collection__item">
<a class="collection__card" href="#">
<span class="collection__chip">Added 2 weeks ago</span>
<span class="collection__screen"><img class="collection__picture" src="assets/sunflowers.jpg" alt="Two sunflower heads in a vase" width="617" height="800"></span>
</a>
<p class="collection__meta"><span class="collection__number">210</span>Giant sunflower, spring</p>
</li>
</ul>
</section>
<style>
.collection {
padding: var(--section-space) var(--edge);
background: var(--night);
color: var(--white);
}
.collection__head {
max-width: 560px;
margin: 0 auto var(--space-l);
text-align: center;
}
.collection__title {
margin: 0 0 var(--space-m);
font: var(--weight) var(--display-m)/var(--leading-tight) var(--font-display);
letter-spacing: var(--track-tight);
text-wrap: balance;
}
.collection__lead {
margin: 0;
font-size: var(--text-m);
line-height: 1.4;
text-wrap: balance;
}
.collection__soft { color: var(--ash); }
.collection__rail {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: var(--gap);
margin: 0;
padding: 0;
list-style: none;
}
.collection__card {
position: relative;
display: grid;
place-items: center;
aspect-ratio: 1 / 1;
padding: 15%;
border-radius: var(--radius-l);
background: var(--card);
color: var(--ink);
text-decoration: none;
outline-offset: 3px;
}
.collection__chip {
position: absolute;
top: var(--gap);
left: var(--gap);
padding: 10px 18px;
border-radius: var(--radius-pill);
background: var(--white);
font: var(--weight) var(--text-xs)/1 var(--font-mono);
text-transform: uppercase;
transition: background-color var(--quick) ease;
}
.collection__card:hover .collection__chip { background: var(--lime); }
.collection__screen {
display: grid;
place-items: center;
width: 100%;
aspect-ratio: 16 / 9;
overflow: hidden;
border-radius: var(--radius-s);
background: var(--night);
}
.collection__picture {
width: 42%;
height: auto;
aspect-ratio: 4 / 5;
object-fit: cover;
transition: width var(--slow) var(--ease), aspect-ratio var(--slow) var(--ease);
}
.collection__card:hover .collection__picture,
.collection__card:focus-visible .collection__picture {
width: 100%;
aspect-ratio: 16 / 9;
}
.collection__meta {
margin: var(--space-s) 0 0;
font: var(--weight) var(--text-xs)/1.4 var(--font-mono);
text-transform: uppercase;
}
.collection__number { display: block; }
@media (max-width: 760px) {
.collection__rail {
grid-template-columns: none;
grid-auto-flow: column;
grid-auto-columns: 86%;
overflow-x: auto;
scroll-snap-type: x mandatory;
margin: 0 calc(var(--edge) * -1);
padding: 0 var(--edge);
scrollbar-width: none;
}
.collection__item { scroll-snap-align: center; }
.collection__card { aspect-ratio: 4 / 5; padding: 8%; }
}
</style>
Avatar stack and name grid
Overlapping drawn avatars ending in a lime count pill, a two-grey line, then a ruled grid of member names set as wordmarks.
Code
React For Figma<section class="trust">
<div class="trust__stack" aria-label="Some of our 2,400 members">
<svg class="trust__avatar" style="--skin:#e9b99a; --hair:#2b1d14; --shirt:var(--mint)" viewBox="0 0 40 40" aria-hidden="true"><rect class="trust__bg" width="40" height="40"/><path d="M8 40c1-8 6-11 12-11s11 3 12 11z" fill="var(--shirt)"/><circle cx="20" cy="18" r="8" fill="var(--skin)"/><path d="M12 17c0-6 4-9 8-9s8 3 8 9c-2-3-5-4-8-4s-6 1-8 4z" fill="var(--hair)"/></svg>
<svg class="trust__avatar" style="--skin:#c98d68; --hair:#121212; --shirt:var(--sky)" viewBox="0 0 40 40" aria-hidden="true"><rect class="trust__bg" width="40" height="40"/><path d="M8 40c1-8 6-11 12-11s11 3 12 11z" fill="var(--shirt)"/><circle cx="20" cy="18" r="8" fill="var(--skin)"/><circle cx="20" cy="9" r="4" fill="var(--hair)"/><path d="M12 16c1-4 4-6 8-6s7 2 8 6z" fill="var(--hair)"/></svg>
<svg class="trust__avatar" style="--skin:#f1cfb4; --hair:#b8742f; --shirt:var(--ash)" viewBox="0 0 40 40" aria-hidden="true"><rect class="trust__bg" width="40" height="40"/><path d="M8 40c1-8 6-11 12-11s11 3 12 11z" fill="var(--shirt)"/><path d="M11 26c-1-12 3-18 9-18s10 6 9 18z" fill="var(--hair)"/><circle cx="20" cy="18" r="7" fill="var(--skin)"/></svg>
<svg class="trust__avatar" style="--skin:#8a5a3c; --hair:#1b1b1b; --shirt:var(--lime)" viewBox="0 0 40 40" aria-hidden="true"><rect class="trust__bg" width="40" height="40"/><path d="M8 40c1-8 6-11 12-11s11 3 12 11z" fill="var(--shirt)"/><circle cx="20" cy="18" r="8" fill="var(--skin)"/><path d="M12 15c1-5 4-7 8-7s7 2 8 7z" fill="var(--hair)"/><rect x="14" y="17" width="12" height="2" rx="1" fill="var(--ink)"/></svg>
<svg class="trust__avatar" style="--skin:#e0a987; --hair:#6b6b6b; --shirt:var(--card)" viewBox="0 0 40 40" aria-hidden="true"><rect class="trust__bg" width="40" height="40"/><path d="M8 40c1-8 6-11 12-11s11 3 12 11z" fill="var(--shirt)"/><circle cx="20" cy="18" r="8" fill="var(--skin)"/><path d="M13 22c2 5 12 5 14 0v4c-3 4-11 4-14 0z" fill="var(--hair)"/></svg>
<span class="trust__count">2,4K+</span>
</div>
<p class="trust__line"><span class="trust__soft">Swapped by</span> 2,400+ gardeners <span class="trust__soft">&</span> allotment groups <span class="trust__soft">across three countries</span></p>
<ul class="trust__names">
<li class="trust__name trust__name--caps">Hollow Lane</li>
<li class="trust__name trust__name--serif">Fernbrook</li>
<li class="trust__name trust__name--mono">PLOT/47</li>
<li class="trust__name trust__name--wide">Ostra</li>
<li class="trust__name trust__name--boxed"><span>R</span><span>O</span><span>W</span></li>
<li class="trust__name trust__name--serif">Mudlark & Co</li>
<li class="trust__name trust__name--caps">Seedhouse</li>
<li class="trust__name trust__name--wide">Brassica</li>
</ul>
</section>
<style>
.trust {
display: grid;
justify-items: center;
gap: var(--space-m);
padding: var(--section-space) var(--edge);
background: var(--night);
color: var(--white);
text-align: center;
}
.trust__stack {
display: flex;
align-items: center;
}
.trust__avatar {
width: 44px;
height: 44px;
margin-right: -8px;
border: 2px solid var(--night);
border-radius: var(--radius-pill);
transition: translate var(--quick) var(--ease);
}
.trust__avatar:hover { translate: 0 -4px; }
.trust__bg { fill: var(--night-chip); }
.trust__count {
display: grid;
place-items: center;
height: 44px;
padding: 0 12px;
border: 2px solid var(--night);
border-radius: var(--radius-pill);
background: var(--lime);
color: var(--ink);
font: var(--weight) var(--text-s)/1 var(--font-mono);
}
.trust__line {
max-width: 420px;
margin: 0;
font-size: var(--text-m);
line-height: 1.4;
text-wrap: balance;
}
.trust__soft { color: var(--ash); }
.trust__names {
display: grid;
grid-template-columns: repeat(4, minmax(0, 1fr));
width: min(100%, 1100px);
margin: var(--space-l) 0 0;
padding: 0;
list-style: none;
border-top: var(--rule) solid var(--line);
}
.trust__name {
display: grid;
place-items: center;
min-height: 96px;
padding: var(--space-s);
border-bottom: var(--rule) solid var(--line);
color: var(--white);
font: 600 19px/1 var(--font-display);
letter-spacing: var(--track-tight);
opacity: 0.85;
transition: opacity var(--quick) ease;
}
.trust__name:hover { opacity: 1; }
.trust__name:not(:nth-child(4n)) { border-right: var(--rule) solid var(--line); }
.trust__name--caps { text-transform: uppercase; letter-spacing: 0.08em; font-size: 16px; }
.trust__name--serif { font-family: var(--font-serif); font-style: italic; font-weight: 400; font-size: 21px; }
.trust__name--mono { font-family: var(--font-mono); font-size: 15px; }
.trust__name--wide { font-family: var(--font-poster); font-size: 17px; text-transform: lowercase; }
.trust__name--boxed { display: flex; justify-content: center; gap: 3px; font-size: 13px; }
.trust__name--boxed span { display: grid; place-items: center; width: 22px; height: 22px; background: var(--white); color: var(--ink); }
@media (max-width: 760px) {
.trust__names { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.trust__name:not(:nth-child(4n)) { border-right: 0; }
.trust__name:nth-child(odd) { border-right: var(--rule) solid var(--line); }
.trust__name { min-height: 72px; }
}
@media (max-width: 400px) {
.trust__avatar:nth-child(n + 4) { display: none; }
}
</style>
Typed statement
One huge centred two-line statement that types itself in on view, with a floating dark pill counter in the corner.
Code
React For Figma<section class="statement">
<h2 class="statement__text">
<span class="statement__line">212+ varieties.</span>
<span class="statement__line">New packet every week.</span>
</h2>
<p class="statement__counter" aria-hidden="true">Sown today <span class="statement__dot"></span> <span class="statement__count">038</span></p>
</section>
<style>
.statement {
position: relative;
display: grid;
place-items: center;
min-height: clamp(420px, 50vw, 720px);
padding: var(--section-space) var(--edge);
background: var(--night);
color: var(--white);
}
.statement__text {
margin: 0;
font: var(--weight) var(--display-xl)/var(--leading-tight) var(--font-display);
letter-spacing: var(--track-tight);
text-align: center;
}
.statement__line { display: block; }
.statement__word { display: inline-block; white-space: nowrap; }
.statement__char {
color: var(--night-chip);
transition: color var(--quick) ease;
}
.statement__char.is-typed { color: var(--white); }
.statement__char.is-caret { box-shadow: inset -0.06em 0 0 var(--lime); }
.statement__counter {
position: absolute;
right: var(--edge);
bottom: var(--edge);
display: flex;
align-items: center;
gap: var(--space-s);
margin: 0;
height: var(--control);
padding: 0 24px;
border-radius: var(--radius-pill);
background: var(--night-chip);
font: var(--weight) var(--text-s)/1 var(--font-mono);
text-transform: uppercase;
}
.statement__dot {
width: 6px;
height: 6px;
background: var(--lime);
}
.statement__count { font-variant-numeric: tabular-nums; }
@media (max-width: 760px) {
.statement__text { font-size: clamp(36px, 10vw, 56px); }
.statement__counter { height: 40px; padding: 0 16px; font-size: var(--text-xs); }
}
</style>
<script>
(() => {
const still = matchMedia('(prefers-reduced-motion: reduce)').matches;
for (const root of document.querySelectorAll('.statement')) {
const chars = [];
for (const line of root.querySelectorAll('.statement__line')) {
const text = line.textContent;
line.setAttribute('aria-label', text);
line.textContent = '';
text.split(/(\s+)/).forEach((part) => {
if (!part) return;
if (/^\s+$/.test(part)) { line.append(part); return; }
const word = document.createElement('span');
word.className = 'statement__word';
word.setAttribute('aria-hidden', 'true');
for (const letter of part) {
const span = document.createElement('span');
span.className = 'statement__char';
span.textContent = letter;
word.append(span);
chars.push(span);
}
line.append(word);
});
}
const count = root.querySelector('.statement__count');
const start = Number(count.textContent) || 0;
const show = (n) => {
chars.forEach((c, i) => {
c.classList.toggle('is-typed', i < n);
c.classList.toggle('is-caret', i === n - 1 && n < chars.length);
});
count.textContent = String(start + n).padStart(3, '0');
};
if (still) { show(chars.length); continue; }
let timer = 0;
let typed = 0;
const run = () => {
clearInterval(timer);
timer = setInterval(() => {
typed += 1;
show(typed);
if (typed >= chars.length) clearInterval(timer);
}, 28);
};
new IntersectionObserver((entries) => {
for (const entry of entries) {
if (entry.isIntersecting && typed < chars.length) run();
else clearInterval(timer);
}
}, { threshold: 0.3 }).observe(root);
}
})();
</script>
Fanned feature cards
Three pastel cards with arced heavy caps, a big faded numeral and a short line, fanning out from a stack on view.
Code
React For Figma<section class="fan">
<h2 class="fan__heading">Made to fit any garden</h2>
<ul class="fan__deck">
<li class="fan__card fan__card--one">
<svg class="fan__arc" viewBox="0 0 300 110" role="img" aria-label="Easy to start">
<path id="fan-arc-1" d="M0 104 Q150 4 300 104" fill="none"/>
<text><textPath href="#fan-arc-1" startOffset="50%" text-anchor="middle">EASY TO START</textPath></text>
</svg>
<span class="fan__numeral" aria-hidden="true">1</span>
<p class="fan__text">Dig in on day one. Every packet is chosen for a first season, so a windowsill is enough.</p>
</li>
<li class="fan__card fan__card--two">
<svg class="fan__arc" viewBox="0 0 300 110" role="img" aria-label="Send it back">
<path id="fan-arc-2" d="M0 104 Q150 4 300 104" fill="none"/>
<text><textPath href="#fan-arc-2" startOffset="50%" text-anchor="middle">SEND IT BACK</textPath></text>
</svg>
<span class="fan__numeral" aria-hidden="true">2</span>
<p class="fan__text">Save a few seeds at harvest and post them home in the return sleeve.</p>
</li>
<li class="fan__card fan__card--three">
<svg class="fan__arc" viewBox="0 0 300 110" role="img" aria-label="Local and hardy">
<path id="fan-arc-3" d="M0 104 Q150 4 300 104" fill="none"/>
<text><textPath href="#fan-arc-3" startOffset="50%" text-anchor="middle">LOCAL & HARDY</textPath></text>
</svg>
<span class="fan__numeral" aria-hidden="true">3</span>
<p class="fan__text">Grown out on members' plots for years, so each line knows your weather.</p>
</li>
</ul>
</section>
<style>
.fan {
display: grid;
justify-items: center;
gap: var(--space-l);
padding: var(--section-space) var(--edge);
overflow: hidden;
background: var(--night);
color: var(--white);
}
.fan__heading {
margin: 0;
font: var(--weight) var(--display-m)/var(--leading-tight) var(--font-display);
letter-spacing: var(--track-tight);
text-align: center;
}
.fan__deck {
position: relative;
display: grid;
grid-template-columns: repeat(3, 260px);
justify-content: center;
margin: 0;
padding: var(--space-m) 0;
list-style: none;
}
.fan__card {
display: grid;
justify-items: center;
align-content: start;
gap: var(--space-xs);
aspect-ratio: 5 / 6;
padding: var(--space-m) var(--space-m) var(--space-l);
border-radius: var(--radius-l);
color: var(--ink);
text-align: center;
box-shadow: var(--shadow-card);
translate: var(--x, 0) var(--y, 0);
rotate: var(--r, 0deg);
transition: translate var(--slow) var(--ease-out), rotate var(--slow) var(--ease-out);
}
.fan__card--one { --x: 40px; --y: 18px; --r: -8deg; background: var(--mint); z-index: 1; }
.fan__card--two { --x: 0px; --y: 0px; --r: 0deg; background: var(--chartreuse); z-index: 2; }
.fan__card--three { --x: -40px; --y: 12px; --r: 6deg; background: var(--sky); z-index: 3; }
.fan.is-stacked .fan__card--one { --x: 260px; --r: -2deg; }
.fan.is-stacked .fan__card--three { --x: -260px; --r: 2deg; }
.fan__card:hover { --y: -14px; z-index: 4; }
.fan__arc {
width: 100%;
overflow: visible;
}
.fan__arc text {
fill: currentColor;
font: 800 24px/1 var(--font-poster);
font-stretch: 125%;
}
.fan__numeral {
font: var(--weight) clamp(72px, 8vw, 110px)/1 var(--font-display);
letter-spacing: var(--track-tight);
opacity: 0.28;
}
.fan__text {
max-width: 22ch;
margin: 0;
font-size: 16px;
line-height: 1.35;
}
@media (max-width: 860px) {
.fan__deck { grid-template-columns: minmax(0, 300px); gap: 0; }
.fan__card { aspect-ratio: auto; padding-bottom: var(--space-m); }
.fan__card--one { --x: 0px; --y: 0px; --r: -4deg; }
.fan__card--two { --x: 0px; --y: -10px; --r: 3deg; }
.fan__card--three { --x: 0px; --y: -20px; --r: -2deg; }
.fan.is-stacked .fan__card--one,
.fan.is-stacked .fan__card--three { --x: 0px; }
}
</style>
<script>
(() => {
if (matchMedia('(prefers-reduced-motion: reduce)').matches) return;
for (const root of document.querySelectorAll('.fan')) {
const box = root.getBoundingClientRect();
if (box.top < innerHeight && box.bottom > 0) continue;
root.classList.add('is-stacked');
const seen = new IntersectionObserver((entries) => {
for (const entry of entries) {
if (!entry.isIntersecting) continue;
root.classList.remove('is-stacked');
seen.disconnect();
}
}, { threshold: 0.3 });
seen.observe(root);
}
})();
</script>
One plan pricing
A headline, a quarterly or annual pill toggle with a lime saving tag, and one grey price card with a mono list and a black pill button.
Code
React For Figma<section class="pricing">
<h2 class="pricing__title">One membership.<br>Every packet included.</h2>
<p class="pricing__note">Save 20% with a yearly plan</p>
<div class="pricing__toggle" role="group" aria-label="Billing period">
<button class="pricing__option" type="button" aria-pressed="false" data-price="9" data-per="per quarter">Quarterly</button>
<button class="pricing__option is-active" type="button" aria-pressed="true" data-price="29" data-per="per year">Yearly <span class="pricing__save">-20%</span></button>
<span class="pricing__thumb" aria-hidden="true"></span>
</div>
<article class="pricing__card">
<p class="pricing__plan">Grower</p>
<p class="pricing__price"><span class="pricing__amount">29</span><span class="pricing__currency">€</span> <span class="pricing__per">per year</span></p>
<ul class="pricing__list">
<li class="pricing__item">Four packets a season</li>
<li class="pricing__item">All 212 sowing cards</li>
<li class="pricing__item">Return sleeves, post paid</li>
<li class="pricing__item">Members' forum & swap days</li>
</ul>
<a class="pricing__button" href="#">Become a member <span class="pricing__arrow" aria-hidden="true"></span></a>
</article>
</section>
<style>
.pricing {
display: grid;
justify-items: center;
gap: var(--space-m);
padding: var(--section-space) var(--edge);
background: var(--night);
color: var(--white);
text-align: center;
}
.pricing__title {
margin: 0;
font: var(--weight) var(--display-l)/var(--leading-tight) var(--font-display);
letter-spacing: var(--track-tight);
}
.pricing__note {
margin: 0;
color: var(--ash);
font: var(--weight) var(--text-s)/1 var(--font-mono);
text-transform: uppercase;
}
.pricing__toggle {
position: relative;
display: grid;
grid-template-columns: 1fr 1fr;
padding: 4px;
border-radius: var(--radius-pill);
background: var(--night-chip);
}
.pricing__option {
position: relative;
z-index: 1;
display: inline-flex;
align-items: center;
justify-content: center;
gap: var(--space-xs);
min-width: 136px;
min-height: 44px;
padding: 0 18px;
border: 0;
border-radius: var(--radius-pill);
background: none;
color: var(--white);
font: var(--weight) var(--text-s)/1 var(--font-mono);
text-transform: uppercase;
cursor: pointer;
transition: color var(--medium) ease;
}
.pricing__option.is-active { color: var(--ink); }
.pricing__save {
padding: 4px 6px;
border-radius: var(--radius-pill);
background: var(--lime);
color: var(--ink);
font-size: var(--text-xs);
}
.pricing__thumb {
position: absolute;
top: 4px;
bottom: 4px;
left: 4px;
width: calc(50% - 4px);
border-radius: var(--radius-pill);
background: var(--white);
translate: 100% 0;
transition: translate var(--medium) var(--ease);
}
.pricing__toggle.is-first .pricing__thumb { translate: 0 0; }
.pricing__card {
display: grid;
gap: var(--space-m);
width: min(100%, 440px);
margin-top: var(--space-s);
padding: var(--space-l) var(--space-l) var(--space-m);
border-radius: var(--radius-l);
background: var(--card);
color: var(--ink);
text-align: left;
}
.pricing__plan {
justify-self: start;
margin: 0;
padding: 10px 18px;
border-radius: var(--radius-pill);
background: var(--white);
font: var(--weight) var(--text-xs)/1 var(--font-mono);
text-transform: uppercase;
}
.pricing__price {
margin: 0;
font: var(--weight) var(--display-l)/1 var(--font-display);
letter-spacing: var(--track-tight);
}
.pricing__per {
color: var(--ash);
font: var(--weight) var(--text-s)/1 var(--font-mono);
letter-spacing: 0;
text-transform: uppercase;
}
.pricing__list {
margin: 0;
padding: 0;
list-style: none;
border-top: var(--rule) solid var(--line-light);
}
.pricing__item {
display: flex;
align-items: center;
gap: var(--space-s);
padding: 12px 0;
border-bottom: var(--rule) solid var(--line-light);
font: var(--weight) var(--text-s)/1.3 var(--font-mono);
text-transform: uppercase;
}
.pricing__item::before {
content: "";
width: 6px;
height: 6px;
background: var(--lime);
outline: var(--rule) solid var(--ink);
}
.pricing__button {
display: flex;
align-items: center;
justify-content: center;
gap: var(--space-s);
min-height: var(--control);
border-radius: var(--radius-pill);
background: var(--night);
color: var(--white);
font: var(--weight) var(--text-s)/1 var(--font-mono);
text-transform: uppercase;
text-decoration: none;
transition: background-color var(--medium) ease, color var(--medium) ease;
}
.pricing__button:hover,
.pricing__button:focus-visible { background: var(--lime); color: var(--ink); outline: none; }
.pricing__arrow {
border-left: 5px solid transparent;
border-right: 5px solid transparent;
border-top: 7px solid currentColor;
}
@media (max-width: 420px) {
.pricing__option { min-width: 0; padding: 0 12px; }
.pricing__card { padding: var(--space-m) var(--space-m) var(--space-m); }
}
</style>
<script>
(() => {
for (const root of document.querySelectorAll('.pricing')) {
const toggle = root.querySelector('.pricing__toggle');
const options = [...root.querySelectorAll('.pricing__option')];
const amount = root.querySelector('.pricing__amount');
const per = root.querySelector('.pricing__per');
options.forEach((option, index) => {
option.addEventListener('click', () => {
options.forEach((o) => {
o.classList.toggle('is-active', o === option);
o.setAttribute('aria-pressed', String(o === option));
});
toggle.classList.toggle('is-first', index === 0);
amount.textContent = option.dataset.price;
per.textContent = option.dataset.per;
});
});
}
})();
</script>
Style
- --night #0a0a0b
- --night-raised #121212
- --night-chip #232323
- --white #ffffff
- --card #f3f3f3
- --ink #0a0a0b
- --ash #999999
- --line #2a2a2b
- --line-light #dcdcdc
- --lime #c9fe6e
- --mint #74d1a5
- --chartreuse #c9fb6d
- --sky #bdeffd
Type
- Inter Tight for headlines and text, stands in for a tightly tracked medium-weight neo-grotesk used for every headline and paragraph
- IBM Plex Mono for labels and buttons, stands in for a neutral uppercase monospace for menus, chips, buttons and meta lines
- Archivo (expanded 125, 800) for fan card caps, stands in for the heavy wide caps set on an arc across the tilted feature cards
Motion
- The hero's ring of picture tiles turns once every 40 s, linear and endless, while each tile counter-rotates to stay upright; it stops off screen and under reduced motion.
- Headlines rise 16 px and fade in over 700 ms with the default ease, a line or item 80 ms after the one before.
- The statement types its letters in one by one at 28 ms a letter, with a lime caret, when it enters the screen.
- The three feature cards lie stacked and fan out to their tilted spread over 700 ms on view, and lift 14 px on hover.
- Pills and buttons swap background in 150 to 300 ms with a plain ease; the price toggle slides its white thumb in 300 ms.
Rules
- The page is near black; light grey cards with 20 px corners are the only big light surfaces.
- One weight (500) everywhere; headlines are tracked tight at -0.02em and centred.
- Every label, button, chip and meta line is uppercase mono at 11 to 13 px.
- A sentence carries two greys: key words in white, the connecting words in #999.
- Lime is used only for the join button, count pills and small dots, never for a field.
- Menus sit in one white pill bar with a round icon button and a lime pill beside it.
- Pictures sit small and rounded inside black screens or tiles, never full bleed.
base.css
/* Fonts: free Google Fonts that stand in for the site's faces. */
@import url("https://fonts.googleapis.com/css2?family=Inter+Tight:wght@400;500;600&family=IBM+Plex+Mono:wght@500&family=Archivo:wdth,wght@125,800&display=swap");
:root {
/* Colour */
--night: #0a0a0b; /* page background, the dark stage */
--night-raised: #121212; /* raised dark band */
--night-chip: #232323; /* dark pill and floating counter */
--white: #ffffff; /* text on dark, pill menu, chips on cards */
--card: #f3f3f3; /* light grey card face */
--ink: #0a0a0b; /* text on light surfaces */
--ash: #999999; /* second-level text, the greyed words in a sentence */
--line: #2a2a2b; /* hairline rule on dark */
--line-light: #dcdcdc; /* hairline rule on light */
--lime: #c9fe6e; /* the one accent: join button, count pills, dots */
--mint: #74d1a5; /* fan card one */
--chartreuse: #c9fb6d; /* fan card two */
--sky: #bdeffd; /* fan card three */
/* Type */
--font-display: "Inter Tight", "Helvetica Neue", Arial, sans-serif; /* headlines and running text, tightly tracked grotesk */
--font-body: "Inter Tight", "Helvetica Neue", Arial, sans-serif; /* running text */
--font-mono: "IBM Plex Mono", ui-monospace, monospace; /* uppercase labels, buttons, chips */
--font-serif: Georgia, "Times New Roman", serif; /* one member wordmark in the name grid */
--font-poster: "Archivo", "Inter Tight", sans-serif; /* heavy wide caps on the fan cards */
--weight: 500; /* the one weight for grotesk and mono */
--display-xl: clamp(44px, 6.4vw, 92px); /* statement and hero headline */
--display-l: clamp(32px, 4.5vw, 65px); /* section headlines */
--display-m: clamp(26px, 3.4vw, 48px); /* price, card numbers */
--text-l: clamp(18px, 1.6vw, 22px); /* lead paragraph */
--text-m: 18px; /* body */
--text-s: 13px; /* mono labels, buttons */
--text-xs: 11px; /* small mono meta */
--track-tight: -0.02em; /* grotesk headlines */
--leading-tight: 1.02; /* headlines */
/* Space */
--edge: clamp(16px, 1.75vw, 25px); /* page side margin */
--gap: 15px; /* gutter between cards */
--space-xs: 6px; /* inside chips */
--space-s: 12px; /* small stack */
--space-m: 24px; /* default stack */
--space-l: 40px; /* between groups */
--space-xl: 72px; /* above a section headline */
--section-space: clamp(72px, 10vw, 140px); /* top and bottom of a section */
/* Shape */
--radius-s: 4px; /* inner screens and small frames */
--radius-m: 12px; /* photo tiles */
--radius-l: 20px; /* cards */
--radius-xl: 25px; /* pill menu bar */
--radius-pill: 999px; /* pills and round buttons */
--rule: 1px; /* hairline */
--shadow-card: -8px 10px 30px rgb(0 0 0 / 0.35); /* soft lift under the fanned cards */
--control: 50px; /* height of pills and round buttons */
/* Motion */
--ease: cubic-bezier(0.2, 0.7, 0.2, 1); /* reveals and card moves */
--ease-out: cubic-bezier(0.16, 1, 0.3, 1); /* fan spreading */
--quick: 200ms; /* hover fades */
--medium: 300ms; /* background swaps */
--slow: 700ms; /* fan and reveal moves */
--orbit: 40s; /* one turn of the tile ring */
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--night); color: var(--white); font: var(--weight) var(--text-m)/1.4 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("tile-ring-blackroom"), 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