Ringed services
Large lowercase service words in a loose run; hovering or focusing one draws an oval around it in a signal colour and swaps the note in the side column.
Part of the style
Sticker Badge Studio
6 parts that belong together, with their tokens, type and rules.
https://kitbash.me/components/sticker-badge-studio/services/figma.html
Use the Figma MCP server (https://mcp.figma.com/mcp). Download https://kitbash.me/components/sticker-badge-studio/services/figma.html and pass that whole HTML document to the html_to_figma tool, so the part "Ringed services" lands as editable layers in my open Figma file. Fonts come from Google Fonts: if a face is missing in Figma, pick the closest one.
Code
<section class="services" aria-label="what we make">
<h2 class="services__label">what we make</h2>
<ul class="services__list">
<li class="services__item services__item--blue">
<button class="services__word is-active" type="button" aria-pressed="true" data-note="logos that move, letters that bend, rules a team can follow without us in the room.">identities<span class="services__ring" aria-hidden="true"></span></button>
</li>
<li class="services__item services__item--red">
<button class="services__word" type="button" aria-pressed="false" data-note="small programs that make the drawings for you: generators, plotters, one-button machines.">tools<span class="services__ring" aria-hidden="true"></span></button>
</li>
<li class="services__item services__item--green">
<button class="services__word" type="button" aria-pressed="false" data-note="custom typefaces and lettering, from one word on a poster to a family with nine weights.">type<span class="services__ring" aria-hidden="true"></span></button>
</li>
<li class="services__item services__item--ink">
<button class="services__word" type="button" aria-pressed="false" data-note="sites that do one thing well and load before you finish blinking.">websites<span class="services__ring" aria-hidden="true"></span></button>
</li>
<li class="services__item services__item--blue">
<button class="services__word" type="button" aria-pressed="false" data-note="rooms with screens and sensors, where the work reacts to whoever walks in.">installations<span class="services__ring" aria-hidden="true"></span></button>
</li>
<li class="services__item services__item--red">
<button class="services__word" type="button" aria-pressed="false" data-note="two days, one problem, your team and ours. everybody leaves with something that runs.">workshops<span class="services__ring" aria-hidden="true"></span></button>
</li>
</ul>
<p class="services__note" aria-live="polite">logos that move, letters that bend, rules a team can follow without us in the room.</p>
</section>
<style>
.services {
display: grid;
grid-template-columns: 20fr 50fr 30fr;
gap: var(--gap);
align-items: start;
padding: var(--space-l) var(--edge);
background: var(--paper);
}
.services__label {
margin: 0;
font: inherit;
}
.services__list {
display: flex;
flex-wrap: wrap;
gap: 0.05em 0.42em;
margin: 0;
padding: 0;
list-style: none;
font-size: var(--text-xl);
line-height: 1;
}
.services__item--blue { --services-ring: var(--signal-blue); }
.services__item--red { --services-ring: var(--signal-red); }
.services__item--green { --services-ring: var(--signal-green); }
.services__item--ink { --services-ring: var(--ink); }
.services__word {
position: relative;
min-height: var(--tap);
padding: 0.04em 0 0.1em;
border: 0;
background: none;
color: var(--ink);
font: inherit;
letter-spacing: -0.01em;
cursor: pointer;
}
.services__word:focus-visible {
outline: none;
}
@property --services-sweep {
syntax: "<angle>";
inherits: false;
initial-value: 0deg;
}
.services__ring {
position: absolute;
top: 50%;
left: -0.2em;
width: calc(100% + 0.4em);
height: 1.2em;
border: 0.055em solid var(--services-ring);
border-radius: 50%;
translate: 0 -50%;
pointer-events: none;
mask: conic-gradient(from 210deg, var(--ink) var(--services-sweep), transparent 0);
transition: --services-sweep 0.4s var(--ease-pop);
}
.services__word:hover .services__ring,
.services__word:focus-visible .services__ring,
.services__word.is-active .services__ring {
--services-sweep: 360deg;
}
.services__note {
max-width: 22ch;
margin: 0;
text-wrap: pretty;
transition: opacity var(--time) var(--ease), filter var(--time) var(--ease);
}
.services__note.is-swapping {
opacity: 0;
filter: blur(4px);
}
@media (max-width: 56rem) {
.services {
grid-template-columns: 1fr;
gap: var(--space-m);
}
.services__list {
font-size: calc(var(--text-xl) * 1.1);
}
.services__note {
max-width: 34ch;
}
}
</style>
<script>
(() => {
function setUp(root) {
const words = [...root.querySelectorAll('.services__word')];
const note = root.querySelector('.services__note');
let chosen = words.find((word) => word.classList.contains('is-active')) || words[0];
let swap = 0;
function show(word) {
if (note.textContent === word.dataset.note) return;
clearTimeout(swap);
note.classList.add('is-swapping');
swap = setTimeout(() => {
note.textContent = word.dataset.note;
note.classList.remove('is-swapping');
}, 200);
}
function choose(word) {
chosen.classList.remove('is-active');
chosen.setAttribute('aria-pressed', 'false');
word.classList.add('is-active');
word.setAttribute('aria-pressed', 'true');
chosen = word;
show(word);
}
for (const word of words) {
word.addEventListener('mouseenter', () => show(word));
word.addEventListener('mouseleave', () => show(chosen));
word.addEventListener('focus', () => show(word));
word.addEventListener('blur', () => show(chosen));
word.addEventListener('click', () => choose(word));
}
}
document.querySelectorAll('.services').forEach(setUp);
})();
</script>