Rainbow Slot Ticker
A near-empty white page with a ticker of service names, each word in its own bright colour, a small serif wordmark, and one toy in the middle: a three-reel slot machine in a pale grey tray that has to be spun to unlock a file. Suits small studios, portfolios and launch pages that want one playful gate instead of a hero.
Parts
Rainbow ticker header
An endless ticker of service names, each in the next of six colours, over a serif wordmark left and two contact lines right.
Code
React For Figma<header class="header">
<nav class="header__ticker" aria-label="Services">
<ul class="header__track">
<li><a class="header__word" href="#">Shop Fronts</a></li>
<li><a class="header__word" href="#">Packaging</a></li>
<li><a class="header__word" href="#">Label Systems</a></li>
<li><a class="header__word" href="#">Menu Writing</a></li>
<li><a class="header__word" href="#">Market Stalls</a></li>
<li><a class="header__word" href="#">Recipe Books</a></li>
<li><a class="header__word" href="#">Signage</a></li>
<li><a class="header__word" href="#">Mobile Ordering</a></li>
<li><a class="header__word" href="#">Pop-up Kits</a></li>
<li><a class="header__word" href="#">Tasting Notes</a></li>
<li><a class="header__word" href="#">Price Tickets</a></li>
<li><a class="header__word" href="#">Seasonal Launches</a></li>
</ul>
</nav>
<div class="header__bar">
<a class="header__wordmark" href="#" aria-label="Pipwell, home">pipwell<span class="header__pip" aria-hidden="true"></span></a>
<address class="header__contact">
<a class="header__line" href="#">studio@pipwell.example</a>
<span class="header__line">14 Orchard Row, Lisbon</span>
</address>
</div>
</header>
<style>
.header {
padding-bottom: var(--space-l);
}
.header__ticker {
overflow: hidden;
}
.header__track {
display: flex;
width: max-content;
margin: 0;
padding: 0;
list-style: none;
animation: header-roll var(--ticker-time) linear infinite;
}
.header__ticker:hover .header__track,
.header__ticker:focus-within .header__track {
animation-play-state: paused;
}
.header__track > li {
flex: none;
}
.header__word {
display: flex;
align-items: center;
min-height: var(--hit);
padding: 0 20px;
color: var(--word, var(--ink));
font-size: var(--text-m);
text-decoration: none;
white-space: nowrap;
transition: opacity var(--quick) var(--ease);
}
.header__track > li:nth-child(6n + 1) .header__word { --word: var(--amber); }
.header__track > li:nth-child(6n + 2) .header__word { --word: var(--green); }
.header__track > li:nth-child(6n + 3) .header__word { --word: var(--blue); }
.header__track > li:nth-child(6n + 4) .header__word { --word: var(--red); }
.header__track > li:nth-child(6n + 5) .header__word { --word: var(--pink); }
.header__track > li:nth-child(6n + 6) .header__word { --word: var(--orange); }
.header__track:hover .header__word {
opacity: 0.45;
}
.header__track .header__word:hover,
.header__track .header__word:focus-visible {
opacity: 1;
outline: none;
text-decoration: underline;
text-underline-offset: 4px;
}
@keyframes header-roll {
to { transform: translateX(-50%); }
}
.header__bar {
display: flex;
justify-content: space-between;
align-items: flex-start;
gap: var(--space-l);
padding: var(--space-xs) var(--edge) 0;
}
.header__wordmark {
position: relative;
display: inline-block;
min-height: var(--hit);
padding-block: 2px;
color: var(--ink);
font-family: var(--font-serif);
font-size: var(--display);
font-style: italic;
font-weight: 700;
line-height: 0.9;
letter-spacing: -0.03em;
text-decoration: none;
}
.header__pip {
display: inline-block;
width: 0.16em;
height: 0.16em;
margin-left: 0.04em;
border-radius: var(--radius-pill);
background: var(--red);
transition: background-color var(--quick) var(--ease), transform var(--settle) var(--ease-settle);
}
.header__wordmark:hover .header__pip,
.header__wordmark:focus-visible .header__pip {
background: var(--green);
transform: translateY(-0.4em);
}
.header__contact {
display: grid;
justify-items: end;
font-style: normal;
text-align: right;
}
.header__line {
display: flex;
align-items: center;
min-height: 22px;
color: var(--ink);
text-decoration: none;
}
a.header__line {
min-height: var(--hit);
margin-block: -11px;
}
a.header__line:hover,
a.header__line:focus-visible {
color: var(--blue);
}
@media (max-width: 480px) {
.header__bar {
flex-direction: column;
gap: var(--space-m);
}
.header__contact {
justify-items: start;
text-align: left;
}
}
@media (prefers-reduced-motion: reduce) {
.header__track {
animation: none;
flex-wrap: wrap;
width: auto;
}
.header__track > li[aria-hidden] {
display: none;
}
}
</style>
<script>
(() => {
for (const track of document.querySelectorAll('.header__track')) {
for (const item of [...track.children]) {
const copy = item.cloneNode(true);
copy.setAttribute('aria-hidden', 'true');
copy.querySelector('a').tabIndex = -1;
track.append(copy);
}
}
})();
</script>
Slot machine gate
A file chip and locked download link over three drawn reels in a grey tray and a green Spin bar with three tries; a win unlocks the file with confetti and a toast.
Code
React For Figma<section class="slot-gate" aria-label="Spin to unlock the lookbook"
data-miss="Not this time. Spin again."
data-win="Three of a kind. The lookbook is yours."
data-locked="Locked. Line up three of a kind first.">
<svg class="slot-gate__defs" aria-hidden="true" focusable="false">
<symbol id="slot-gate-seven" viewBox="0 0 64 64">
<path class="slot-gate__fill-red slot-gate__edge" d="M12 9h42v11L36 57H21l18-35H12z" />
<path class="slot-gate__gloss" d="M16 12h20v4H16z" />
</symbol>
<symbol id="slot-gate-bell" viewBox="0 0 64 64">
<circle class="slot-gate__fill-ink" cx="32" cy="53" r="5" />
<path class="slot-gate__fill-amber slot-gate__edge" d="M32 7c-11 0-17 9-17 21v11l-7 9h48l-7-9V28c0-12-6-21-17-21z" />
<path class="slot-gate__gloss" d="M22 18c2-4 5-6 8-6-3 3-4 7-4 13h-5c0-3 0-5 1-7z" />
</symbol>
<symbol id="slot-gate-lemon" viewBox="0 0 64 64">
<path class="slot-gate__fill-green slot-gate__edge" d="M38 14c4-8 12-9 16-8-2 6-8 10-16 8z" />
<path class="slot-gate__fill-amber slot-gate__edge" d="M7 40c-2-3-1-6 2-7 3-12 16-20 29-17 4-2 7-1 8 2 7 6 10 16 5 25-5 9-17 14-29 12-4 1-7 0-8-3-3-3-6-7-7-12z" />
<ellipse class="slot-gate__gloss" cx="26" cy="27" rx="8" ry="3.5" transform="rotate(-25 26 27)" />
</symbol>
<symbol id="slot-gate-plum" viewBox="0 0 64 64">
<path class="slot-gate__fill-green slot-gate__edge" d="M33 16c2-7 9-10 17-8-3 7-9 10-17 8z" />
<circle class="slot-gate__fill-pink slot-gate__edge" cx="32" cy="38" r="21" />
<path class="slot-gate__crease" d="M32 19c-5 8-5 30 0 38" />
<ellipse class="slot-gate__gloss" cx="22" cy="30" rx="4" ry="7" transform="rotate(20 22 30)" />
</symbol>
<symbol id="slot-gate-diamond" viewBox="0 0 64 64">
<path class="slot-gate__fill-blue slot-gate__edge" d="M18 10h28l12 15-26 32L6 25z" />
<path class="slot-gate__crease" d="M6 25h52M18 10l8 15 6 32 6-32 8-15M26 25l6-15 6 15" />
<path class="slot-gate__gloss" d="M19 14h8l-4 8z" />
</symbol>
<symbol id="slot-gate-star" viewBox="0 0 64 64">
<path class="slot-gate__fill-orange slot-gate__edge" d="M32 5l8 17 19 2-14 13 4 19-17-10-17 10 4-19L5 24l19-2z" />
<path class="slot-gate__gloss" d="M28 18l4-8 3 7z" />
</symbol>
</svg>
<div class="slot-gate__machine">
<div class="slot-gate__file">
<span class="slot-gate__chip">pipwell-lookbook-autumn.pdf</span>
<a class="slot-gate__download" href="#" aria-disabled="true">
Download
<svg class="slot-gate__lock" viewBox="0 0 16 16" aria-hidden="true">
<path class="slot-gate__shackle" d="M5 7V5a3 3 0 0 1 6 0v2" />
<rect class="slot-gate__body" x="3" y="7" width="10" height="8" rx="2" />
</svg>
</a>
</div>
<div class="slot-gate__tray">
<div class="slot-gate__reels">
<div class="slot-gate__window"><div class="slot-gate__strip" data-start="2">
<span class="slot-gate__cell" data-symbol="seven"><svg><use href="#slot-gate-seven" /></svg></span>
<span class="slot-gate__cell" data-symbol="lemon"><svg><use href="#slot-gate-lemon" /></svg></span>
<span class="slot-gate__cell" data-symbol="bell"><svg><use href="#slot-gate-bell" /></svg></span>
<span class="slot-gate__cell" data-symbol="plum"><svg><use href="#slot-gate-plum" /></svg></span>
<span class="slot-gate__cell" data-symbol="star"><svg><use href="#slot-gate-star" /></svg></span>
<span class="slot-gate__cell" data-symbol="diamond"><svg><use href="#slot-gate-diamond" /></svg></span>
</div></div>
<div class="slot-gate__window"><div class="slot-gate__strip" data-start="4">
<span class="slot-gate__cell" data-symbol="plum"><svg><use href="#slot-gate-plum" /></svg></span>
<span class="slot-gate__cell" data-symbol="diamond"><svg><use href="#slot-gate-diamond" /></svg></span>
<span class="slot-gate__cell" data-symbol="star"><svg><use href="#slot-gate-star" /></svg></span>
<span class="slot-gate__cell" data-symbol="seven"><svg><use href="#slot-gate-seven" /></svg></span>
<span class="slot-gate__cell" data-symbol="bell"><svg><use href="#slot-gate-bell" /></svg></span>
<span class="slot-gate__cell" data-symbol="lemon"><svg><use href="#slot-gate-lemon" /></svg></span>
</div></div>
<div class="slot-gate__window"><div class="slot-gate__strip" data-start="1">
<span class="slot-gate__cell" data-symbol="star"><svg><use href="#slot-gate-star" /></svg></span>
<span class="slot-gate__cell" data-symbol="plum"><svg><use href="#slot-gate-plum" /></svg></span>
<span class="slot-gate__cell" data-symbol="lemon"><svg><use href="#slot-gate-lemon" /></svg></span>
<span class="slot-gate__cell" data-symbol="diamond"><svg><use href="#slot-gate-diamond" /></svg></span>
<span class="slot-gate__cell" data-symbol="seven"><svg><use href="#slot-gate-seven" /></svg></span>
<span class="slot-gate__cell" data-symbol="bell"><svg><use href="#slot-gate-bell" /></svg></span>
</div></div>
</div>
<button class="slot-gate__spin" type="button">
<span class="slot-gate__word">Spin</span>
<span class="slot-gate__left"><span class="slot-gate__count">3</span> left</span>
</button>
<div class="slot-gate__confetti" aria-hidden="true"></div>
</div>
<p class="slot-gate__note">Three spins. Line up three of a kind to open the autumn lookbook.</p>
</div>
<p class="slot-gate__toast" role="status" aria-live="polite"></p>
</section>
<style>
.slot-gate {
--cell: 92px;
--offset: 54px;
position: relative;
display: grid;
place-items: center;
padding: var(--space-xl) var(--edge);
overflow: hidden;
}
.slot-gate__defs {
position: absolute;
width: 0;
height: 0;
}
.slot-gate__machine {
width: min(448px, 100%);
}
.slot-gate__file {
display: flex;
justify-content: space-between;
align-items: center;
gap: var(--space-m);
margin-bottom: var(--space-m);
}
.slot-gate__chip {
min-width: 0;
padding: 6px var(--space-m);
overflow: hidden;
border-radius: var(--radius-l);
background: var(--tray);
color: var(--ink-soft);
text-overflow: ellipsis;
white-space: nowrap;
}
.slot-gate__download {
display: flex;
flex: none;
align-items: center;
gap: 6px;
min-height: var(--hit);
padding-right: var(--space-s);
color: var(--blue);
text-decoration: none;
}
.slot-gate__download:hover,
.slot-gate__download:focus-visible {
text-decoration: underline;
text-underline-offset: 4px;
}
.slot-gate__download.is-shaking {
animation: slot-gate-shake 400ms var(--ease);
}
.slot-gate__lock {
width: 14px;
height: 14px;
overflow: visible;
}
.slot-gate__body {
fill: var(--blue);
}
.slot-gate__shackle {
fill: none;
stroke: var(--blue);
stroke-width: 2;
transform-origin: 11px 7px;
transition: transform var(--fade-time) var(--ease);
}
.slot-gate__download.is-open .slot-gate__shackle {
transform: translate(0, -2px) rotate(35deg);
}
.slot-gate__tray {
position: relative;
padding: var(--space-m);
border-radius: var(--radius-l);
background: var(--tray);
}
.slot-gate__reels {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 6px;
}
.slot-gate__window {
position: relative;
height: 200px;
overflow: hidden;
border: var(--rule) solid var(--tray-line);
border-radius: var(--radius-m);
background: var(--paper);
}
.slot-gate__window::after {
content: "";
position: absolute;
inset: 0;
background: linear-gradient(var(--fade), transparent 32%, transparent 68%, var(--fade));
pointer-events: none;
}
.slot-gate__window.is-win {
animation: slot-gate-flash 900ms var(--ease) 2;
}
.slot-gate__strip {
--index: 0;
transform: translateY(calc(var(--offset) - var(--index) * var(--cell)));
}
.slot-gate__strip.is-rolling {
transition: transform var(--roll, var(--settle)) var(--ease-settle);
}
.slot-gate__strip.is-blurred .slot-gate__cell svg {
filter: blur(1.5px);
}
.slot-gate__cell {
display: grid;
place-items: center;
height: var(--cell);
}
.slot-gate__cell svg {
width: 60px;
height: 60px;
transition: filter var(--fade-time) var(--ease);
}
.slot-gate__edge {
stroke: var(--ink);
stroke-width: 2.5;
stroke-linejoin: round;
}
.slot-gate__crease {
fill: none;
stroke: var(--ink);
stroke-width: 1.5;
stroke-linejoin: round;
opacity: 0.35;
}
.slot-gate__gloss { fill: var(--paper); opacity: 0.7; }
.slot-gate__fill-red { fill: var(--red); }
.slot-gate__fill-amber { fill: var(--amber); }
.slot-gate__fill-green { fill: var(--green); }
.slot-gate__fill-pink { fill: var(--pink); }
.slot-gate__fill-blue { fill: var(--blue); }
.slot-gate__fill-orange { fill: var(--orange); }
.slot-gate__fill-ink { fill: var(--ink); }
.slot-gate__spin {
display: flex;
justify-content: space-between;
align-items: center;
width: 100%;
min-height: 52px;
margin-top: 6px;
padding: 0 var(--space-l) 0 var(--space-m);
border: var(--rule) solid var(--lime);
border-radius: var(--radius-m);
background: linear-gradient(var(--lime-light), var(--lime));
color: var(--lime-text);
font: inherit;
cursor: pointer;
transition: filter var(--quick) var(--ease), transform var(--quick) var(--ease), border-color var(--quick) var(--ease);
}
.slot-gate__spin:hover {
filter: saturate(1.25);
border-color: var(--lime-dark);
}
.slot-gate__spin:active {
transform: translateY(1px);
}
.slot-gate__spin:focus-visible {
outline: 2px solid var(--blue);
outline-offset: 2px;
}
.slot-gate__spin:disabled {
cursor: default;
filter: grayscale(0.6);
opacity: 0.7;
}
.slot-gate__spin.is-spinning {
animation: slot-gate-pulse 600ms var(--ease) infinite alternate;
}
.slot-gate__word {
font-family: var(--font-serif);
font-size: var(--text-l);
line-height: 1.4;
}
.slot-gate__left {
color: var(--lime-text-soft);
}
.slot-gate__note {
margin: var(--space-m) 0 0;
color: var(--ink-soft);
font-size: var(--text-s);
text-align: center;
}
.slot-gate__confetti {
position: absolute;
inset: 0;
overflow: visible;
pointer-events: none;
}
.slot-gate__bit {
position: absolute;
top: 30%;
width: 7px;
height: 11px;
border-radius: 2px;
background: var(--bit, var(--amber));
animation: slot-gate-confetti 1600ms var(--ease) forwards;
animation-delay: var(--delay, 0ms);
}
.slot-gate__bit:nth-child(6n + 1) { --bit: var(--red); }
.slot-gate__bit:nth-child(6n + 2) { --bit: var(--amber); }
.slot-gate__bit:nth-child(6n + 3) { --bit: var(--green); }
.slot-gate__bit:nth-child(6n + 4) { --bit: var(--pink); }
.slot-gate__bit:nth-child(6n + 5) { --bit: var(--blue); }
.slot-gate__bit:nth-child(6n + 6) { --bit: var(--orange); }
.slot-gate__toast {
position: absolute;
bottom: var(--space-l);
left: 50%;
max-width: calc(100% - 2 * var(--edge));
margin: 0;
padding: 10px var(--space-l);
border: var(--rule) solid var(--tray-line);
border-radius: var(--radius-l);
background: var(--paper);
box-shadow: 0 8px 24px var(--shade);
opacity: 0;
transform: translate(-50%, 140%);
transition: opacity var(--fade-time) var(--ease), transform var(--fade-time) var(--ease);
pointer-events: none;
}
.slot-gate__toast.is-shown {
opacity: 1;
transform: translate(-50%, 0);
}
@keyframes slot-gate-flash {
0%, 100% { background: var(--paper); }
50% { background: var(--lime); }
}
@keyframes slot-gate-pulse {
to { filter: brightness(1.06) saturate(1.4); }
}
@keyframes slot-gate-shake {
20%, 60% { transform: translateX(-4px); }
40%, 80% { transform: translateX(4px); }
}
@keyframes slot-gate-confetti {
0% { opacity: 1; transform: translate(0, 0) rotate(0deg); }
100% { opacity: 0; transform: translate(var(--dx, 0px), 260px) rotate(var(--turn, 360deg)); }
}
@media (max-width: 400px) {
.slot-gate {
--cell: 80px;
--offset: 40px;
}
.slot-gate__window {
height: 160px;
}
.slot-gate__cell svg {
width: 48px;
height: 48px;
}
}
@media (prefers-reduced-motion: reduce) {
.slot-gate__spin.is-spinning,
.slot-gate__window.is-win {
animation: none;
}
.slot-gate__window.is-win {
background: var(--lime);
}
}
</style>
<script>
(() => {
const COPIES = 5;
const STAGGER = 250;
const RUN = 700;
const SETTLE = 900;
const calm = matchMedia('(prefers-reduced-motion: reduce)');
for (const root of document.querySelectorAll('.slot-gate')) {
const strips = [...root.querySelectorAll('.slot-gate__strip')];
const windows = [...root.querySelectorAll('.slot-gate__window')];
const spin = root.querySelector('.slot-gate__spin');
const count = root.querySelector('.slot-gate__count');
const link = root.querySelector('.slot-gate__download');
const toast = root.querySelector('.slot-gate__toast');
const confetti = root.querySelector('.slot-gate__confetti');
const size = strips[0].children.length;
let left = Number(count.textContent) || 3;
let won = false;
let toastTimer = 0;
for (const strip of strips) {
const base = [...strip.children];
for (let c = 1; c < COPIES; c += 1) {
for (const cell of base) {
const copy = cell.cloneNode(true);
copy.setAttribute('aria-hidden', 'true');
strip.append(copy);
}
}
strip.dataset.at = strip.dataset.start || '0';
strip.style.setProperty('--index', strip.dataset.at);
}
const symbolAt = (strip, index) => strip.children[index].dataset.symbol;
const indexOf = (strip, symbol) => [...strip.children].slice(0, size).findIndex((cell) => cell.dataset.symbol === symbol);
const say = (text) => {
toast.textContent = text;
toast.classList.add('is-shown');
clearTimeout(toastTimer);
toastTimer = setTimeout(() => toast.classList.remove('is-shown'), 2600);
};
const burst = () => {
if (calm.matches) return;
confetti.textContent = '';
for (let i = 0; i < 30; i += 1) {
const bit = document.createElement('span');
bit.className = 'slot-gate__bit';
bit.style.left = `${5 + Math.random() * 90}%`;
bit.style.setProperty('--dx', `${Math.round((Math.random() - 0.5) * 160)}px`);
bit.style.setProperty('--turn', `${Math.round(180 + Math.random() * 540)}deg`);
bit.style.setProperty('--delay', `${Math.round(Math.random() * 300)}ms`);
confetti.append(bit);
}
setTimeout(() => { confetti.textContent = ''; }, 2400);
};
const pickTargets = () => {
if (left === 1) {
const symbol = symbolAt(strips[0], Math.floor(Math.random() * size));
return strips.map((strip) => indexOf(strip, symbol));
}
return strips.map(() => Math.floor(Math.random() * size));
};
spin.addEventListener('click', () => {
if (left < 1 || won) return;
left -= 1;
count.textContent = String(left);
spin.disabled = true;
spin.classList.add('is-spinning');
windows.forEach((w) => w.classList.remove('is-win'));
const targets = pickTargets();
const fast = calm.matches;
let longest = 0;
strips.forEach((strip, i) => {
const time = fast ? 0 : RUN + SETTLE + i * STAGGER;
longest = Math.max(longest, time);
strip.classList.remove('is-rolling');
strip.style.setProperty('--index', strip.dataset.at);
void strip.offsetHeight;
strip.style.setProperty('--roll', `${time}ms`);
strip.classList.add('is-rolling');
if (!fast) strip.classList.add('is-blurred');
strip.style.setProperty('--index', String(targets[i] + size * (COPIES - 1)));
setTimeout(() => strip.classList.remove('is-blurred'), time * 0.5);
setTimeout(() => {
strip.classList.remove('is-rolling');
strip.dataset.at = String(targets[i]);
strip.style.setProperty('--index', strip.dataset.at);
}, time + 30);
});
setTimeout(() => {
spin.classList.remove('is-spinning');
const landed = strips.map((strip, i) => symbolAt(strip, targets[i]));
won = landed.every((s) => s === landed[0]);
if (won) {
windows.forEach((w) => w.classList.add('is-win'));
link.classList.add('is-open');
link.removeAttribute('aria-disabled');
burst();
say(root.dataset.win);
} else {
say(root.dataset.miss);
}
spin.disabled = won || left < 1;
}, longest + 60);
});
link.addEventListener('click', (event) => {
if (won) return;
event.preventDefault();
link.classList.remove('is-shaking');
void link.offsetWidth;
link.classList.add('is-shaking');
say(root.dataset.locked);
});
}
})();
</script>
Reel window gallery
Project cards as grey trays holding a picture in a white reel window fogged top and bottom; on hover the picture rolls down a notch and the title takes its colour.
Code
React For Figma<section class="fruit-reels" aria-labelledby="fruit-reels-title">
<div class="fruit-reels__head">
<h2 class="fruit-reels__title" id="fruit-reels-title">Recent work</h2>
<span class="fruit-reels__count">06 projects</span>
</div>
<ul class="fruit-reels__grid">
<li class="fruit-reels__card">
<a class="fruit-reels__link" href="#">
<span class="fruit-reels__window"><img class="fruit-reels__img" src="assets/lemons.jpg" alt="Painting of lemons, grapes and pears on a swirling blue cloth" width="800" height="662" loading="lazy" /></span>
<span class="fruit-reels__name">Bright Rind</span>
<span class="fruit-reels__meta">Citrus stall identity</span>
</a>
</li>
<li class="fruit-reels__card">
<a class="fruit-reels__link" href="#">
<span class="fruit-reels__window"><img class="fruit-reels__img" src="assets/plums.jpg" alt="Painting of a heap of dark plums on green grass" width="800" height="565" loading="lazy" /></span>
<span class="fruit-reels__name">Low Orchard</span>
<span class="fruit-reels__meta">Preserve labels</span>
</a>
</li>
<li class="fruit-reels__card">
<a class="fruit-reels__link" href="#">
<span class="fruit-reels__window"><img class="fruit-reels__img" src="assets/apples.jpg" alt="Painting of a round orange table seen from above with a plate of apples" width="598" height="800" loading="lazy" /></span>
<span class="fruit-reels__name">Round Table</span>
<span class="fruit-reels__meta">Café menus</span>
</a>
</li>
<li class="fruit-reels__card">
<a class="fruit-reels__link" href="#">
<span class="fruit-reels__window"><img class="fruit-reels__img" src="assets/strawberries.jpg" alt="Painting of a glass jar of wild strawberries, an orange, nuts and white china" width="800" height="573" loading="lazy" /></span>
<span class="fruit-reels__name">Jar & Jug</span>
<span class="fruit-reels__meta">Packaging system</span>
</a>
</li>
<li class="fruit-reels__card">
<a class="fruit-reels__link" href="#">
<span class="fruit-reels__window"><img class="fruit-reels__img" src="assets/grapes.jpg" alt="Painting of apples and a basket of grapes on a white tablecloth" width="800" height="640" loading="lazy" /></span>
<span class="fruit-reels__name">White Cloth</span>
<span class="fruit-reels__meta">Pop-up market kit</span>
</a>
</li>
<li class="fruit-reels__card">
<a class="fruit-reels__link" href="#">
<span class="fruit-reels__window"><img class="fruit-reels__img" src="assets/abundance.jpg" alt="Painting of a stone ledge heaped with grapes, berries and a glass of water" width="800" height="662" loading="lazy" /></span>
<span class="fruit-reels__name">Full Ledge</span>
<span class="fruit-reels__meta">Seasonal launch</span>
</a>
</li>
</ul>
</section>
<style>
.fruit-reels {
padding: var(--space-l) var(--edge) var(--section-space);
}
.fruit-reels__head {
display: flex;
justify-content: space-between;
align-items: baseline;
margin-bottom: var(--space-m);
}
.fruit-reels__title {
margin: 0;
font-size: var(--text-m);
font-weight: 400;
}
.fruit-reels__count {
color: var(--ink-soft);
}
.fruit-reels__grid {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: var(--gap);
margin: 0;
padding: 0;
list-style: none;
}
.fruit-reels__card:nth-child(6n + 1) { --word: var(--amber); }
.fruit-reels__card:nth-child(6n + 2) { --word: var(--pink); }
.fruit-reels__card:nth-child(6n + 3) { --word: var(--orange); }
.fruit-reels__card:nth-child(6n + 4) { --word: var(--red); }
.fruit-reels__card:nth-child(6n + 5) { --word: var(--blue); }
.fruit-reels__card:nth-child(6n + 6) { --word: var(--green); }
.fruit-reels__link {
display: grid;
grid-template-columns: 1fr auto;
gap: var(--space-s) var(--space-m);
padding: var(--space-m);
border-radius: var(--radius-l);
background: var(--tray);
color: var(--ink);
text-decoration: none;
}
.fruit-reels__link:focus-visible {
outline: 2px solid var(--word);
outline-offset: 2px;
}
.fruit-reels__window {
position: relative;
grid-column: 1 / -1;
aspect-ratio: 4 / 3;
overflow: hidden;
border: var(--rule) solid var(--tray-line);
border-radius: var(--radius-m);
background: var(--paper);
}
.fruit-reels__window::after {
content: "";
position: absolute;
inset: 0;
background: linear-gradient(var(--fade), transparent 22%, transparent 78%, var(--fade));
opacity: 0.85;
transition: opacity var(--settle) var(--ease-settle);
pointer-events: none;
}
.fruit-reels__img {
width: 100%;
height: 118%;
object-fit: cover;
transform: translateY(-15%);
transition: transform var(--settle) var(--ease-settle);
}
.fruit-reels__link:hover .fruit-reels__img,
.fruit-reels__link:focus-visible .fruit-reels__img {
transform: translateY(0);
}
.fruit-reels__link:hover .fruit-reels__window::after,
.fruit-reels__link:focus-visible .fruit-reels__window::after {
opacity: 0.35;
}
.fruit-reels__name {
transition: color var(--quick) var(--ease);
}
.fruit-reels__link:hover .fruit-reels__name,
.fruit-reels__link:focus-visible .fruit-reels__name {
color: var(--word);
}
.fruit-reels__meta {
color: var(--ink-soft);
text-align: right;
}
@media (max-width: 860px) {
.fruit-reels__grid {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
}
@media (max-width: 520px) {
.fruit-reels__grid {
grid-template-columns: minmax(0, 1fr);
}
}
</style>
Rolling number row
Four big serif figures that roll down into place digit by digit, each with a coloured dot and a plain label.
Code
React For Figma<section class="odometer-stats" aria-labelledby="odometer-stats-title">
<h2 class="odometer-stats__title" id="odometer-stats-title">Since the first market day</h2>
<dl class="odometer-stats__row">
<div class="odometer-stats__item">
<dt class="odometer-stats__label">Jars labelled</dt>
<dd class="odometer-stats__figure">48210</dd>
</div>
<div class="odometer-stats__item">
<dt class="odometer-stats__label">Stalls opened</dt>
<dd class="odometer-stats__figure">137</dd>
</div>
<div class="odometer-stats__item">
<dt class="odometer-stats__label">Menus rewritten</dt>
<dd class="odometer-stats__figure">612</dd>
</div>
<div class="odometer-stats__item">
<dt class="odometer-stats__label">Lucky spins</dt>
<dd class="odometer-stats__figure">9</dd>
</div>
</dl>
</section>
<style>
.odometer-stats {
padding: var(--space-l) var(--edge) var(--section-space);
}
.odometer-stats__title {
margin: 0 0 var(--space-m);
color: var(--ink-soft);
font-size: var(--text-m);
font-weight: 400;
}
.odometer-stats__row {
display: grid;
grid-template-columns: repeat(4, minmax(0, 1fr));
gap: var(--gap);
margin: 0;
}
.odometer-stats__item {
display: flex;
flex-direction: column-reverse;
justify-content: flex-end;
gap: var(--space-s);
padding: var(--space-l) var(--space-m) var(--space-m);
border-radius: var(--radius-l);
background: var(--tray);
}
.odometer-stats__item:nth-child(6n + 1) { --word: var(--red); }
.odometer-stats__item:nth-child(6n + 2) { --word: var(--green); }
.odometer-stats__item:nth-child(6n + 3) { --word: var(--blue); }
.odometer-stats__item:nth-child(6n + 4) { --word: var(--amber); }
.odometer-stats__label {
display: flex;
align-items: center;
gap: var(--space-s);
}
.odometer-stats__label::before {
content: "";
width: 8px;
height: 8px;
border-radius: var(--radius-pill);
background: var(--word);
}
.odometer-stats__figure {
display: flex;
height: 1.15em;
margin: 0;
overflow: hidden;
font-family: var(--font-serif);
font-size: var(--display);
line-height: 1.15;
font-variant-numeric: tabular-nums;
}
.odometer-stats__column {
display: flex;
flex-direction: column;
transform: translateY(0);
transition: transform var(--settle) var(--ease-settle);
transition-delay: calc(var(--order, 0) * 120ms);
}
.odometer-stats.is-seen .odometer-stats__column {
transform: translateY(calc(var(--digit, 0) * -1.15em));
}
@media (max-width: 760px) {
.odometer-stats__row {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
}
@media (prefers-reduced-motion: reduce) {
.odometer-stats__column {
transition: none;
}
}
</style>
<script>
(() => {
const seen = new IntersectionObserver((entries) => {
for (const entry of entries) {
if (!entry.isIntersecting) continue;
requestAnimationFrame(() => entry.target.classList.add('is-seen'));
seen.unobserve(entry.target);
}
}, { threshold: 0.2 });
for (const root of document.querySelectorAll('.odometer-stats')) {
for (const figure of root.querySelectorAll('.odometer-stats__figure')) {
const value = figure.textContent.trim();
figure.setAttribute('aria-label', value);
figure.textContent = '';
[...value].forEach((char, order) => {
const column = document.createElement('span');
column.className = 'odometer-stats__column';
column.setAttribute('aria-hidden', 'true');
column.style.setProperty('--order', order);
column.style.setProperty('--digit', /\d/.test(char) ? char : 0);
const steps = /\d/.test(char) ? '0123456789' : char;
for (const step of steps) {
const digit = document.createElement('span');
digit.textContent = step;
column.append(digit);
}
figure.append(column);
});
}
seen.observe(root);
}
})();
</script>
Green bar enquiry
An email field and a green gradient send bar in a grey tray; sending slides a small toast up from the tray.
Code
React For Figma<section class="toast-form" aria-labelledby="toast-form-title" data-sent="Thanks. We will write back within two market days." data-empty="Add an email address so we can reply.">
<div class="toast-form__box">
<h2 class="toast-form__title" id="toast-form-title">Start a project</h2>
<p class="toast-form__lede">Tell us about your stall, shop or season. One line is enough.</p>
<form class="toast-form__tray" novalidate>
<label class="toast-form__field">
<span class="toast-form__label">Email</span>
<input class="toast-form__input" type="email" name="email" placeholder="you@yourshop.example" autocomplete="email" />
</label>
<label class="toast-form__field">
<span class="toast-form__label">What are you making?</span>
<textarea class="toast-form__input toast-form__area" name="note" rows="3" placeholder="A cider label, a winter menu, a whole new stall"></textarea>
</label>
<div class="toast-form__pick" role="group" aria-label="Budget">
<label class="toast-form__option"><input type="radio" name="size" value="s" checked /><span>Small</span></label>
<label class="toast-form__option"><input type="radio" name="size" value="m" /><span>Medium</span></label>
<label class="toast-form__option"><input type="radio" name="size" value="l" /><span>Large</span></label>
</div>
<button class="toast-form__send" type="submit">
<span class="toast-form__word">Send</span>
<span class="toast-form__hint">replies in 2 days</span>
</button>
</form>
</div>
<p class="toast-form__toast" role="status" aria-live="polite"></p>
</section>
<style>
.toast-form {
position: relative;
display: grid;
place-items: center;
padding: var(--space-xl) var(--edge) var(--section-space);
overflow: hidden;
}
.toast-form__box {
width: min(448px, 100%);
}
.toast-form__title {
margin: 0;
font-family: var(--font-serif);
font-size: var(--text-xl);
font-weight: 400;
line-height: 1.1;
}
.toast-form__lede {
margin: var(--space-s) 0 var(--space-l);
color: var(--ink-soft);
}
.toast-form__tray {
display: grid;
gap: var(--space-m);
padding: var(--space-m);
border-radius: var(--radius-l);
background: var(--tray);
}
.toast-form__field {
display: grid;
gap: var(--space-xs);
}
.toast-form__label {
color: var(--ink-soft);
font-size: var(--text-s);
}
.toast-form__input {
width: 100%;
min-height: var(--hit);
padding: 10px var(--space-m);
border: var(--rule) solid var(--tray-line);
border-radius: var(--radius-m);
background: var(--paper);
color: var(--ink);
font: inherit;
transition: border-color var(--quick) var(--ease);
}
.toast-form__area {
resize: vertical;
}
.toast-form__input::placeholder {
color: var(--ink-soft);
}
.toast-form__input:focus {
border-color: var(--blue);
outline: none;
}
.toast-form__input.is-wrong {
border-color: var(--red);
}
.toast-form__pick {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 6px;
}
.toast-form__option {
position: relative;
}
.toast-form__option input {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
margin: 0;
opacity: 0;
cursor: pointer;
}
.toast-form__option span {
display: grid;
place-items: center;
min-height: var(--hit);
border: var(--rule) solid var(--tray-line);
border-radius: var(--radius-m);
background: var(--paper);
cursor: pointer;
transition: color var(--quick) var(--ease), border-color var(--quick) var(--ease);
}
.toast-form__option:nth-child(1) { --word: var(--green); }
.toast-form__option:nth-child(2) { --word: var(--blue); }
.toast-form__option:nth-child(3) { --word: var(--pink); }
.toast-form__option span:hover {
color: var(--word);
}
.toast-form__option input:checked + span {
border-color: var(--word);
color: var(--word);
}
.toast-form__option input:focus-visible + span {
outline: 2px solid var(--blue);
outline-offset: 2px;
}
.toast-form__send {
display: flex;
justify-content: space-between;
align-items: center;
min-height: 52px;
padding: 0 var(--space-l) 0 var(--space-m);
border: var(--rule) solid var(--lime);
border-radius: var(--radius-m);
background: linear-gradient(var(--lime-light), var(--lime));
color: var(--lime-text);
font: inherit;
cursor: pointer;
transition: filter var(--quick) var(--ease), transform var(--quick) var(--ease), border-color var(--quick) var(--ease);
}
.toast-form__send:hover {
filter: saturate(1.25);
border-color: var(--lime-dark);
}
.toast-form__send:active {
transform: translateY(1px);
}
.toast-form__send:focus-visible {
outline: 2px solid var(--blue);
outline-offset: 2px;
}
.toast-form__word {
font-family: var(--font-serif);
font-size: var(--text-l);
line-height: 1.4;
}
.toast-form__hint {
color: var(--lime-text-soft);
}
.toast-form__toast {
position: absolute;
bottom: var(--space-l);
left: 50%;
max-width: calc(100% - 2 * var(--edge));
margin: 0;
padding: 10px var(--space-l);
border: var(--rule) solid var(--tray-line);
border-radius: var(--radius-l);
background: var(--paper);
box-shadow: 0 8px 24px var(--shade);
opacity: 0;
transform: translate(-50%, 140%);
transition: opacity var(--fade-time) var(--ease), transform var(--fade-time) var(--ease);
pointer-events: none;
}
.toast-form__toast.is-shown {
opacity: 1;
transform: translate(-50%, 0);
}
</style>
<script>
(() => {
for (const root of document.querySelectorAll('.toast-form')) {
const form = root.querySelector('.toast-form__tray');
const email = root.querySelector('input[type="email"]');
const toast = root.querySelector('.toast-form__toast');
let timer = 0;
const say = (text) => {
toast.textContent = text;
toast.classList.add('is-shown');
clearTimeout(timer);
timer = setTimeout(() => toast.classList.remove('is-shown'), 2600);
};
email.addEventListener('input', () => email.classList.remove('is-wrong'));
form.addEventListener('submit', (event) => {
event.preventDefault();
if (!email.value.includes('@')) {
email.classList.add('is-wrong');
email.focus();
say(root.dataset.empty);
return;
}
form.reset();
say(root.dataset.sent);
});
}
})();
</script>
Icon dock footer
A row of square outlined icon tiles with fading tooltips on the left and three plain text links on the right.
Code
React For Figma<footer class="dock-footer">
<p class="dock-footer__sign">Made slowly by hand at <span class="dock-footer__brand">Pipwell</span>, between market days.</p>
<div class="dock-footer__bar">
<ul class="dock-footer__dock" aria-label="Shortcuts">
<li>
<a class="dock-footer__tile" href="#" aria-label="Studio notes">
<svg viewBox="0 0 24 24" aria-hidden="true"><path class="dock-footer__stroke" d="M4 7c4-3 12-3 16 0M4 12c4-3 12-3 16 0M4 17c4-3 12-3 16 0" /></svg>
<span class="dock-footer__tip">Studio notes</span>
</a>
</li>
<li>
<a class="dock-footer__tile" href="#" aria-label="Price list">
<svg viewBox="0 0 24 24" aria-hidden="true"><path class="dock-footer__stroke dock-footer__blue" d="M7 3h7l4 4v14H7zM14 3v4h4" /></svg>
<span class="dock-footer__tip">Price list</span>
</a>
</li>
<li>
<a class="dock-footer__tile" href="#" aria-label="Spin again">
<svg viewBox="0 0 24 24" aria-hidden="true"><path class="dock-footer__stroke" d="M6 7v10M2 12h8M3 8l6 8M9 8l-6 8M18 7v10M14 12h8M15 8l6 8M21 8l-6 8" /></svg>
<span class="dock-footer__tip">Spin again</span>
</a>
</li>
<li>
<a class="dock-footer__tile" href="#" aria-label="Find the stall">
<svg viewBox="0 0 24 24" aria-hidden="true"><circle class="dock-footer__stroke" cx="12" cy="12" r="8.5" /><path class="dock-footer__fill" d="M12 3.5a8.5 8.5 0 0 1 0 17c-3-2-2-5 0-7s1-6-3-7c1-2 2-3 3-3z" /></svg>
<span class="dock-footer__tip">Find the stall</span>
</a>
</li>
<li>
<a class="dock-footer__tile" href="#" aria-label="Sample box">
<svg viewBox="0 0 24 24" aria-hidden="true"><path class="dock-footer__cube-top" d="M12 3l8 4-8 4-8-4z" /><path class="dock-footer__cube-left" d="M4 7l8 4v10l-8-4z" /><path class="dock-footer__cube-right" d="M20 7l-8 4v10l8-4z" /></svg>
<span class="dock-footer__tip">Sample box</span>
</a>
</li>
</ul>
<nav class="dock-footer__links" aria-label="Elsewhere">
<a class="dock-footer__link" href="#">About</a>
<a class="dock-footer__link" href="#">Journal</a>
<a class="dock-footer__link" href="#">Newsletter</a>
</nav>
</div>
</footer>
<style>
.dock-footer {
padding: var(--section-space) var(--edge) var(--edge);
}
.dock-footer__sign {
margin: 0 0 var(--space-xl);
font-family: var(--font-serif);
font-size: var(--text-xl);
line-height: 1.15;
text-align: center;
text-wrap: balance;
}
.dock-footer__brand {
font-style: italic;
font-weight: 700;
}
.dock-footer__bar {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
align-items: flex-end;
gap: var(--space-l);
}
.dock-footer__dock {
display: flex;
gap: var(--space-s);
margin: 0;
padding: 0;
list-style: none;
}
.dock-footer__tile {
position: relative;
display: grid;
place-items: center;
width: var(--tile);
height: var(--tile);
border: var(--rule) solid var(--tray-line);
border-radius: var(--radius-l);
background: var(--paper);
color: var(--ink);
transition: transform var(--quick) var(--ease), background-color var(--quick) var(--ease), box-shadow var(--quick) var(--ease);
}
.dock-footer__tile svg {
width: 20px;
height: 20px;
}
.dock-footer__tile:hover,
.dock-footer__tile:focus-visible {
background: var(--tray);
box-shadow: 0 6px 16px var(--shade);
transform: translateY(-3px);
outline: none;
}
.dock-footer__tile:focus-visible {
border-color: var(--blue);
}
.dock-footer__stroke {
fill: none;
stroke: currentColor;
stroke-width: 1.6;
stroke-linecap: round;
stroke-linejoin: round;
}
.dock-footer__blue { stroke: var(--blue); }
.dock-footer__fill { fill: currentColor; }
.dock-footer__cube-top { fill: var(--lime-light); stroke: var(--blue); stroke-width: 1; }
.dock-footer__cube-left { fill: var(--blue); }
.dock-footer__cube-right { fill: var(--green); }
.dock-footer__tip {
position: absolute;
bottom: calc(100% + var(--space-s));
left: 50%;
padding: var(--space-xs) var(--space-s);
border-radius: var(--radius-s);
background: var(--ink);
color: var(--paper);
font-size: var(--text-s);
white-space: nowrap;
opacity: 0;
transform: translate(-50%, 4px);
transition: opacity var(--quick) var(--ease), transform var(--quick) var(--ease);
pointer-events: none;
}
.dock-footer__tile:hover .dock-footer__tip,
.dock-footer__tile:focus-visible .dock-footer__tip {
opacity: 1;
transform: translate(-50%, 0);
}
.dock-footer__links {
display: flex;
gap: var(--space-l);
}
.dock-footer__link {
display: flex;
align-items: center;
justify-content: center;
min-width: var(--hit);
min-height: var(--hit);
color: var(--ink);
text-decoration: none;
}
.dock-footer__link:nth-child(1):hover { color: var(--red); }
.dock-footer__link:nth-child(2):hover { color: var(--green); }
.dock-footer__link:nth-child(3):hover { color: var(--blue); }
.dock-footer__link:focus-visible {
color: var(--blue);
outline: none;
text-decoration: underline;
}
@media (max-width: 400px) {
.dock-footer__dock {
gap: 6px;
}
.dock-footer__links {
gap: var(--space-m);
}
}
</style>
Style
- --ink #171717
- --ink-soft #8a8a8a
- --paper #ffffff
- --tray #f2f2f2
- --tray-line #e4e4e4
- --red #ef5459
- --amber #ffb700
- --green #00b77d
- --pink #ef54ea
- --blue #176eff
- --orange #ff6b35
- --lime-light #e6fbd6
- --lime #b8e986
- --lime-dark #8fbc5a
- --lime-text #2d5a1d
- --lime-text-soft #4a7a32
- --fade rgba(255, 255, 255, 0.92)
- --shade rgba(23, 23, 23, 0.06)
Type
- Inter for everything plain: ticker, contact lines, labels, links, stands in for the site's own plain Arial-like grotesk, set at 14 px in regular weight only
- Tinos for wordmark, button words and big numbers, stands in for Times New Roman for the green Spin word and the site's own old-style serif numerals in the logo
Motion
- The service ticker crawls left forever, one lap in about 68 s, linear, and pauses on hover.
- Spinning blurs all three reels into a fast scroll, then each lands one after the other with a 900 ms cubic-bezier(0.05, 0.7, 0.1, 1) settle, 250 ms apart.
- A win flashes the reel windows green, drops a burst of coloured confetti and slides a toast up from the tray in 300 ms; the padlock opens.
- Numbers roll down into place digit by digit when they come into view, each column 120 ms after the last.
- Every hover is a 150 ms cubic-bezier(0.4, 0, 0.2, 1) change: a tile lifts, a tooltip fades in, a word takes its colour.
Rules
- White page and one pale grey (#f2f2f2) for every tray, chip and tile; no other surfaces.
- One body size, 14 px, regular weight; hierarchy is position and colour, never bold.
- Colour lives only in words and small symbols: red, amber, green, pink, blue and orange take turns along a line.
- The toy sits small in the middle of a big empty field; everything else hugs the corners.
- Trays are 12 px round with 12 px padding; windows and buttons inside them are 6 px round with hairline edges.
- The one action is a soft green gradient bar with a serif word on the left and a small counter on the right.
- Corner furniture: wordmark top left, contact lines top right, square icon tiles bottom left, text links bottom right.
base.css
/* Fonts: free Google Fonts that stand in for the site's faces. Inter for the plain grotesk, Tinos (metric Times) for the serif. */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500&family=Tinos:ital,wght@0,400;0,700;1,400;1,700&display=swap");
:root {
/* Colour: white page, one pale grey for trays, six bright word colours */
--ink: #171717; /* main text, links, icons */
--ink-soft: #8a8a8a; /* file names, captions, quiet second-level text */
--paper: #ffffff; /* page background and reel windows */
--tray: #f2f2f2; /* grey trays, chips and dock tiles */
--tray-line: #e4e4e4; /* hairline edge of tiles and reel windows */
--red: #ef5459; /* ticker word colour 1, misses */
--amber: #ffb700; /* ticker word colour 2, coins and stars */
--green: #00b77d; /* ticker word colour 3 */
--pink: #ef54ea; /* ticker word colour 4 */
--blue: #176eff; /* ticker word colour 5, download link and lock */
--orange: #ff6b35; /* ticker word colour 6 */
--lime-light: #e6fbd6; /* top of the green spin button gradient */
--lime: #b8e986; /* bottom of the spin button gradient, win flash */
--lime-dark: #8fbc5a; /* pressed edge of the spin button */
--lime-text: #2d5a1d; /* text on the green button */
--lime-text-soft: #4a7a32; /* counter on the green button */
--fade: rgba(255, 255, 255, 0.92); /* white fog over the top and bottom of a reel window */
--shade: rgba(23, 23, 23, 0.06); /* soft drop under toasts and lifted tiles */
/* Type */
--font-body: "Inter", Arial, sans-serif; /* everything plain: ticker, links, labels, body */
--font-serif: "Tinos", "Times New Roman", serif; /* wordmark, button words, the odd big serif number */
--text-s: 12px; /* tiny captions and counters */
--text-m: 14px; /* the one body size, line height 1.5 */
--text-l: 20px; /* serif button words, line height 1.4 */
--text-xl: clamp(28px, 3.4vw, 40px); /* serif statements and numbers */
--display: clamp(44px, 5vw, 64px); /* the serif wordmark */
--tracking: 0.015em; /* body letter spacing */
/* Space */
--edge: 16px; /* page margin */
--gap: 12px; /* gutter between reels, tiles and cards */
--space-xs: 4px; /* icon to word */
--space-s: 8px; /* inside chips */
--space-m: 12px; /* tray padding */
--space-l: 24px; /* between blocks */
--space-xl: 64px; /* air around a centred piece */
--section-space: 96px; /* between sections */
--hit: 44px; /* minimum tap target */
--tile: 48px; /* dock tile size */
/* Shape */
--radius-l: 12px; /* trays and big panels */
--radius-m: 6px; /* reel windows, buttons, cards inside trays */
--radius-s: 5px; /* chips, fields */
--radius-pill: 999px; /* status dots and pills */
--rule: 1px; /* hairline edges */
/* Motion */
--ease: cubic-bezier(0.4, 0, 0.2, 1); /* every hover and fade */
--ease-settle: cubic-bezier(0.05, 0.7, 0.1, 1); /* reels landing, long soft stop */
--quick: 150ms; /* hover and press */
--fade-time: 300ms; /* tooltips and toasts */
--settle: 900ms; /* a reel coming to rest */
--ticker-time: 68s; /* one lap of the coloured ticker */
}
*, *::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); letter-spacing: var(--tracking); -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("rainbow-slot-ticker"), 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