Lights-Out Pill Index
A warm near-black page where one plain grotesk does everything: a giant wordmark split around a floating pill menu, heavy statements, and a numbered tile index whose captions sit in frosted pills. Suits design studios, art directors and small digital shops that want their work to glow out of the dark.
Parts
Ticker loader
Full-width black screen with the brand name running as a ticker, a tiny 'loading' pill between repeats; it fades away after a moment and can be replayed.
Code
React For Figma<section class="loader" aria-label="Loading screen">
<div class="loader__screen">
<div class="loader__ticker" aria-hidden="true">
<div class="loader__track">
<span class="loader__item"><span class="loader__name">Ostra Vale</span><span class="loader__pill">loading</span></span>
<span class="loader__item"><span class="loader__name">Ostra Vale</span><span class="loader__pill">loading</span></span>
<span class="loader__item"><span class="loader__name">Ostra Vale</span><span class="loader__pill">loading</span></span>
<span class="loader__item"><span class="loader__name">Ostra Vale</span><span class="loader__pill">loading</span></span>
</div>
</div>
<p class="loader__done">Studio for brand systems and quiet interfaces</p>
<div class="loader__foot">
<span class="loader__count">INDEX / <span class="loader__percent">000</span></span>
<button class="loader__replay" type="button">Replay</button>
</div>
</div>
</section>
<style>
.loader {
padding: var(--frame);
}
.loader__screen {
position: relative;
display: grid;
place-items: center;
min-height: clamp(360px, 46vw, 660px);
overflow: hidden;
border-radius: var(--radius-tile);
background: var(--paper);
}
.loader__ticker {
grid-area: 1 / 1;
width: 100%;
overflow: hidden;
transition: opacity var(--enter) var(--ease-out);
}
.loader__track {
display: flex;
width: max-content;
animation: loader-roll var(--ticker) linear infinite;
}
.loader__item {
display: inline-flex;
flex: none;
align-items: center;
gap: clamp(10px, 1.2vw, 18px);
padding-right: clamp(10px, 1.2vw, 18px);
white-space: nowrap;
}
.loader__name {
font-family: var(--font-display);
font-size: clamp(28px, 3.4vw, 48px);
font-weight: 700;
letter-spacing: -0.01em;
}
.loader__pill {
padding: 2px 7px;
border: var(--rule) solid var(--ink-soft);
border-radius: var(--radius-pill);
color: var(--ink-soft);
font-size: 8px;
line-height: 1;
}
.loader__done {
position: absolute;
inset: calc(50% + clamp(40px, 4vw, 56px)) var(--edge) auto;
margin: 0;
color: var(--ink-soft);
font-size: var(--text-xs);
letter-spacing: var(--track-caps);
text-align: center;
text-transform: uppercase;
opacity: 0;
transition: opacity var(--enter) var(--ease-out);
}
.loader__foot {
position: absolute;
inset: auto var(--edge) var(--space-m);
display: flex;
align-items: center;
justify-content: space-between;
}
.loader__count {
color: var(--ink-soft);
font-size: var(--text-xs);
letter-spacing: var(--track-caps);
font-variant-numeric: tabular-nums;
}
.loader__replay {
min-height: var(--tap);
padding: 0 18px;
border: var(--rule) solid var(--line);
border-radius: var(--radius-pill);
background: transparent;
color: var(--ink);
font: 400 var(--text-s) / 1 var(--font-body);
cursor: pointer;
background-clip: content-box;
transition: border-color var(--quick) var(--ease);
}
.loader__replay:hover,
.loader__replay:focus-visible {
border-color: var(--line-strong);
outline: none;
}
.loader.is-done .loader__done {
opacity: 1;
}
@keyframes loader-roll {
to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
.loader__track { animation: none; }
}
</style>
<script>
(() => {
for (const root of document.querySelectorAll('.loader')) {
const track = root.querySelector('.loader__track');
for (const item of [...track.children]) {
const copy = item.cloneNode(true);
track.append(copy);
}
const percent = root.querySelector('.loader__percent');
let frame = 0;
let timer = 0;
const run = () => {
root.classList.remove('is-done');
cancelAnimationFrame(frame);
clearTimeout(timer);
const start = performance.now();
const length = 3200;
const step = (now) => {
const done = Math.min(1, (now - start) / length);
percent.textContent = String(Math.round(done * 100)).padStart(3, '0');
if (done < 1) frame = requestAnimationFrame(step);
else timer = setTimeout(() => root.classList.add('is-done'), 600);
};
frame = requestAnimationFrame(step);
};
root.querySelector('.loader__replay').addEventListener('click', run);
run();
}
})();
</script>
Split wordmark hero
The wordmark in two giant words pushed to both edges with the pill menu floating between them, over a full-width grayscale photograph in a 5 px frame.
Code
React For Figma<header class="hero">
<div class="hero__top">
<p class="hero__word hero__word--first" aria-hidden="true">OSTRA</p>
<nav class="hero__nav" aria-label="Main">
<span class="hero__marker" aria-hidden="true"></span>
<a class="hero__link is-active" href="#" aria-current="page">Index</a>
<a class="hero__link" href="#">About</a>
<a class="hero__link" href="#">Journal</a>
<a class="hero__link" href="#">Shop</a>
</nav>
<p class="hero__word hero__word--last" aria-hidden="true">VALE</p>
<h1 class="hero__title">Ostra Vale</h1>
</div>
<figure class="hero__frame">
<img class="hero__photo" src="assets/hero-stairs.jpg" alt="White concrete stairs casting a stepped shadow across a plaster wall" width="1600" height="1067">
<figcaption class="hero__caption">
<span class="hero__pill">Brand systems, interfaces and type</span>
<span class="hero__pill hero__pill--soft">Lisbon / Remote</span>
</figcaption>
</figure>
</header>
<style>
.hero {
padding: var(--frame) var(--frame) 0;
}
.hero__top {
display: grid;
grid-template-columns: auto 1fr auto;
align-items: start;
gap: var(--space-m);
padding: 0 0 clamp(6px, 0.8vw, 12px);
}
.hero__word {
margin: 0;
font-family: var(--font-display);
font-size: var(--wordmark);
font-weight: 500;
line-height: 0.78;
letter-spacing: -0.035em;
padding-top: 0.06em;
}
.hero__word--last {
grid-column: 3;
text-align: right;
}
.hero__title {
position: absolute;
width: 1px;
height: 1px;
overflow: hidden;
clip: rect(0 0 0 0);
white-space: nowrap;
}
.hero__nav {
position: relative;
justify-self: center;
display: flex;
gap: var(--space-xs);
padding: var(--space-xs);
border: var(--rule) solid var(--line);
border-radius: var(--radius-pill);
background: var(--veil);
backdrop-filter: blur(14px);
-webkit-backdrop-filter: blur(14px);
}
.hero__marker {
position: absolute;
top: var(--space-xs);
bottom: var(--space-xs);
left: 0;
width: 0;
border-radius: var(--radius-pill);
background: var(--pill-fill);
transition: transform var(--move) var(--ease), width var(--move) var(--ease);
}
.hero__link {
position: relative;
display: inline-flex;
align-items: center;
min-height: var(--tap);
padding: 0 clamp(12px, 1.5vw, 21px);
border-radius: var(--radius-pill);
color: var(--ink);
font-size: var(--text-s);
text-decoration: none;
opacity: 0.86;
transition: opacity var(--quick) var(--ease);
}
.hero__link:hover,
.hero__link.is-active {
opacity: 1;
}
.hero__link:focus-visible {
outline: var(--rule) solid var(--ink);
outline-offset: -2px;
}
.hero__frame {
position: relative;
margin: 0;
overflow: hidden;
border-radius: var(--radius-tile);
background: var(--tile);
}
.hero__photo {
width: 100%;
height: clamp(380px, 52vw, 760px);
object-fit: cover;
object-position: 40% 50%;
filter: grayscale(1) contrast(1.05) brightness(0.86);
}
.hero__caption {
position: absolute;
left: var(--space-m);
bottom: var(--space-m);
display: flex;
flex-wrap: wrap;
gap: var(--space-s);
}
.hero__pill {
display: inline-flex;
align-items: center;
min-height: var(--pill-h);
padding: 0 16px;
border-radius: var(--radius-pill);
background: var(--veil);
color: var(--ink);
font-size: var(--text-s);
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
}
.hero__pill--soft {
color: var(--ink-soft);
}
@media (max-width: 1180px) {
.hero__top {
grid-template-columns: 1fr auto;
row-gap: var(--space-m);
}
.hero__nav {
grid-column: 1 / -1;
grid-row: 1;
}
.hero__word--first { grid-row: 2; }
.hero__word--last { grid-row: 2; grid-column: 2; }
}
@media (max-width: 520px) {
.hero__word { font-size: clamp(54px, 17vw, 96px); }
.hero__link { padding: 0 11px; }
.hero__nav { justify-self: stretch; justify-content: space-between; }
.hero__photo { height: clamp(420px, 120vw, 560px); }
}
</style>
<script>
(() => {
for (const root of document.querySelectorAll('.hero')) {
const nav = root.querySelector('.hero__nav');
const marker = root.querySelector('.hero__marker');
const links = [...root.querySelectorAll('.hero__link')];
const moveTo = (link) => {
marker.style.width = link.offsetWidth + 'px';
marker.style.transform = 'translateX(' + link.offsetLeft + 'px)';
};
const active = () => links.find((link) => link.classList.contains('is-active')) || links[0];
for (const link of links) {
link.addEventListener('mouseenter', () => moveTo(link));
link.addEventListener('focus', () => moveTo(link));
link.addEventListener('click', (event) => {
event.preventDefault();
for (const other of links) {
other.classList.toggle('is-active', other === link);
if (other === link) other.setAttribute('aria-current', 'page');
else other.removeAttribute('aria-current');
}
moveTo(link);
});
}
nav.addEventListener('mouseleave', () => moveTo(active()));
new ResizeObserver(() => moveTo(active())).observe(nav);
}
})();
</script>
Statement with pills
A heavy four-line statement in off-white with a row of hairline discipline pills beneath it.
Code
React For Figma<section class="statement">
<p class="statement__label">ABOUT / 00 / POSITION</p>
<h2 class="statement__text">Plain on the surface. Careful underneath. Enough of a system to repeat itself. Enough slack to surprise.</h2>
<ul class="statement__tags" aria-label="Disciplines">
<li><a class="statement__tag" href="#">Identity</a></li>
<li><a class="statement__tag" href="#">Art Direction</a></li>
<li><a class="statement__tag" href="#">Interface</a></li>
<li><a class="statement__tag" href="#">Type Systems</a></li>
<li><a class="statement__tag" href="#">Motion</a></li>
</ul>
</section>
<style>
.statement {
padding: var(--section-space) var(--edge);
}
.statement__label {
margin: 0 0 var(--space-l);
color: var(--ink-soft);
font-size: var(--text-xs);
line-height: 1;
letter-spacing: var(--track-caps);
}
.statement__text {
max-width: 18.5em;
margin: 0 0 var(--space-l);
font-family: var(--font-display);
font-size: var(--display-l);
font-weight: 800;
line-height: 1;
letter-spacing: -0.012em;
}
.statement__tags {
display: flex;
flex-wrap: wrap;
gap: 0 var(--space-s);
margin: 0;
padding: 0;
list-style: none;
}
.statement__tag {
position: relative;
display: inline-flex;
align-items: center;
min-height: var(--tap);
padding: 0 21px;
color: var(--ink);
font-size: var(--text-s);
text-decoration: none;
}
.statement__tag::before {
content: "";
position: absolute;
inset: calc((var(--tap) - var(--pill-h)) / 2) 0;
z-index: -1;
border: var(--rule) solid var(--line);
border-radius: var(--radius-pill);
transition: border-color var(--quick) var(--ease), background-color var(--quick) var(--ease);
}
.statement__tag:hover::before,
.statement__tag:focus-visible::before {
border-color: var(--line-strong);
background-color: var(--pill-fill);
}
.statement__tag:focus-visible {
outline: none;
}
.statement__tags li {
position: relative;
z-index: 0;
}
</style>
Daylight readout
A thin rule with a sun or moon riding along it by the local hour, uppercase readouts on both ends and a [LIGHT] switch that turns the band pale.
Code
React For Figma<section class="daylight" data-sunrise="7" data-sunset="19" aria-label="Studio daylight">
<div class="daylight__bar">
<p class="daylight__local">LOCAL / <time class="daylight__clock">00:00</time> <span class="daylight__zone">UTC</span></p>
<div class="daylight__rail" aria-hidden="true">
<span class="daylight__line"></span>
<span class="daylight__body">
<svg class="daylight__moon" viewBox="0 0 16 16" width="14" height="14"><path d="M10.6 1.4a6.6 6.6 0 1 0 4 10.1A5.6 5.6 0 0 1 10.6 1.4Z" fill="none" stroke="currentColor" stroke-width="1.2"/></svg>
<svg class="daylight__sun" viewBox="0 0 16 16" width="14" height="14"><circle cx="8" cy="8" r="3.2" fill="none" stroke="currentColor" stroke-width="1.2"/><path d="M8 0.8v2M8 13.2v2M0.8 8h2M13.2 8h2M2.9 2.9l1.4 1.4M11.7 11.7l1.4 1.4M2.9 13.1l1.4-1.4M11.7 4.3l1.4-1.4" stroke="currentColor" stroke-width="1.2"/></svg>
</span>
</div>
<p class="daylight__next">LIGHT AT 07:00 · IN 00H 00M</p>
<button class="daylight__switch" type="button" aria-pressed="false">[LIGHT]</button>
</div>
<div class="daylight__row">
<p class="daylight__label">INDEX / 01 / SELECTED WORK</p>
<a class="daylight__more" href="#">Journal</a>
</div>
</section>
<style>
.daylight {
--day-bg: var(--paper);
--day-fg: var(--ink);
padding: var(--space-xl) var(--edge);
background: var(--day-bg);
color: var(--day-fg);
transition: background-color var(--theme) ease, color var(--theme) ease;
}
.daylight.is-light {
--day-bg: var(--day-paper);
--day-fg: var(--day-ink);
}
.daylight__bar {
display: grid;
grid-template-columns: auto minmax(0, 1fr) auto auto;
align-items: center;
gap: var(--space-l);
}
.daylight__local,
.daylight__next,
.daylight__label {
margin: 0;
font-size: var(--text-xs);
line-height: 1;
letter-spacing: var(--track-caps);
opacity: 0.58;
white-space: nowrap;
font-variant-numeric: tabular-nums;
}
.daylight__rail {
position: relative;
height: 16px;
}
.daylight__line {
position: absolute;
inset: 50% 0 auto;
height: var(--rule);
background: currentColor;
opacity: 0.18;
}
.daylight__body {
position: absolute;
top: 50%;
left: var(--at, 50%);
display: grid;
place-items: center;
width: 22px;
height: 22px;
translate: -50% -50%;
background: var(--day-bg);
color: currentColor;
opacity: 0.7;
transition: left var(--move) var(--ease), background-color var(--theme) ease;
}
.daylight__moon,
.daylight__sun {
grid-area: 1 / 1;
transition: opacity var(--quick) var(--ease);
}
.daylight__sun { opacity: 0; }
.daylight.is-day .daylight__sun { opacity: 1; }
.daylight.is-day .daylight__moon { opacity: 0; }
.daylight__switch {
min-height: var(--tap);
margin: calc((var(--tap) - 12px) / -2) 0;
padding: 0;
border: 0;
background: none;
color: inherit;
font: 400 var(--text-xs) / 1 var(--font-body);
letter-spacing: var(--track-caps);
opacity: 0.58;
cursor: pointer;
transition: opacity var(--quick) var(--ease);
}
.daylight__switch:hover,
.daylight__switch:focus-visible {
opacity: 1;
outline: none;
text-decoration: underline;
}
.daylight__row {
display: flex;
align-items: center;
justify-content: space-between;
gap: var(--space-m);
margin-top: var(--space-xl);
}
.daylight__more {
position: relative;
z-index: 0;
display: inline-flex;
align-items: center;
min-height: var(--tap);
padding: 0 22px;
color: inherit;
font-size: var(--text-s);
text-decoration: none;
}
.daylight__more::before {
content: "";
position: absolute;
inset: calc((var(--tap) - var(--pill-h)) / 2) 0;
z-index: -1;
border: var(--rule) solid currentColor;
border-radius: var(--radius-pill);
opacity: 0.3;
transition: opacity var(--quick) var(--ease);
}
.daylight__more:hover::before,
.daylight__more:focus-visible::before {
opacity: 0.7;
}
.daylight__more:focus-visible { outline: none; }
@media (max-width: 720px) {
.daylight__bar {
grid-template-columns: 1fr auto;
gap: var(--space-m) var(--space-m);
}
.daylight__rail {
grid-column: 1 / -1;
grid-row: 2;
}
.daylight__next { grid-row: 3; }
.daylight__switch { grid-row: 1; grid-column: 2; }
.daylight__row { margin-top: var(--space-l); }
}
</style>
<script>
(() => {
const pad = (n) => String(n).padStart(2, '0');
for (const root of document.querySelectorAll('.daylight')) {
const rise = Number(root.dataset.sunrise);
const set = Number(root.dataset.sunset);
const clock = root.querySelector('.daylight__clock');
const zone = root.querySelector('.daylight__zone');
const next = root.querySelector('.daylight__next');
const body = root.querySelector('.daylight__body');
const button = root.querySelector('.daylight__switch');
const offset = -new Date().getTimezoneOffset() / 60;
zone.textContent = 'UTC' + (offset >= 0 ? '+' : '') + offset;
const tick = () => {
const now = new Date();
const hours = now.getHours() + now.getMinutes() / 60;
const day = hours >= rise && hours < set;
const target = day ? set : rise;
const left = (target - hours + 24) % 24;
clock.textContent = pad(now.getHours()) + ':' + pad(now.getMinutes());
next.textContent = (day ? 'DARK AT ' : 'LIGHT AT ') + pad(target) + ':00 · IN ' +
pad(Math.floor(left)) + 'H ' + pad(Math.floor((left % 1) * 60)) + 'M';
root.classList.toggle('is-day', day);
body.style.setProperty('--at', (hours / 24 * 100).toFixed(2) + '%');
};
let timer = 0;
const seen = new IntersectionObserver(([entry]) => {
clearInterval(timer);
if (entry.isIntersecting) { tick(); timer = setInterval(tick, 30000); }
});
seen.observe(root);
tick();
button.addEventListener('click', () => {
const light = root.classList.toggle('is-light');
button.setAttribute('aria-pressed', String(light));
button.textContent = light ? '[DARK]' : '[LIGHT]';
});
}
})();
</script>
Numbered tile index
A three-column index of dark tiles with photographs, a number pill top left and frosted name and type pills bottom left; tiles fade up on view and zoom softly on hover.
Code
React For Figma<section class="work" aria-label="Selected work">
<div class="work__grid">
<a class="work__tile work__tile--tall work__tile--marked" href="#">
<img class="work__img" src="assets/hero-walls.jpg" alt="Faceted concrete walls rising to a blue sky" width="1200" height="900">
<span class="work__mark">KETTLE LINE</span>
<span class="work__num">01</span>
<span class="work__pills"><span class="work__name">Kettle Line</span><span class="work__type">Brand Refresh</span></span>
</a>
<a class="work__tile" href="#">
<img class="work__img" src="assets/paperweight.jpg" alt="Red glass paperweight with white lily of the valley inside" width="800" height="800">
<span class="work__num">02</span>
<span class="work__pills"><span class="work__name">Glasshouse Nine</span><span class="work__type">Packaging</span></span>
</a>
<a class="work__tile work__tile--glow" href="#">
<span class="work__glow" aria-hidden="true"></span>
<span class="work__num">03</span>
<span class="work__pills"><span class="work__name">Night Radio</span><span class="work__type">Motion System</span></span>
</a>
<a class="work__tile work__tile--tall" href="#">
<img class="work__img" src="assets/gills.jpg" alt="Close-up of the white gills under a red mushroom cap" width="600" height="800">
<span class="work__num">04</span>
<span class="work__pills"><span class="work__name">Fieldnote Press</span><span class="work__type">Editorial</span></span>
</a>
<a class="work__tile work__tile--tall" href="#">
<img class="work__img" src="assets/tea-bowl.jpg" alt="Porcelain tea bowl and saucer painted with a coat of arms" width="800" height="595">
<span class="work__num">05</span>
<span class="work__pills"><span class="work__name">Morrow & Pell</span><span class="work__type">Identity</span></span>
</a>
<a class="work__tile work__tile--more" href="#">
<span class="work__num">06</span>
<span class="work__count">+19</span>
<span class="work__pills"><span class="work__name">Full archive</span><span class="work__type">2019 – 2027</span></span>
</a>
</div>
</section>
<style>
.work {
padding: 0 var(--edge) var(--section-space);
}
.work__grid {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
grid-auto-rows: clamp(200px, 22vw, 330px);
grid-auto-flow: dense;
gap: var(--gap);
}
.work__tile {
position: relative;
display: block;
overflow: hidden;
border: var(--rule) solid var(--line);
border-radius: var(--radius-tile);
background: var(--tile);
color: var(--ink);
text-decoration: none;
opacity: 0;
translate: 0 24px;
transition: opacity var(--enter) var(--ease-out), translate var(--enter) var(--ease-out), border-color var(--quick) var(--ease);
transition-delay: calc(var(--order, 0) * 80ms), calc(var(--order, 0) * 80ms), 0s;
}
.work__tile--tall {
grid-row: span 2;
}
.work__tile--marked .work__img {
filter: saturate(0.6) brightness(0.62);
}
.work__count {
position: absolute;
inset: 0;
display: grid;
place-items: center;
font-family: var(--font-display);
font-size: var(--display-l);
font-weight: 500;
letter-spacing: -0.03em;
color: var(--ink-soft);
transition: color var(--quick) var(--ease);
}
.work__tile--more:hover .work__count {
color: var(--ink);
}
.work__tile.is-seen {
opacity: 1;
translate: 0 0;
}
.work__tile:hover,
.work__tile:focus-visible {
border-color: var(--line-strong);
outline: none;
}
.work__img {
width: 100%;
height: 100%;
object-fit: cover;
transition: transform var(--move) var(--ease), filter var(--move) var(--ease);
filter: saturate(0.82) brightness(0.92);
}
.work__tile:hover .work__img,
.work__tile:focus-visible .work__img {
transform: scale(1.04);
filter: saturate(1) brightness(1);
}
.work__mark {
position: absolute;
inset: 0;
display: grid;
place-items: center;
padding: var(--space-m);
font-family: var(--font-display);
font-size: clamp(26px, 3.2vw, 46px);
font-weight: 800;
letter-spacing: -0.02em;
line-height: 0.9;
text-align: center;
}
.work__glow {
position: absolute;
inset: -10%;
background:
repeating-linear-gradient(176deg, transparent 0 22px, var(--paper) 26px 30px, transparent 34px 52px),
radial-gradient(70% 90% at 20% 30%, var(--glow-a), transparent 70%),
radial-gradient(60% 80% at 85% 60%, var(--glow-b), transparent 70%),
var(--tile);
filter: blur(6px);
transition: transform var(--move) var(--ease);
}
.work__tile:hover .work__glow {
transform: scale(1.04);
}
.work__num {
position: absolute;
top: 12px;
left: 12px;
display: grid;
place-items: center;
min-width: 32px;
height: 24px;
padding: 0 8px;
border-radius: var(--radius-pill);
background: var(--veil);
font-size: var(--text-xs);
line-height: 1;
backdrop-filter: blur(8px);
-webkit-backdrop-filter: blur(8px);
}
.work__pills {
position: absolute;
left: 20px;
right: 20px;
bottom: 20px;
display: flex;
flex-wrap: wrap;
gap: var(--space-s);
}
.work__name,
.work__type {
display: inline-flex;
align-items: center;
min-height: var(--pill-h);
padding: 0 21px;
border-radius: var(--radius-pill);
background: var(--veil);
font-size: var(--text-s);
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
}
.work__type {
color: var(--ink-soft);
}
@media (max-width: 960px) {
.work__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: clamp(180px, 30vw, 260px); }
}
@media (max-width: 600px) {
.work__grid { grid-template-columns: 1fr; grid-auto-rows: clamp(220px, 64vw, 300px); }
}
@media (prefers-reduced-motion: reduce) {
.work__tile { opacity: 1; translate: none; transition: none; }
.work__img, .work__glow { transition: none; }
}
</style>
<script>
(() => {
for (const root of document.querySelectorAll('.work')) {
let batch = 0;
let reset = 0;
const seen = new IntersectionObserver((entries) => {
for (const entry of entries) {
if (!entry.isIntersecting) continue;
entry.target.style.setProperty('--order', batch++);
entry.target.classList.add('is-seen');
seen.unobserve(entry.target);
}
clearTimeout(reset);
reset = setTimeout(() => { batch = 0; }, 200);
}, { threshold: 0.1 });
root.querySelectorAll('.work__tile').forEach((tile) => seen.observe(tile));
}
})();
</script>
Template shelf
Three dark product cards with drawn interface mock-ups, a name pill and a price pill, and a small add button.
Code
React For Figma<section class="store" aria-labelledby="store-title">
<div class="store__head">
<p class="store__label">SHOP / 03 / TEMPLATES</p>
<h2 class="store__title" id="store-title">Tools from the studio</h2>
</div>
<ul class="store__list">
<li class="store__card">
<div class="store__mock store__mock--grid" aria-hidden="true">
<span class="store__bar"></span>
<span class="store__cells"><i></i><i></i><i></i><i></i><i></i><i></i></span>
</div>
<div class="store__foot">
<span class="store__name">Grid Starter Kit</span>
<span class="store__price">£18</span>
<button class="store__add" type="button" aria-label="Add Grid Starter Kit to bag">+</button>
</div>
</li>
<li class="store__card">
<div class="store__mock store__mock--type" aria-hidden="true">
<span class="store__specimen">Aa</span>
<span class="store__lines"><i></i><i></i><i></i><i></i></span>
</div>
<div class="store__foot">
<span class="store__name">Type Scale Sheet</span>
<span class="store__price">£12</span>
<button class="store__add" type="button" aria-label="Add Type Scale Sheet to bag">+</button>
</div>
</li>
<li class="store__card">
<div class="store__mock store__mock--deck" aria-hidden="true">
<span class="store__slide"></span>
<span class="store__slide"></span>
<span class="store__slide"></span>
</div>
<div class="store__foot">
<span class="store__name">Pitch Deck Frame</span>
<span class="store__price">£24</span>
<button class="store__add" type="button" aria-label="Add Pitch Deck Frame to bag">+</button>
</div>
</li>
</ul>
</section>
<style>
.store {
padding: var(--section-space) var(--edge);
}
.store__head {
display: flex;
align-items: baseline;
justify-content: space-between;
flex-wrap: wrap;
gap: var(--space-m);
margin-bottom: var(--space-l);
}
.store__label {
order: 2;
margin: 0;
color: var(--ink-soft);
font-size: var(--text-xs);
letter-spacing: var(--track-caps);
}
.store__title {
margin: 0;
font-family: var(--font-display);
font-size: var(--display-m);
font-weight: 800;
line-height: 1.1;
letter-spacing: -0.01em;
}
.store__list {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: var(--gap);
margin: 0;
padding: 0;
list-style: none;
}
.store__card {
overflow: hidden;
border: var(--rule) solid var(--line);
border-radius: var(--radius-tile);
background: var(--tile);
transition: border-color var(--quick) var(--ease);
}
.store__card:hover {
border-color: var(--line-strong);
}
.store__mock {
position: relative;
display: grid;
aspect-ratio: 4 / 3;
margin: var(--space-m) var(--space-m) 0;
padding: var(--space-m);
border: var(--rule) solid var(--line);
border-radius: var(--radius-tile);
background: var(--paper-raised);
transition: transform var(--move) var(--ease);
}
.store__card:hover .store__mock {
transform: translateY(-4px);
}
.store__mock--grid {
grid-template-rows: auto 1fr;
gap: var(--space-s);
}
.store__bar {
width: 46%;
height: 10px;
border-radius: var(--radius-pill);
background: var(--line-strong);
}
.store__cells {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 6px;
}
.store__cells i {
border: var(--rule) solid var(--line);
border-radius: 3px;
}
.store__cells i:nth-child(2) {
background: linear-gradient(140deg, var(--glow-a), var(--glow-b));
border: 0;
}
.store__mock--type {
grid-template-columns: auto 1fr;
align-items: end;
gap: var(--space-m);
}
.store__specimen {
font-family: var(--font-display);
font-size: clamp(44px, 6vw, 88px);
font-weight: 500;
line-height: 0.8;
letter-spacing: -0.04em;
}
.store__lines {
display: grid;
gap: 7px;
padding-bottom: 6px;
}
.store__lines i {
height: 6px;
border-radius: var(--radius-pill);
background: var(--line-strong);
}
.store__lines i:nth-child(2) { width: 80%; }
.store__lines i:nth-child(3) { width: 60%; }
.store__lines i:nth-child(4) { width: 40%; }
.store__mock--deck {
place-items: center;
}
.store__slide {
grid-area: 1 / 1;
width: 70%;
aspect-ratio: 16 / 10;
border: var(--rule) solid var(--line-strong);
border-radius: 3px;
background: var(--tile);
transition: transform var(--move) var(--ease);
}
.store__slide:nth-child(1) { transform: translate(-12%, -10%); }
.store__slide:nth-child(2) { transform: translate(0, 0); }
.store__slide:nth-child(3) {
transform: translate(12%, 10%);
background: linear-gradient(160deg, var(--glow-b), var(--glow-a));
}
.store__card:hover .store__slide:nth-child(1) { transform: translate(-16%, -14%); }
.store__card:hover .store__slide:nth-child(3) { transform: translate(16%, 14%); }
.store__foot {
display: flex;
align-items: center;
gap: var(--space-s);
padding: var(--space-xs) var(--space-m) var(--space-xs) 20px;
}
.store__name,
.store__price {
display: inline-flex;
align-items: center;
min-height: var(--pill-h);
padding: 0 21px;
border: var(--rule) solid var(--line);
border-radius: var(--radius-pill);
font-size: var(--text-s);
white-space: nowrap;
}
.store__price {
color: var(--ink-soft);
}
.store__add {
position: relative;
z-index: 0;
width: var(--tap);
height: var(--tap);
margin-left: auto;
padding: 0;
border: 0;
background: none;
color: var(--ink);
font: 400 18px / 1 var(--font-body);
cursor: pointer;
}
.store__add::before {
content: "";
position: absolute;
inset: 6px;
z-index: -1;
border: var(--rule) solid var(--line);
border-radius: 50%;
transition: background-color var(--quick) var(--ease), border-color var(--quick) var(--ease);
}
.store__add:hover::before,
.store__add:focus-visible::before {
border-color: var(--line-strong);
background: var(--pill-fill);
}
.store__add:focus-visible { outline: none; }
.store__add.is-added::before {
background: var(--ink);
}
.store__add.is-added {
color: var(--paper);
}
@media (max-width: 900px) {
.store__list { grid-template-columns: 1fr; max-width: 520px; }
}
@media (max-width: 400px) {
.store__name, .store__price { padding: 0 14px; }
}
</style>
<script>
(() => {
for (const root of document.querySelectorAll('.store')) {
for (const button of root.querySelectorAll('.store__add')) {
button.addEventListener('click', () => {
const added = button.classList.toggle('is-added');
button.textContent = added ? '✓' : '+';
});
}
}
})();
</script>
Contact and boxed wordmark
A heavy contact question with an underlined address, link pills, then the wordmark again inside a hairline frame with pills along its foot.
Code
React For Figma<footer class="footer">
<div class="footer__ask">
<h2 class="footer__question">A brief, a hunch, or just a question? Sketches go up on the journal, or write any time to <a class="footer__mail" href="mailto:hi@ostravale.example">hi@ostravale.example</a></h2>
<ul class="footer__pills" aria-label="Contact">
<li><a class="footer__pill" href="#">Journal</a></li>
<li><a class="footer__pill" href="#">Newsletter</a></li>
<li><a class="footer__pill" href="mailto:hi@ostravale.example">Hi@ostravale.example</a></li>
</ul>
</div>
<div class="footer__box">
<p class="footer__mark" aria-label="Ostra Vale"><span>OSTRA</span><span>VALE</span></p>
<div class="footer__base">
<ul class="footer__pills" aria-label="Elsewhere">
<li><a class="footer__pill" href="#">Journal</a></li>
<li><a class="footer__pill" href="#">Shop</a></li>
<li><a class="footer__pill" href="#">Colophon</a></li>
</ul>
<p class="footer__fine">© 2027 / ALL QUIET</p>
</div>
</div>
</footer>
<style>
.footer {
padding: var(--section-space) var(--frame) var(--frame);
border-top: var(--rule) solid var(--line);
}
.footer__ask {
padding: 0 calc(var(--edge) - var(--frame)) var(--space-xl);
}
.footer__question {
max-width: 17em;
margin: 0 0 var(--space-l);
font-family: var(--font-display);
font-size: var(--display-l);
font-weight: 800;
line-height: 1;
letter-spacing: -0.012em;
overflow-wrap: anywhere;
}
.footer__mail {
color: inherit;
text-decoration: underline;
text-decoration-thickness: 0.07em;
text-underline-offset: 0.08em;
transition: opacity var(--quick) var(--ease);
}
.footer__mail:hover,
.footer__mail:focus-visible {
opacity: 0.7;
outline: none;
}
.footer__pills {
display: flex;
flex-wrap: wrap;
gap: 0 var(--space-s);
margin: 0;
padding: 0;
list-style: none;
}
.footer__pills li {
position: relative;
z-index: 0;
}
.footer__pill {
display: inline-flex;
align-items: center;
min-height: var(--tap);
padding: 0 21px;
color: var(--ink);
font-size: var(--text-s);
text-decoration: none;
}
.footer__pill::before {
content: "";
position: absolute;
inset: calc((var(--tap) - var(--pill-h)) / 2) 0;
z-index: -1;
border: var(--rule) solid var(--line);
border-radius: var(--radius-pill);
transition: border-color var(--quick) var(--ease), background-color var(--quick) var(--ease);
}
.footer__pill:hover::before,
.footer__pill:focus-visible::before {
border-color: var(--line-strong);
background: var(--pill-fill);
}
.footer__pill:focus-visible { outline: none; }
.footer__box {
border: var(--rule) solid var(--line);
border-radius: var(--radius-tile);
background: var(--paper-raised);
}
.footer__mark {
display: flex;
justify-content: space-between;
gap: 0.2em;
margin: 0;
padding: 0.16em var(--edge) 0.1em;
border-bottom: var(--rule) solid var(--line);
font-family: var(--font-display);
font-size: clamp(56px, 15.4vw, 236px);
font-weight: 500;
line-height: 0.86;
letter-spacing: -0.035em;
}
.footer__base {
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: space-between;
gap: var(--space-m);
padding: var(--space-l) var(--edge);
}
.footer__fine {
margin: 0;
color: var(--ink-soft);
font-size: var(--text-xs);
letter-spacing: var(--track-caps);
}
@media (max-width: 520px) {
.footer__question { font-size: 30px; }
.footer__mark { flex-direction: column; gap: 0; font-size: 24vw; }
}
</style>
Style
- --paper #0a0a09
- --paper-raised #0e0e0d
- --tile #151513
- --veil rgba(10, 10, 9, 0.76)
- --ink #f9f9f9
- --ink-soft rgba(244, 243, 238, 0.58)
- --line rgba(244, 243, 238, 0.14)
- --line-strong rgba(244, 243, 238, 0.32)
- --pill-fill rgba(244, 243, 238, 0.1)
- --day-paper #f5f3ee
- --day-ink #0a0a09
- --glow-a #4a2bd6
- --glow-b #2d7fe0
Type
- Inter Tight for wordmark and statements, stands in for the site's licensed neo-grotesk (Söhne), set very large at regular weight for the wordmark and heavy for statements
- Inter for pills, labels, readouts and running text, stands in for the same neo-grotesk at 12 to 16 px for nav pills, tags and uppercase readouts
Motion
- The loader runs the brand name and a tiny 'loading' pill as an endless ticker, 18 s per loop, linear, then fades out over 720 ms.
- Tiles fade and rise into place on view, 720 ms with cubic-bezier(0.22, 0.61, 0.36, 1), each next tile 80 ms later.
- Pills and pictures answer hover in 240 ms to 420 ms with cubic-bezier(0.45, 0, 0.15, 1): border brightens, the picture inside a tile zooms 4 %.
- The active nav pill slides between items in 420 ms; the daylight switch fades the whole band between dark and light in 450 ms ease.
Rules
- One sans family only; size and weight make the hierarchy, never a second face or colour.
- The ground is warm near-black (#0a0a09) with two slightly lighter steps for tiles and frames; text is off-white with a 58 % second level.
- Every interactive word sits in a pill: 1 px hairline border, fully round ends, 14 px text.
- Pictures and tiles get a 5 px radius and a 1 px hairline; captions float over pictures in frosted dark pills at the bottom left, numbers in small pills top left.
- Readouts are 12 px uppercase in the soft ink, separated by slashes: 'INDEX / 01 / SELECTED WORK'.
- The wordmark is set huge, edge to edge, split in two words pushed to the far sides.
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;700;800&family=Inter:wght@400;500&display=swap");
:root {
/* Colour */
--paper: #0a0a09; /* page background, warm near-black */
--paper-raised: #0e0e0d; /* panels and the footer frame */
--tile: #151513; /* empty tile and card ground */
--veil: rgba(10, 10, 9, 0.76); /* frosted pill over pictures */
--ink: #f9f9f9; /* main text and wordmark */
--ink-soft: rgba(244, 243, 238, 0.58); /* labels, readouts, second level */
--line: rgba(244, 243, 238, 0.14); /* hairline borders on tiles and pills */
--line-strong: rgba(244, 243, 238, 0.32); /* hovered pill border */
--pill-fill: rgba(244, 243, 238, 0.1); /* active nav pill */
--day-paper: #f5f3ee; /* light mode ground for the daylight switch */
--day-ink: #0a0a09; /* light mode text */
--glow-a: #4a2bd6; /* drawn glow tile and mock-up accent: violet */
--glow-b: #2d7fe0; /* drawn glow tile and mock-up accent: blue */
/* Type */
--font-display: "Inter Tight", "Helvetica Neue", Arial, sans-serif; /* wordmark and statements */
--font-body: "Inter", "Helvetica Neue", Arial, sans-serif; /* pills, labels and running text */
--wordmark: clamp(64px, 12.2vw, 190px); /* split wordmark across the top */
--display-l: clamp(32px, 4.45vw, 64px); /* bold statement lines */
--display-m: clamp(26px, 2.8vw, 40px); /* section titles */
--text-m: 16px; /* running text */
--text-s: 14px; /* pills and nav */
--text-xs: 12px; /* uppercase readouts and numbers */
--track-caps: 0.015em; /* uppercase label tracking */
/* Space */
--edge: clamp(16px, 2.4vw, 34px); /* page side margin */
--frame: clamp(8px, 1vw, 14px); /* inset of the full-bleed photo and footer frame */
--gap: clamp(12px, 1.55vw, 22px); /* tile gutter */
--space-xs: 4px; /* inside pill groups */
--space-s: 8px; /* between pills */
--space-m: 16px; /* small blocks */
--space-l: 32px; /* between groups */
--space-xl: 64px; /* between bands */
--section-space: clamp(64px, 8vw, 120px); /* vertical rhythm of sections */
/* Shape */
--radius-tile: 5px; /* tiles, photos and frames */
--radius-pill: 9999px; /* every pill, tag and button */
--rule: 1px; /* hairline weight */
--pill-h: 32px; /* visual pill height */
--tap: 44px; /* tap target height */
/* Motion */
--ease: cubic-bezier(0.45, 0, 0.15, 1); /* hovers, pills and the nav */
--ease-out: cubic-bezier(0.22, 0.61, 0.36, 1); /* tiles fading in */
--quick: 240ms; /* hover opacity and colour */
--move: 420ms; /* pill slides and picture zoom */
--enter: 720ms; /* tile entrance */
--theme: 450ms; /* dark to light switch */
--ticker: 18s; /* loader ticker loop */
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 var(--text-m)/1.5 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("lights-out-pill-index"), 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