Peach Haze Prompt Deck
A soft off-white product page under a warm peach haze: one floating prompt field, narrow tight-tracked headlines, orange pills and a deck of deep jewel-toned cards with two-tone lines. Suits question-and-answer products, assistants, advice and expert marketplaces.
Parts
Top bar
A thin top bar: a small wordmark left, a quiet sign-in link and an orange pill right; it frosts white once the page scrolls.
Code
React For Figma<header class="nav">
<div class="nav__bar">
<a class="nav__brand" href="#" aria-label="Oldhand home">
<svg class="nav__glyph" viewBox="0 0 20 20" width="18" height="18" aria-hidden="true">
<path d="M3 10a7 7 0 0 1 14 0z" fill="currentColor" />
<path d="M6 12.5h8a4 4 0 0 1-8 0z" fill="currentColor" opacity="0.45" />
</svg>
<span class="nav__wordmark">Oldhand</span>
</a>
<nav class="nav__links" aria-label="Main">
<a class="nav__link" href="#">Browse</a>
<a class="nav__link" href="#">For makers</a>
<a class="nav__link" href="#">Journal</a>
</nav>
<div class="nav__actions">
<a class="nav__signin" href="#">
<svg viewBox="0 0 16 16" width="15" height="15" aria-hidden="true"><path d="M9 3h3.5v10H9M2.5 8h7M7 5.2 9.8 8 7 10.8" fill="none" stroke="currentColor" stroke-width="1.4" stroke-linecap="round" stroke-linejoin="round" /></svg>
Sign in
</a>
<a class="nav__cta" href="#">
<svg viewBox="0 0 16 16" width="14" height="14" aria-hidden="true"><circle cx="6.5" cy="5.5" r="2.6" fill="none" stroke="currentColor" stroke-width="1.4" /><path d="M1.8 13.5c.6-2.4 2.4-3.6 4.7-3.6s4.1 1.2 4.7 3.6M12.5 4.5v4M10.5 6.5h4" fill="none" stroke="currentColor" stroke-width="1.4" stroke-linecap="round" /></svg>
Open your bench
</a>
</div>
</div>
</header>
<style>
.nav {
position: sticky;
top: 0;
z-index: 20;
padding: var(--space-s) var(--edge);
background: transparent;
transition: background-color var(--quick) var(--ease), box-shadow var(--quick) var(--ease), backdrop-filter var(--quick) var(--ease);
}
.nav.is-scrolled {
background: rgba(249, 249, 248, 0.82);
backdrop-filter: blur(14px);
-webkit-backdrop-filter: blur(14px);
box-shadow: 0 var(--hairline) 0 var(--line);
}
.nav__bar {
display: flex;
align-items: center;
gap: var(--space-l);
min-height: 48px;
}
.nav__brand {
display: inline-flex;
align-items: center;
gap: 6px;
min-height: 44px;
color: var(--ink-soft);
text-decoration: none;
}
.nav__wordmark {
font-family: var(--font-display);
font-size: 20px;
font-weight: 500;
letter-spacing: var(--track-tight);
}
.nav__links {
display: flex;
gap: var(--space-xs);
margin-right: auto;
}
.nav__link {
display: inline-flex;
align-items: center;
min-height: 44px;
padding: 0 12px;
border-radius: var(--radius-pill);
color: var(--ink-soft);
font-size: var(--text-m);
font-weight: 500;
text-decoration: none;
transition: color var(--quick) var(--ease), background-color var(--quick) var(--ease);
}
.nav__link:hover,
.nav__link:focus-visible {
color: var(--ink);
background: var(--chip);
}
.nav__actions {
display: flex;
align-items: center;
gap: var(--space-s);
margin-left: auto;
}
.nav__signin,
.nav__cta {
display: inline-flex;
align-items: center;
gap: 6px;
min-height: 44px;
padding: 0 16px;
border-radius: var(--radius-pill);
font-size: var(--text-m);
font-weight: 500;
letter-spacing: var(--track-soft);
text-decoration: none;
transition: color var(--quick) var(--ease), background-color var(--quick) var(--ease), transform var(--quick) var(--ease);
}
.nav__signin {
color: var(--ink-soft);
}
.nav__signin:hover,
.nav__signin:focus-visible {
color: var(--ink);
}
.nav__cta {
background: var(--accent);
color: var(--card);
}
.nav__cta:hover,
.nav__cta:focus-visible {
background: var(--accent-deep);
}
.nav__cta:active {
transform: scale(0.97);
}
.nav a:focus-visible {
outline: 2px solid var(--accent);
outline-offset: 2px;
}
@media (max-width: 760px) {
.nav__links {
display: none;
}
}
@media (max-width: 480px) {
.nav__signin {
padding: 0 8px;
}
.nav__cta svg {
display: none;
}
.nav__cta {
padding: 0 14px;
}
.nav__bar {
gap: var(--space-s);
}
}
</style>
<script>
(() => {
document.querySelectorAll(".nav").forEach((nav) => {
const update = () => nav.classList.toggle("is-scrolled", window.scrollY > 8);
update();
window.addEventListener("scroll", update, { passive: true });
});
})();
</script>
Prompt hero
Peach haze, a narrow two-line headline ringed by drifting topic pills, one floating prompt field that types its own examples, and a row of filter pills.
Code
React For Figma<section class="hero">
<div class="hero__haze" aria-hidden="true"></div>
<div class="hero__orbit" aria-hidden="true">
<div class="hero__ring">
<span class="hero__topic" style="--a: -62deg"><span class="hero__topic-in">Joinery</span></span>
<span class="hero__topic" style="--a: -28deg"><span class="hero__topic-in">Sourdough</span></span>
<span class="hero__topic" style="--a: 8deg"><span class="hero__topic-in">Glazes</span></span>
<span class="hero__topic" style="--a: 44deg"><span class="hero__topic-in">Boat repair</span></span>
<span class="hero__topic" style="--a: 78deg"><span class="hero__topic-in">Beekeeping</span></span>
<span class="hero__topic" style="--a: -96deg"><span class="hero__topic-in">Letterpress</span></span>
<span class="hero__topic" style="--a: 118deg"><span class="hero__topic-in">Pruning</span></span>
<span class="hero__topic" style="--a: -140deg"><span class="hero__topic-in">Upholstery</span></span>
<span class="hero__topic" style="--a: 160deg"><span class="hero__topic-in">Weaving</span></span>
</div>
</div>
<div class="hero__inner">
<h1 class="hero__title">Find hands that <br />have done it before</h1>
<p class="hero__lead">Describe the job in front of you. Hear from people who have finished it.</p>
<form class="hero__field" action="#" onsubmit="return false">
<label class="hero__label" for="hero-ask">Describe your situation</label>
<textarea class="hero__input" id="hero-ask" rows="3" placeholder="My first dovetail joints keep gapping at the baseline"></textarea>
<ul class="hero__examples" hidden>
<li>My first dovetail joints keep gapping at the baseline</li>
<li>The glaze crawls off the rim every time I fire to cone six</li>
<li>I want to rebuild a wooden dinghy over one winter in a garage</li>
<li>My starter rises well but the loaf spreads flat in the oven</li>
</ul>
<div class="hero__tools">
<button class="hero__mic" type="button" aria-label="Speak instead">
<svg viewBox="0 0 16 16" width="16" height="16" aria-hidden="true"><rect x="5.5" y="1.8" width="5" height="8" rx="2.5" fill="none" stroke="currentColor" stroke-width="1.3" /><path d="M3.2 7.6a4.8 4.8 0 0 0 9.6 0M8 12.4v2" fill="none" stroke="currentColor" stroke-width="1.3" stroke-linecap="round" /></svg>
</button>
</div>
</form>
<p class="hero__hint">Know a craft well? <a href="#">Open a bench</a> and let others ask your work questions.</p>
<div class="hero__filters" role="group" aria-label="Filter by craft">
<button class="hero__chip hero__chip--mine" type="button" aria-pressed="false">
<svg viewBox="0 0 12 12" width="12" height="12" aria-hidden="true"><path d="M6 .8 7.5 4.2l3.7.3-2.8 2.4.9 3.6L6 8.6 2.7 10.5l.9-3.6L.8 4.5l3.7-.3z" fill="currentColor" /></svg>
For you
</button>
<span class="hero__divider" aria-hidden="true"></span>
<button class="hero__chip is-active" type="button" aria-pressed="true">All</button>
<button class="hero__chip" type="button" aria-pressed="false">Wood</button>
<button class="hero__chip" type="button" aria-pressed="false">Clay</button>
<button class="hero__chip" type="button" aria-pressed="false">Kitchen</button>
<button class="hero__chip" type="button" aria-pressed="false">Garden</button>
<button class="hero__chip" type="button" aria-pressed="false">Boats</button>
<button class="hero__chip" type="button" aria-pressed="false">Textiles</button>
</div>
</div>
</section>
<style>
.hero {
position: relative;
overflow: hidden;
isolation: isolate;
padding: clamp(56px, 7vw, 92px) var(--edge) clamp(40px, 5vw, 64px);
background: var(--paper);
}
.hero__haze {
position: absolute;
inset: -40% -10% auto;
height: 640px;
z-index: -2;
background:
radial-gradient(38% 46% at 34% 50%, var(--haze-a), transparent 70%),
radial-gradient(34% 40% at 68% 44%, var(--haze-b), transparent 72%),
radial-gradient(60% 50% at 50% 62%, var(--paper-warm), transparent 80%);
filter: blur(30px);
opacity: 0.9;
animation: hero-breathe 14s ease-in-out infinite alternate;
}
@keyframes hero-breathe {
to { transform: translateX(3%) scale(1.06); opacity: 0.7; }
}
.hero__orbit {
--r: clamp(200px, 28vw, 380px);
position: absolute;
left: 50%;
top: 30px;
width: calc(2 * var(--r));
height: calc(2 * var(--r));
margin-left: calc(-1 * var(--r));
z-index: -1;
-webkit-mask-image: linear-gradient(to bottom, #000 34%, transparent 56%);
mask-image: linear-gradient(to bottom, #000 34%, transparent 56%);
}
.hero__orbit::before {
content: "";
position: absolute;
inset: 0;
border-radius: 50%;
border: var(--hairline) solid rgba(33, 32, 28, 0.1);
}
.hero__ring {
position: absolute;
left: 50%;
top: 50%;
width: 0;
height: 0;
animation: hero-turn var(--drift) linear infinite;
}
.hero__topic {
position: absolute;
left: 0;
top: 0;
transform: rotate(var(--a)) translateY(calc(-1 * var(--r))) rotate(calc(-1 * var(--a)));
}
.hero__topic-in {
display: inline-flex;
align-items: center;
gap: 5px;
padding: 4px 10px;
border-radius: var(--radius-pill);
background: rgba(255, 255, 255, 0.72);
box-shadow: 0 0 0 var(--hairline) var(--line);
color: var(--ink-faint);
font-size: var(--text-xs);
font-weight: 500;
white-space: nowrap;
translate: -50% -50%;
animation: hero-turn var(--drift) linear infinite reverse;
}
.hero__topic-in::before {
content: "";
width: 5px;
height: 5px;
border-radius: 50%;
background: var(--ink-ghost);
}
@keyframes hero-turn {
to { transform: rotate(360deg); }
}
.hero.is-paused .hero__ring,
.hero.is-paused .hero__topic-in,
.hero.is-paused .hero__haze {
animation-play-state: paused;
}
.hero__inner {
max-width: var(--max);
margin: 0 auto;
text-align: center;
}
.hero__title {
margin: 0;
font-family: var(--font-display);
font-size: var(--display-l);
font-weight: 400;
line-height: 1.02;
letter-spacing: var(--track-tight);
color: var(--ink);
}
.hero__lead {
margin: var(--space-m) 0 0;
color: var(--ink-soft);
font-size: var(--text-l);
letter-spacing: var(--track-soft);
}
.hero__field {
position: relative;
display: flex;
flex-direction: column;
width: min(100%, 560px);
margin: var(--space-xl) auto 0;
padding: 18px 18px 10px 20px;
border-radius: var(--radius-field);
background: var(--card);
box-shadow: var(--shadow-field);
text-align: left;
transition: box-shadow var(--quick) var(--ease), transform var(--quick) var(--ease);
}
.hero__field:focus-within {
box-shadow: 0 0 0 2px var(--accent-glow), var(--shadow-field);
}
.hero__label {
position: absolute;
width: 1px;
height: 1px;
overflow: hidden;
clip-path: inset(50%);
}
.hero__input {
width: 100%;
min-height: 66px;
border: 0;
padding: 0;
resize: none;
background: transparent;
color: var(--ink);
font: 400 var(--text-l) / 1.5 var(--font-body);
letter-spacing: var(--track-soft);
outline: none;
}
.hero__input::placeholder {
color: var(--ink-ghost);
}
.hero__tools {
display: flex;
justify-content: flex-end;
}
.hero__mic {
display: grid;
place-items: center;
width: 44px;
height: 44px;
margin-right: -10px;
border: 0;
border-radius: var(--radius-pill);
background: transparent;
color: var(--ink-soft);
cursor: pointer;
transition: background-color var(--quick) var(--ease), color var(--quick) var(--ease);
}
.hero__mic:hover,
.hero__mic:focus-visible {
background: var(--chip);
color: var(--ink);
}
.hero__hint {
margin: var(--space-m) 0 0;
color: var(--ink-faint);
font-size: var(--text-s);
}
.hero__hint a {
color: var(--ink-soft);
text-decoration: underline;
text-decoration-color: var(--ink-ghost);
text-underline-offset: 3px;
}
.hero__filters {
display: flex;
flex-wrap: wrap;
justify-content: center;
align-items: center;
gap: var(--space-s);
margin-top: var(--space-xl);
}
.hero__chip {
display: inline-flex;
align-items: center;
gap: 6px;
min-height: 44px;
padding: 0 18px;
border: 0;
border-radius: var(--radius-pill);
background: var(--chip);
color: var(--ink-soft);
font: 500 var(--text-m) / 1 var(--font-body);
letter-spacing: var(--track-soft);
cursor: pointer;
transition: color var(--quick) var(--ease), background-color var(--quick) var(--ease), transform var(--quick) var(--ease);
}
.hero__chip:hover {
color: var(--ink);
background: rgba(33, 32, 28, 0.09);
}
.hero__chip:active {
transform: scale(0.96);
}
.hero__chip:focus-visible,
.hero__mic:focus-visible {
outline: 2px solid var(--accent);
outline-offset: 2px;
}
.hero__chip--mine {
background: var(--ink);
color: var(--card);
}
.hero__chip--mine svg {
color: var(--accent);
}
.hero__chip--mine:hover {
background: var(--ink);
color: var(--card);
}
.hero__chip.is-active {
background: var(--accent);
color: var(--card);
}
.hero__chip--mine.is-active {
background: var(--ink);
box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--accent);
}
.hero__divider {
width: var(--hairline);
height: 22px;
background: var(--line);
}
@media (max-width: 640px) {
.hero__title br,
.hero__ring {
display: none;
}
.hero__filters {
flex-wrap: nowrap;
justify-content: flex-start;
overflow-x: auto;
margin-inline: calc(-1 * var(--edge));
padding: 2px var(--edge);
scrollbar-width: none;
}
.hero__chip {
flex: none;
}
}
</style>
<script>
(() => {
const reduce = window.matchMedia("(prefers-reduced-motion: reduce)").matches;
document.querySelectorAll(".hero").forEach((hero) => {
const chips = hero.querySelectorAll(".hero__chip");
chips.forEach((chip) => {
chip.addEventListener("click", () => {
chips.forEach((c) => {
c.classList.toggle("is-active", c === chip);
c.setAttribute("aria-pressed", String(c === chip));
});
});
});
const input = hero.querySelector(".hero__input");
const lines = [...hero.querySelectorAll(".hero__examples li")].map((li) => li.textContent.trim());
let visible = true;
new IntersectionObserver(([entry]) => {
visible = entry.isIntersecting;
hero.classList.toggle("is-paused", !visible);
}).observe(hero);
if (reduce || !lines.length) return;
let line = 0;
let shown = lines[0].length;
let typing = false;
const step = () => {
let wait = 38;
if (visible && document.activeElement !== input && !input.value) {
const text = lines[line];
if (typing) {
shown += 1;
if (shown >= text.length) { typing = false; wait = 2600; }
} else {
shown -= 2;
if (shown <= 0) { shown = 0; typing = true; line = (line + 1) % lines.length; wait = 300; }
}
input.placeholder = lines[line].slice(0, Math.max(0, shown)) || " ";
} else {
wait = 400;
}
setTimeout(step, wait);
};
setTimeout(step, 2600);
});
})();
</script>
Jewel card deck
Deep jewel-toned cards with two-tone lines and a tag chip; they lift and soften their corners on hover, and a shuffle button deals them again.
Code
React For Figma<section class="deck">
<div class="deck__head">
<h2 class="deck__title">Ask people who have built it.</h2>
<button class="deck__shuffle" type="button" aria-label="Deal the cards again">
<svg viewBox="0 0 16 16" width="16" height="16" aria-hidden="true"><path d="M1.5 4.5h2.6c1.6 0 2.6.8 3.5 2.2l1.4 2.4c.8 1.4 1.8 2.4 3.5 2.4h2M12.5 9.5l2 2-2 2M1.5 11.5h2.6c1 0 1.7-.3 2.3-.9M14.5 4.5h-2c-1 0-1.8.3-2.4 1M12.5 2.5l2 2-2 2" fill="none" stroke="currentColor" stroke-width="1.3" stroke-linecap="round" stroke-linejoin="round" /></svg>
</button>
</div>
<ul class="deck__grid">
<li class="deck__item">
<a class="deck__card deck__card--wine" href="#">
<svg class="deck__mark" viewBox="0 0 20 20" width="14" height="14" aria-hidden="true"><path d="M3 10a7 7 0 0 1 14 0z" fill="currentColor" /><path d="M6 12.5h8a4 4 0 0 1-8 0z" fill="currentColor" opacity="0.5" /></svg>
<span class="deck__line">Ask boatwrights about <span class="deck__line-two">the first winter afloat in a hull you built</span></span>
<span class="deck__tag">Boats</span>
</a>
</li>
<li class="deck__item">
<a class="deck__card deck__card--coal" href="#">
<svg class="deck__mark" viewBox="0 0 20 20" width="14" height="14" aria-hidden="true"><path d="M3 10a7 7 0 0 1 14 0z" fill="currentColor" /><path d="M6 12.5h8a4 4 0 0 1-8 0z" fill="currentColor" opacity="0.5" /></svg>
<span class="deck__line">Ask a print shop foreman about <span class="deck__line-two">running a press room that never stops</span></span>
<span class="deck__tag">Print</span>
</a>
</li>
<li class="deck__item">
<a class="deck__card deck__card--forest" href="#">
<svg class="deck__mark" viewBox="0 0 20 20" width="14" height="14" aria-hidden="true"><path d="M3 10a7 7 0 0 1 14 0z" fill="currentColor" /><path d="M6 12.5h8a4 4 0 0 1-8 0z" fill="currentColor" opacity="0.5" /></svg>
<span class="deck__line">Ask orchard keepers about <span class="deck__line-two">trees that outlive the people who plant them</span></span>
<span class="deck__tag">Garden</span>
</a>
</li>
<li class="deck__item">
<a class="deck__card deck__card--plum" href="#">
<svg class="deck__mark" viewBox="0 0 20 20" width="14" height="14" aria-hidden="true"><path d="M3 10a7 7 0 0 1 14 0z" fill="currentColor" /><path d="M6 12.5h8a4 4 0 0 1-8 0z" fill="currentColor" opacity="0.5" /></svg>
<span class="deck__line">Ask potters about <span class="deck__line-two">the kiln load that taught them patience</span></span>
<span class="deck__tag">Clay</span>
</a>
</li>
<li class="deck__item">
<a class="deck__card deck__card--slate" href="#">
<svg class="deck__mark" viewBox="0 0 20 20" width="14" height="14" aria-hidden="true"><path d="M3 10a7 7 0 0 1 14 0z" fill="currentColor" /><path d="M6 12.5h8a4 4 0 0 1-8 0z" fill="currentColor" opacity="0.5" /></svg>
<span class="deck__line">Ask a weaver about <span class="deck__line-two">turning a hobby loom into rent money</span></span>
<span class="deck__tag">Textiles</span>
</a>
</li>
<li class="deck__item">
<a class="deck__card deck__card--warm" href="#">
<svg class="deck__mark" viewBox="0 0 20 20" width="14" height="14" aria-hidden="true"><path d="M3 10a7 7 0 0 1 14 0z" fill="currentColor" /><path d="M6 12.5h8a4 4 0 0 1-8 0z" fill="currentColor" opacity="0.5" /></svg>
<span class="deck__line">Ask night bakers about <span class="deck__line-two">keeping a starter alive for thirty years</span></span>
<span class="deck__tag">Kitchen</span>
</a>
</li>
</ul>
</section>
<style>
.deck {
padding: var(--space-xl) var(--edge) var(--section-space);
}
.deck__head,
.deck__grid {
max-width: var(--max);
margin-inline: auto;
}
.deck__head {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: var(--space-m);
}
.deck__title {
margin: 0;
font-size: var(--text-xl);
font-weight: 500;
letter-spacing: var(--track-soft);
}
.deck__shuffle {
display: grid;
place-items: center;
width: 44px;
height: 44px;
border: 0;
border-radius: var(--radius-pill);
background: transparent;
color: var(--ink-soft);
cursor: pointer;
transition: background-color var(--quick) var(--ease), color var(--quick) var(--ease), transform var(--slide) var(--ease-out);
}
.deck__shuffle:hover,
.deck__shuffle:focus-visible {
background: var(--chip);
color: var(--ink);
}
.deck__shuffle:active {
transform: rotate(180deg);
}
.deck__shuffle:focus-visible {
outline: 2px solid var(--accent);
outline-offset: 2px;
}
.deck__grid {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: var(--gap);
padding: 10px 0 0;
list-style: none;
}
.deck__item {
position: relative;
}
.deck__item.is-dealt {
animation: deck-deal var(--slide) var(--ease-out) both;
animation-delay: calc(var(--i, 0) * 70ms);
}
@keyframes deck-deal {
from { opacity: 0; transform: translateY(18px) scale(0.98); }
}
.deck__card {
--deck-bg: var(--jewel-coal);
--deck-two: var(--on-dark-soft);
--deck-ink: var(--on-dark);
--deck-chip: var(--on-dark-chip);
position: relative;
display: flex;
flex-direction: column;
gap: var(--space-m);
min-height: 220px;
padding: 20px 20px 18px;
border-radius: var(--radius-card);
background:
radial-gradient(120% 70% at 20% 0%, rgba(255, 255, 255, 0.09), transparent 60%),
var(--deck-bg);
color: var(--deck-ink);
text-decoration: none;
transition: transform var(--slide) var(--ease-out), border-radius var(--morph) var(--ease-out), box-shadow var(--quick) var(--ease);
}
/* The card behind: a blurred rim of the same colour that peeks above the top edge. */
.deck__card::before {
content: "";
position: absolute;
inset: -8px 14px auto;
height: 40px;
z-index: -1;
border-radius: var(--radius-card) var(--radius-card) 0 0;
background: var(--deck-bg);
opacity: 0.35;
filter: blur(5px);
transition: transform var(--slide) var(--ease-out), opacity var(--slide) var(--ease-out);
}
.deck__item {
z-index: 0;
}
.deck__card:hover,
.deck__card:focus-visible {
transform: translateY(-4px);
border-radius: var(--radius-card-hover);
box-shadow: 0 22px 40px -22px var(--deck-bg);
}
.deck__card:hover::before,
.deck__card:focus-visible::before {
transform: translateY(-4px);
opacity: 0.55;
}
.deck__card:focus-visible {
outline: 2px solid var(--accent);
outline-offset: 3px;
}
.deck__card--wine { --deck-bg: var(--jewel-wine); --deck-two: var(--tint-wine); }
.deck__card--coal { --deck-bg: var(--jewel-coal); }
.deck__card--forest { --deck-bg: var(--jewel-forest); }
.deck__card--plum { --deck-bg: var(--jewel-plum); }
.deck__card--slate { --deck-bg: var(--jewel-slate); }
.deck__card--warm {
--deck-bg: var(--paper-warm);
--deck-ink: var(--ink);
--deck-two: var(--accent);
--deck-chip: var(--chip);
}
.deck__mark {
opacity: 0.8;
}
.deck__line {
font-family: var(--font-display);
font-size: var(--display-s);
font-weight: 400;
line-height: 1.12;
letter-spacing: var(--track-tight);
text-wrap: balance;
}
.deck__line-two {
display: block;
color: var(--deck-two);
}
.deck__tag {
align-self: flex-start;
margin-top: auto;
padding: 5px 9px;
border-radius: 6px;
background: var(--deck-chip);
font-size: var(--text-xs);
font-weight: 500;
letter-spacing: var(--track-tag);
text-transform: uppercase;
}
@media (max-width: 860px) {
.deck__grid {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
}
@media (max-width: 560px) {
.deck__grid {
grid-template-columns: minmax(0, 1fr);
gap: 18px;
}
.deck__card {
min-height: 168px;
}
}
</style>
<script>
(() => {
const reduce = window.matchMedia("(prefers-reduced-motion: reduce)").matches;
document.querySelectorAll(".deck").forEach((deck) => {
const grid = deck.querySelector(".deck__grid");
const button = deck.querySelector(".deck__shuffle");
button.addEventListener("click", () => {
const items = [...grid.children];
for (let i = items.length - 1; i > 0; i -= 1) {
const j = Math.floor(Math.random() * (i + 1));
[items[i], items[j]] = [items[j], items[i]];
}
items.forEach((item, i) => {
item.classList.remove("is-dealt");
item.style.setProperty("--i", i);
grid.appendChild(item);
});
if (reduce) return;
void grid.offsetWidth;
items.forEach((item) => item.classList.add("is-dealt"));
});
});
})();
</script>
Quick questions
White cards of everyday questions with key words in ink and the rest in grey, a tag and a stack of round portraits who could answer.
Code
React For Figma<section class="questions">
<div class="questions__head">
<h2 class="questions__title">Ask a quick question</h2>
<a class="questions__more" href="#">See all <span aria-hidden="true">→</span></a>
</div>
<ul class="questions__grid">
<li>
<a class="questions__card" href="#">
<p class="questions__text"><b>I sand</b> for hours and <b>the finish still raises</b> the moment it gets wet</p>
<span class="questions__foot">
<span class="questions__tag">Wood</span>
<span class="questions__faces">
<img class="questions__face" src="assets/sitter-b.jpg" alt="" width="30" height="30" loading="lazy" />
<img class="questions__face" src="assets/sitter-e.jpg" alt="" width="30" height="30" loading="lazy" />
<img class="questions__face" src="assets/sitter-d.jpg" alt="" width="30" height="30" loading="lazy" />
<span class="questions__count">+12</span>
</span>
</span>
</a>
</li>
<li>
<a class="questions__card" href="#">
<p class="questions__text"><b>My business partner</b> stopped coming to the studio <b>but still owns half the kiln</b></p>
<span class="questions__foot">
<span class="questions__tag">Business</span>
<span class="questions__faces">
<img class="questions__face" src="assets/sitter-d.jpg" alt="" width="30" height="30" loading="lazy" />
<img class="questions__face" src="assets/sitter-a.jpg" alt="" width="30" height="30" loading="lazy" />
<img class="questions__face" src="assets/sitter-c.jpg" alt="" width="30" height="30" loading="lazy" />
<span class="questions__count">+7</span>
</span>
</span>
</a>
</li>
<li>
<a class="questions__card" href="#">
<p class="questions__text"><b>My wrists ache after a day at the wheel</b> but I don't want to lose the rhythm</p>
<span class="questions__foot">
<span class="questions__tag">Clay</span>
<span class="questions__faces">
<img class="questions__face" src="assets/sitter-c.jpg" alt="" width="30" height="30" loading="lazy" />
<img class="questions__face" src="assets/sitter-b.jpg" alt="" width="30" height="30" loading="lazy" />
<img class="questions__face" src="assets/sitter-e.jpg" alt="" width="30" height="30" loading="lazy" />
<span class="questions__count">+9</span>
</span>
</span>
</a>
</li>
<li>
<a class="questions__card" href="#">
<p class="questions__text"><b>I'm baking 300 loaves a week</b> from a home oven and <b>something burns every night</b></p>
<span class="questions__foot">
<span class="questions__tag">Kitchen</span>
<span class="questions__faces">
<img class="questions__face" src="assets/sitter-a.jpg" alt="" width="30" height="30" loading="lazy" />
<img class="questions__face" src="assets/sitter-d.jpg" alt="" width="30" height="30" loading="lazy" />
<img class="questions__face" src="assets/sitter-b.jpg" alt="" width="30" height="30" loading="lazy" />
<span class="questions__count">+21</span>
</span>
</span>
</a>
</li>
</ul>
</section>
<style>
.questions {
padding: var(--space-xl) var(--edge) var(--section-space);
}
.questions__head,
.questions__grid {
max-width: var(--max);
margin-inline: auto;
}
.questions__head {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: var(--space-m);
}
.questions__title {
margin: 0;
font-size: var(--text-xl);
font-weight: 500;
letter-spacing: var(--track-soft);
}
.questions__more {
display: inline-flex;
align-items: center;
gap: 6px;
min-height: 44px;
padding: 0 14px;
border-radius: var(--radius-pill);
color: var(--ink-soft);
font-size: var(--text-s);
font-weight: 500;
text-decoration: none;
transition: background-color var(--quick) var(--ease), color var(--quick) var(--ease);
}
.questions__more:hover,
.questions__more:focus-visible {
background: var(--chip);
color: var(--ink);
}
.questions__grid {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: var(--gap);
padding: 0;
list-style: none;
}
.questions__card {
display: flex;
flex-direction: column;
justify-content: space-between;
gap: var(--space-l);
height: 100%;
min-height: 168px;
padding: 22px 20px 18px;
border-radius: var(--radius-card);
background: var(--card);
box-shadow: 0 0 0 var(--hairline) var(--line);
color: inherit;
text-decoration: none;
transition: box-shadow var(--quick) var(--ease), transform var(--slide) var(--ease-out);
}
.questions__card:hover,
.questions__card:focus-visible {
box-shadow: var(--shadow-card);
transform: translateY(-2px);
}
.questions__card:focus-visible,
.questions__more:focus-visible {
outline: 2px solid var(--accent);
outline-offset: 2px;
}
.questions__text {
margin: 0;
color: var(--ink-soft);
font-size: var(--text-xl);
line-height: 1.38;
letter-spacing: var(--track-soft);
transition: color var(--quick) var(--ease);
}
.questions__text b {
color: var(--ink);
font-weight: 500;
}
.questions__card:hover .questions__text {
color: var(--ink);
}
.questions__foot {
display: flex;
align-items: center;
justify-content: space-between;
gap: var(--space-m);
}
.questions__tag {
padding: 4px 8px;
border-radius: 6px;
box-shadow: 0 0 0 var(--hairline) var(--line);
color: var(--ink-faint);
font-size: var(--text-xs);
font-weight: 500;
letter-spacing: var(--track-tag);
text-transform: uppercase;
}
.questions__faces {
display: flex;
align-items: center;
}
.questions__face {
width: 30px;
height: 30px;
margin-left: -8px;
border-radius: 50%;
border: 2px solid var(--card);
object-fit: cover;
object-position: 50% 22%;
transition: transform var(--slide) var(--ease-out);
}
.questions__face:first-child {
margin-left: 0;
}
.questions__card:hover .questions__face {
transform: translateX(calc(var(--n, 0) * 1px));
}
.questions__card:hover .questions__face:nth-child(2) { --n: 3; }
.questions__card:hover .questions__face:nth-child(3) { --n: 6; }
.questions__count {
display: grid;
place-items: center;
height: 30px;
min-width: 30px;
margin-left: -6px;
padding: 0 6px;
border-radius: var(--radius-pill);
border: 2px solid var(--card);
background: var(--paper-warm);
color: var(--ink-soft);
font-size: var(--text-xs);
font-weight: 600;
transition: transform var(--slide) var(--ease-out);
}
.questions__card:hover .questions__count {
transform: translateX(9px);
}
@media (max-width: 640px) {
.questions__grid {
grid-template-columns: minmax(0, 1fr);
}
.questions__text {
font-size: var(--text-l);
}
}
</style>
Portrait rail
A rail of portrait cards with a dark caption, a tight name, credentials and a glass ask pill; the picked card tilts and glows orange.
Code
React For Figma<section class="people">
<div class="people__head">
<h2 class="people__title">Hands worth learning from</h2>
<div class="people__controls">
<button class="people__step" type="button" data-step="-1" aria-label="Previous people">
<svg viewBox="0 0 16 16" width="16" height="16" aria-hidden="true"><path d="M10 3.5 5.5 8l4.5 4.5" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" /></svg>
</button>
<button class="people__step" type="button" data-step="1" aria-label="Next people">
<svg viewBox="0 0 16 16" width="16" height="16" aria-hidden="true"><path d="M6 3.5 10.5 8 6 12.5" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" /></svg>
</button>
</div>
</div>
<ul class="people__rail">
<li class="people__item">
<a class="people__card is-picked" href="#">
<img class="people__photo" src="assets/sitter-b.jpg" alt="Painted portrait of a bearded man holding a palette" width="919" height="1200" />
<span class="people__caption">
<span class="people__name">Anselm Varga <span class="people__check" aria-label="verified"></span></span>
<span class="people__creds">Restorer, 41 years · Oil and panel, Budapest guild</span>
<span class="people__ask">Ask about cleaning varnish without lifting the glaze</span>
</span>
</a>
</li>
<li class="people__item">
<a class="people__card" href="#">
<img class="people__photo" src="assets/sitter-d.jpg" alt="Painted portrait of a seated woman in a fur stole" width="843" height="1068" />
<span class="people__caption">
<span class="people__name">Odile Marchetti <span class="people__check" aria-label="verified"></span></span>
<span class="people__creds">Upholsterer · Two shops, one apprentice program</span>
<span class="people__ask">Ask about pricing a chair you'll spend a month on</span>
</span>
</a>
</li>
<li class="people__item">
<a class="people__card people__card--duo" href="#">
<img class="people__photo" src="assets/sitter-c.jpg" alt="Marble bust of a young woman" width="900" height="1200" />
<span class="people__caption">
<span class="people__name">Livia Strand <span class="people__check" aria-label="verified"></span></span>
<span class="people__creds">Stone carver · Restoration lead, three cathedrals</span>
<span class="people__ask">Ask about the first cut you can't take back</span>
</span>
</a>
</li>
<li class="people__item">
<a class="people__card" href="#">
<img class="people__photo" src="assets/sitter-e.jpg" alt="Painted portrait of a man in a grey hat" width="788" height="1200" />
<span class="people__caption">
<span class="people__name">Pieter Holm <span class="people__check" aria-label="verified"></span></span>
<span class="people__creds">Bookbinder · 9,000 spines sewn by hand</span>
<span class="people__ask">Ask about a bench that pays for itself</span>
</span>
</a>
</li>
<li class="people__item">
<a class="people__card" href="#">
<img class="people__photo people__photo--tight" src="assets/sitter-a.jpg" alt="Etched portrait of a woman with a pearl necklace" width="936" height="1200" />
<span class="people__caption">
<span class="people__name">Mara Tellen <span class="people__check" aria-label="verified"></span></span>
<span class="people__creds">Etcher · Plates for four presses</span>
<span class="people__ask">Ask about acid timing on a cold morning</span>
</span>
</a>
</li>
</ul>
</section>
<style>
.people {
padding: var(--space-xl) 0 var(--section-space);
overflow: hidden;
}
.people__head {
display: flex;
align-items: center;
justify-content: space-between;
max-width: calc(var(--max) + 2 * var(--edge));
margin: 0 auto var(--space-s);
padding-inline: var(--edge);
}
.people__title {
margin: 0;
font-size: var(--text-xl);
font-weight: 500;
letter-spacing: var(--track-soft);
}
.people__controls {
display: flex;
gap: var(--space-xs);
}
.people__step {
display: grid;
place-items: center;
width: 44px;
height: 44px;
border: 0;
border-radius: var(--radius-pill);
background: transparent;
color: var(--ink-soft);
cursor: pointer;
transition: background-color var(--quick) var(--ease), color var(--quick) var(--ease);
}
.people__step:hover,
.people__step:focus-visible {
background: var(--chip);
color: var(--ink);
}
.people__step:disabled {
opacity: 0.35;
cursor: default;
}
.people__step:focus-visible {
outline: 2px solid var(--accent);
outline-offset: 2px;
}
.people__rail {
display: flex;
gap: var(--gap);
margin: 0;
padding: 18px max(var(--edge), calc((100% - var(--max)) / 2)) 40px;
list-style: none;
overflow-x: auto;
scroll-snap-type: x mandatory;
scroll-padding-inline: max(var(--edge), calc((100% - var(--max)) / 2));
scrollbar-width: none;
}
.people__rail::-webkit-scrollbar {
display: none;
}
.people__item {
flex: 0 0 clamp(220px, 24vw, 256px);
scroll-snap-align: start;
}
.people__card {
position: relative;
display: block;
aspect-ratio: 3 / 4;
overflow: hidden;
border-radius: 22px;
background: var(--jewel-coal);
color: var(--on-dark);
text-decoration: none;
box-shadow: 0 0 0 0 transparent;
transition: transform var(--slide) var(--ease-out), box-shadow var(--quick) var(--ease);
}
.people__card:hover,
.people__card:focus-visible,
.people__card.is-picked {
transform: rotate(-2deg) translateY(-4px);
box-shadow: 0 0 0 2px var(--accent), 0 18px 40px -12px var(--accent-glow);
}
.people__card:focus-visible {
outline: none;
}
.people__photo {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
object-fit: cover;
object-position: 50% 20%;
transition: transform var(--morph) var(--ease-out);
}
.people__photo--tight {
object-position: 50% 34%;
transform: scale(1.75);
transform-origin: 50% 34%;
}
.people__card:hover .people__photo:not(.people__photo--tight) {
transform: scale(1.04);
}
/* One card in the source treatment: the picture pressed into a flat orange field. */
.people__card--duo {
background: var(--accent);
}
.people__card--duo .people__photo {
filter: grayscale(1) contrast(1.15);
mix-blend-mode: multiply;
}
.people__caption {
position: absolute;
inset: auto 0 0;
display: flex;
flex-direction: column;
gap: 6px;
padding: 56px 14px 14px;
background: linear-gradient(to top, var(--scrim) 55%, transparent);
}
.people__name {
display: flex;
align-items: center;
gap: 6px;
font-family: var(--font-display);
font-size: var(--display-s);
font-weight: 400;
line-height: 1;
letter-spacing: var(--track-tight);
}
.people__check {
flex: none;
width: 14px;
height: 14px;
border-radius: 50%;
background:
no-repeat center / 9px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M2 5.2 4.1 7.2 8 3' fill='none' stroke='white' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"),
var(--accent);
}
.people__creds {
color: var(--on-dark-soft);
font-size: var(--text-xs);
line-height: 1.4;
}
.people__ask {
margin-top: 4px;
padding: 8px 10px;
border-radius: 12px;
background: var(--glass);
box-shadow: inset 0 0 0 var(--hairline) rgba(255, 255, 255, 0.18);
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
font-size: var(--text-s);
font-weight: 500;
line-height: 1.3;
}
</style>
<script>
(() => {
document.querySelectorAll(".people").forEach((people) => {
const rail = people.querySelector(".people__rail");
const steps = people.querySelectorAll(".people__step");
const cards = people.querySelectorAll(".people__card");
const update = () => {
const end = rail.scrollWidth - rail.clientWidth - 2;
steps[0].disabled = rail.scrollLeft <= 2;
steps[1].disabled = rail.scrollLeft >= end;
};
steps.forEach((step) => {
step.addEventListener("click", () => {
const item = rail.querySelector(".people__item");
const gap = parseFloat(getComputedStyle(rail).columnGap) || 0;
rail.scrollBy({ left: Number(step.dataset.step) * (item.offsetWidth + gap), behavior: "smooth" });
});
});
cards.forEach((card) => {
const pick = () => cards.forEach((c) => c.classList.toggle("is-picked", c === card));
card.addEventListener("mouseenter", pick);
card.addEventListener("focus", pick);
});
rail.addEventListener("scroll", update, { passive: true });
window.addEventListener("resize", update);
update();
});
})();
</script>
Situation and answer
A two-tone headline beside a chat panel that plays a short exchange: an orange question, typing dots, a grey answer and an input with an orange send.
Code
React For Figma<section class="chat">
<div class="chat__inner">
<div class="chat__copy">
<p class="chat__eyebrow">How it works</p>
<h2 class="chat__title">Describe the job.<br /><span class="chat__title-two">Hear how they did it.</span></h2>
<p class="chat__body">Find people whose work matches what you are stuck on. Each answer comes from their own notes, jobs and mistakes, not from a manual.</p>
<p class="chat__body">Ask why, ask for the next step, or ask how it applies to your bench and your budget.</p>
<a class="chat__cta" href="#">Ask your first question</a>
</div>
<div class="chat__panel">
<div class="chat__who">
<img class="chat__avatar" src="assets/sitter-e.jpg" alt="Painted portrait of a man in a grey hat" width="40" height="40" />
<span class="chat__who-text">
<span class="chat__who-name">Pieter Holm</span>
<span class="chat__who-role">Bookbinder · answers from 30 years of jobs</span>
</span>
</div>
<div class="chat__log" aria-live="polite">
<p class="chat__bubble chat__bubble--me">I've taken in more repair work than I can finish and the shelf keeps growing</p>
<p class="chat__typing" aria-hidden="true"><span></span><span></span><span></span></p>
<div class="chat__bubble chat__bubble--them">
<p>That's the queue problem every small bench hits. Stop quoting finish dates and quote a start date instead. Then price the fast jobs higher, not lower: they are the ones that break your week.</p>
<span class="chat__source">From his workshop notes, 2019</span>
</div>
<p class="chat__suggest-label">Suggested</p>
<button class="chat__suggest" type="button">How did you say no to a regular customer without losing them?</button>
</div>
<form class="chat__form" action="#" onsubmit="return false">
<label class="chat__label" for="chat-input">Ask Pieter anything</label>
<input class="chat__input" id="chat-input" type="text" placeholder="Ask Pieter anything…" />
<button class="chat__send" type="submit" aria-label="Send">
<svg viewBox="0 0 16 16" width="16" height="16" aria-hidden="true"><path d="M3 8h10M9 4l4 4-4 4" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round" /></svg>
</button>
</form>
</div>
</div>
</section>
<style>
.chat {
padding: var(--section-space) var(--edge);
}
.chat__inner {
display: grid;
grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
gap: clamp(32px, 6vw, 80px);
align-items: center;
max-width: var(--max);
margin: 0 auto;
}
.chat__eyebrow {
margin: 0 0 var(--space-m);
color: var(--ink-faint);
font-size: var(--text-s);
}
.chat__title {
margin: 0 0 var(--space-l);
font-family: var(--font-display);
font-size: var(--display-m);
font-weight: 400;
line-height: 1.04;
letter-spacing: var(--track-tight);
}
.chat__title-two {
color: var(--ink-soft);
}
.chat__body {
max-width: 30em;
margin: 0 0 var(--space-m);
color: var(--ink-soft);
font-size: var(--text-l);
line-height: 1.6;
}
.chat__cta {
display: inline-flex;
align-items: center;
min-height: 44px;
margin-top: var(--space-s);
padding: 0 20px;
border-radius: var(--radius-pill);
background: var(--accent);
color: var(--card);
font-size: var(--text-m);
font-weight: 500;
text-decoration: none;
transition: background-color var(--quick) var(--ease), transform var(--quick) var(--ease);
}
.chat__cta:hover,
.chat__cta:focus-visible {
background: var(--accent-deep);
}
.chat__cta:active {
transform: scale(0.97);
}
.chat__panel {
display: flex;
flex-direction: column;
gap: var(--space-m);
padding: 16px;
border-radius: var(--radius-field);
background: var(--card);
box-shadow: var(--shadow-field);
}
.chat__who {
display: flex;
align-items: center;
gap: 12px;
padding-bottom: 14px;
border-bottom: var(--hairline) solid var(--line);
}
.chat__avatar {
width: 40px;
height: 40px;
border-radius: var(--radius-s);
object-fit: cover;
object-position: 50% 25%;
}
.chat__who-text {
display: grid;
}
.chat__who-name {
font-family: var(--font-display);
font-size: var(--display-s);
line-height: 1.1;
letter-spacing: var(--track-tight);
}
.chat__who-role {
color: var(--ink-faint);
font-size: var(--text-s);
}
.chat__log {
display: flex;
flex-direction: column;
gap: 10px;
min-height: 300px;
}
.chat__bubble {
max-width: 86%;
margin: 0;
padding: 10px 14px;
border-radius: 18px;
font-size: var(--text-m);
line-height: 1.5;
transition: opacity var(--slide) var(--ease-out), transform var(--slide) var(--ease-out);
}
.chat__bubble p {
margin: 0;
}
.chat__bubble--me {
align-self: flex-end;
border-bottom-right-radius: 6px;
background: var(--accent);
color: var(--card);
}
.chat__bubble--them {
align-self: flex-start;
border-bottom-left-radius: 6px;
background: var(--paper-warm);
color: var(--ink);
}
.chat__source {
display: inline-flex;
margin-top: 8px;
padding: 3px 9px;
border-radius: var(--radius-pill);
background: var(--card);
box-shadow: 0 0 0 var(--hairline) var(--line);
color: var(--ink-faint);
font-size: var(--text-xs);
}
.chat__typing {
display: none;
align-self: flex-start;
gap: 4px;
margin: 0;
padding: 12px 14px;
border-radius: 18px;
background: var(--paper-warm);
}
.chat__typing span {
width: 6px;
height: 6px;
border-radius: 50%;
background: var(--ink-faint);
animation: chat-dot 1s var(--ease) infinite;
}
.chat__typing span:nth-child(2) { animation-delay: 0.15s; }
.chat__typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes chat-dot {
50% { opacity: 0.3; transform: translateY(-3px); }
}
.chat__suggest-label {
margin: 6px 0 0;
color: var(--ink-faint);
font-size: var(--text-xs);
}
.chat__suggest {
align-self: flex-start;
min-height: 44px;
padding: 8px 14px;
border: 0;
border-radius: 14px;
background: var(--chip);
color: var(--ink);
font: 500 var(--text-s) / 1.4 var(--font-body);
text-align: left;
cursor: pointer;
transition: background-color var(--quick) var(--ease), opacity var(--slide) var(--ease-out);
}
.chat__suggest:hover,
.chat__suggest:focus-visible {
background: rgba(33, 32, 28, 0.09);
}
/* Playback: the script resets the log, then brings each line back in turn. */
.chat.is-waiting .chat__bubble--me,
.chat.is-waiting .chat__bubble--them,
.chat.is-asking .chat__bubble--them,
.chat.is-waiting .chat__suggest,
.chat.is-asking .chat__suggest,
.chat.is-waiting .chat__suggest-label,
.chat.is-asking .chat__suggest-label {
opacity: 0;
transform: translateY(10px);
}
.chat.is-asking .chat__typing {
display: flex;
}
.chat.is-asking .chat__bubble--them {
display: none;
}
.chat__form {
display: flex;
align-items: center;
gap: var(--space-s);
padding: 4px 4px 4px 16px;
border-radius: var(--radius-pill);
box-shadow: 0 0 0 var(--hairline) var(--line);
transition: box-shadow var(--quick) var(--ease);
}
.chat__form:focus-within {
box-shadow: 0 0 0 2px var(--accent-glow);
}
.chat__label {
position: absolute;
width: 1px;
height: 1px;
overflow: hidden;
clip-path: inset(50%);
}
.chat__input {
flex: 1;
min-width: 0;
min-height: 44px;
border: 0;
background: transparent;
color: var(--ink);
font: 400 var(--text-m) var(--font-body);
outline: none;
}
.chat__input::placeholder {
color: var(--ink-faint);
}
.chat__send {
display: grid;
place-items: center;
flex: none;
width: 44px;
height: 44px;
border: 0;
border-radius: 50%;
background: var(--accent);
color: var(--card);
cursor: pointer;
transition: background-color var(--quick) var(--ease), transform var(--quick) var(--ease);
}
.chat__send:hover,
.chat__send:focus-visible {
background: var(--accent-deep);
}
.chat__send:active {
transform: scale(0.92);
}
.chat a:focus-visible,
.chat button:focus-visible {
outline: 2px solid var(--accent);
outline-offset: 2px;
}
@media (max-width: 820px) {
.chat__inner {
grid-template-columns: minmax(0, 1fr);
}
.chat__log {
min-height: 0;
}
}
</style>
<script>
(() => {
const reduce = window.matchMedia("(prefers-reduced-motion: reduce)").matches;
document.querySelectorAll(".chat").forEach((chat) => {
let timers = [];
const play = () => {
if (reduce) return;
timers.forEach(clearTimeout);
chat.classList.remove("is-asking");
chat.classList.add("is-waiting");
timers = [
setTimeout(() => { chat.classList.remove("is-waiting"); chat.classList.add("is-asking"); }, 250),
setTimeout(() => chat.classList.remove("is-asking"), 1400),
];
};
const seen = new IntersectionObserver(([entry]) => {
if (entry.isIntersecting) { seen.disconnect(); play(); }
}, { threshold: 0.4 });
seen.observe(chat.querySelector(".chat__panel"));
chat.querySelector(".chat__form").addEventListener("submit", play);
chat.querySelector(".chat__suggest").addEventListener("click", play);
});
})();
</script>
Closing ask and footer
A centred narrow headline with an orange and an outline pill, then a quiet footer of link columns over a hairline.
Code
React For Figma<section class="closer">
<div class="closer__ask">
<div class="closer__haze" aria-hidden="true"></div>
<h2 class="closer__title">You don't have to work it <br />out on your own.</h2>
<div class="closer__buttons">
<a class="closer__button closer__button--main" href="#">Describe your job</a>
<a class="closer__button" href="#">How Oldhand works</a>
</div>
</div>
<footer class="closer__footer">
<div class="closer__top">
<div class="closer__brand">
<a class="closer__mark" href="#" aria-label="Oldhand home">
<svg viewBox="0 0 20 20" width="18" height="18" aria-hidden="true"><path d="M3 10a7 7 0 0 1 14 0z" fill="currentColor" /><path d="M6 12.5h8a4 4 0 0 1-8 0z" fill="currentColor" opacity="0.45" /></svg>
<span class="closer__wordmark">Oldhand</span>
</a>
<p class="closer__line">Questions for people who have done the work.</p>
</div>
<nav class="closer__cols" aria-label="Footer">
<ul class="closer__col">
<li><a href="#">Browse crafts</a></li>
<li><a href="#">Journal</a></li>
<li><a href="#">Ask a maker</a></li>
<li><a href="#">Help</a></li>
</ul>
<ul class="closer__col">
<li><a href="#">About</a></li>
<li><a href="#">Open a bench</a></li>
<li><a href="#">Workshops</a></li>
<li><a href="#">Jobs</a></li>
</ul>
</nav>
</div>
<div class="closer__base">
<p class="closer__fine">© 2027 Oldhand Workshop Co.</p>
<ul class="closer__legal">
<li><a href="#">Terms</a></li>
<li><a href="#">Privacy</a></li>
<li><a href="#">Sign in</a></li>
</ul>
</div>
</footer>
</section>
<style>
.closer {
padding: 0 var(--edge) var(--space-l);
}
.closer__ask {
position: relative;
isolation: isolate;
padding: var(--section-space) 0;
text-align: center;
}
.closer__haze {
position: absolute;
left: 50%;
top: 50%;
width: min(720px, 100%);
height: 260px;
z-index: -1;
transform: translate(-50%, -50%);
background: radial-gradient(50% 50% at 50% 50%, var(--haze-b), transparent 75%);
filter: blur(20px);
}
.closer__title {
margin: 0;
font-family: var(--font-display);
font-size: var(--display-m);
font-weight: 400;
line-height: 1.04;
letter-spacing: var(--track-tight);
text-wrap: balance;
}
.closer__buttons {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: var(--space-s);
margin-top: var(--space-l);
}
.closer__button {
display: inline-flex;
align-items: center;
min-height: 44px;
padding: 0 20px;
border-radius: var(--radius-pill);
box-shadow: inset 0 0 0 var(--hairline) rgba(33, 32, 28, 0.18);
background: var(--card);
color: var(--ink);
font-size: var(--text-m);
font-weight: 500;
text-decoration: none;
transition: background-color var(--quick) var(--ease), box-shadow var(--quick) var(--ease), transform var(--quick) var(--ease);
}
.closer__button:hover,
.closer__button:focus-visible {
box-shadow: inset 0 0 0 var(--hairline) rgba(33, 32, 28, 0.4);
}
.closer__button--main {
background: var(--accent);
box-shadow: none;
color: var(--card);
}
.closer__button--main:hover,
.closer__button--main:focus-visible {
background: var(--accent-deep);
box-shadow: none;
}
.closer__button:active {
transform: scale(0.97);
}
.closer a:focus-visible {
outline: 2px solid var(--accent);
outline-offset: 2px;
}
.closer__footer {
max-width: var(--max);
margin: 0 auto;
padding-top: var(--space-xl);
}
.closer__top {
display: flex;
justify-content: space-between;
gap: var(--space-xl);
padding-bottom: var(--space-xl);
border-bottom: var(--hairline) solid var(--line);
}
.closer__mark {
display: inline-flex;
align-items: center;
gap: 6px;
min-height: 44px;
color: var(--ink-faint);
text-decoration: none;
}
.closer__wordmark {
font-family: var(--font-display);
font-size: 20px;
font-weight: 500;
letter-spacing: var(--track-tight);
}
.closer__line {
margin: var(--space-xs) 0 0;
color: var(--ink-faint);
font-size: var(--text-s);
}
.closer__cols {
display: flex;
gap: clamp(32px, 7vw, 96px);
}
.closer__col,
.closer__legal {
margin: 0;
padding: 0;
list-style: none;
}
.closer__col a,
.closer__legal a {
display: inline-flex;
align-items: center;
min-height: 44px;
min-width: 44px;
color: var(--ink-soft);
font-size: var(--text-m);
text-decoration: none;
transition: color var(--quick) var(--ease);
}
.closer__col a:hover,
.closer__legal a:hover {
color: var(--ink);
}
.closer__base {
display: flex;
align-items: center;
justify-content: space-between;
gap: var(--space-m);
padding-top: var(--space-s);
}
.closer__fine {
margin: 0;
color: var(--ink-faint);
font-size: var(--text-s);
}
.closer__legal {
display: flex;
gap: var(--space-l);
}
.closer__legal a {
color: var(--ink-faint);
font-size: var(--text-s);
}
@media (max-width: 640px) {
.closer__title br {
display: none;
}
.closer__top,
.closer__base {
flex-direction: column;
align-items: flex-start;
}
.closer__col a {
min-height: 44px;
}
}
</style>
Style
- --paper #f9f9f8
- --paper-warm #f7f3f0
- --card #ffffff
- --ink #21201c
- --ink-soft #63635e
- --ink-faint #82827c
- --ink-ghost #bcbbb5
- --line rgba(33, 32, 28, 0.08)
- --chip rgba(33, 32, 28, 0.05)
- --accent #fd5a0d
- --accent-deep #e04700
- --accent-glow rgba(253, 90, 13, 0.35)
- --haze-a #ffd2b0
- --haze-b #ffe7d6
- --on-dark #f0eae4
- --on-dark-soft rgba(240, 234, 228, 0.6)
- --on-dark-chip rgba(255, 255, 255, 0.16)
- --jewel-wine #3e0914
- --jewel-coal #2b2a27
- --jewel-forest #0d4a3b
- --jewel-plum #4b1d40
- --jewel-slate #273e4c
- --tint-wine #ff8a5c
- --scrim rgba(0, 0, 0, 0.55)
- --glass rgba(255, 255, 255, 0.18)
Type
- Inter Tight for headlines, card lines and names, stands in for the site's own narrow display grotesk, set light and tracked very tight
- Inter for body, pills and buttons, stands in for the site's own cut of Inter
Motion
- Topic pills ride a faint arc around the hero headline, one turn every 90 s, linear, stopped off screen.
- The prompt field types its placeholder letter by letter (38 ms a letter), holds, then erases and types the next.
- Deck cards lift 4 px and their corners morph from 26 px to 34 px over 900 ms on cubic-bezier(0.22, 1, 0.36, 1).
- Shuffle deals the deck again: cards fall in from 18 px with a 70 ms stagger over 520 ms.
- Portrait cards tilt 2 degrees and gain an orange glow on hover or focus in 150 ms; the rail steps by one card on the arrows.
- The demo chat plays when in view: the question drops in, three dots pulse, then the answer fades up.
Rules
- One accent only: the orange is kept for the main button, the active pill, the user's bubble and the send arrow.
- Headlines are narrow, light and tracked tight; a second line or phrase is set in grey to make a two-tone statement.
- Everything interactive is a pill: filters, tags, buttons, the prompt hint.
- Cards are big-radius slabs: white with a hairline on the light page, or deep oxblood, charcoal, forest and plum.
- The page is quiet off-white; the only atmosphere is a blurred peach haze at the top.
- Uppercase micro tags in small tracked caps sit in tinted chips at the foot of cards.
- Content sits in a centred 1072 px column with 12 px gaps.
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=Inter:wght@400;500;600&display=swap");
:root {
/* Colour */
--paper: #f9f9f8; /* page background, a cool off-white */
--paper-warm: #f7f3f0; /* warm panels, quiet card fill */
--card: #ffffff; /* white cards and the prompt field */
--ink: #21201c; /* main text, dark pills */
--ink-soft: #63635e; /* secondary text, the grey half of two-tone lines */
--ink-faint: #82827c; /* captions, meta, placeholder text */
--ink-ghost: #bcbbb5; /* faint marks, typed placeholder */
--line: rgba(33, 32, 28, 0.08); /* hairline borders on cards and pills */
--chip: rgba(33, 32, 28, 0.05); /* grey pill fill */
--accent: #fd5a0d; /* the one orange: buttons, active pill, user bubble */
--accent-deep: #e04700; /* orange on hover */
--accent-glow: rgba(253, 90, 13, 0.35); /* orange glow around a picked portrait */
--haze-a: #ffd2b0; /* peach haze, warm centre */
--haze-b: #ffe7d6; /* peach haze, pale edge */
--on-dark: #f0eae4; /* text on jewel cards */
--on-dark-soft: rgba(240, 234, 228, 0.6); /* second line on jewel cards */
--on-dark-chip: rgba(255, 255, 255, 0.16); /* tag chip on jewel cards */
--jewel-wine: #3e0914; /* deck card, oxblood */
--jewel-coal: #2b2a27; /* deck card, charcoal */
--jewel-forest: #0d4a3b; /* deck card, forest */
--jewel-plum: #4b1d40; /* deck card, plum */
--jewel-slate: #273e4c; /* deck card, slate blue */
--tint-wine: #ff8a5c; /* the orange-pink second line on dark cards */
--scrim: rgba(0, 0, 0, 0.55); /* dark wash under portrait captions */
--glass: rgba(255, 255, 255, 0.18); /* glass pill over portraits */
/* Type */
--font-display: "Inter Tight", "Helvetica Neue", Arial, sans-serif; /* headlines, names, card lines: narrow, tight-tracked */
--font-body: "Inter", "Helvetica Neue", Arial, sans-serif; /* running text, pills, buttons */
--text-xs: 11px; /* uppercase tags */
--text-s: 13px; /* meta, pills, small buttons */
--text-m: 14px; /* UI text */
--text-l: 17px; /* lead text */
--text-xl: 19px; /* section labels and quick questions */
--display-s: clamp(20px, 1.9vw, 24px); /* card headlines, names */
--display-m: clamp(34px, 4.2vw, 50px); /* section headlines */
--display-l: clamp(40px, 5.4vw, 64px); /* hero headline */
--track-tight: -0.045em; /* display tracking */
--track-soft: -0.015em; /* UI tracking */
--track-tag: 0.06em; /* uppercase tag tracking */
/* Space */
--edge: clamp(16px, 4vw, 40px); /* page side margin */
--max: 1072px; /* content column */
--gap: 12px; /* gap between cards */
--space-xs: 4px; /* tight gaps */
--space-s: 8px; /* icon gaps, small padding */
--space-m: 16px; /* card padding steps */
--space-l: 24px; /* block gaps */
--space-xl: 40px; /* large block gaps */
--section-space: clamp(56px, 8vw, 104px); /* between sections */
/* Shape */
--radius-card: 26px; /* deck and question cards */
--radius-card-hover: 34px; /* deck card corner as it lifts */
--radius-field: 24px; /* prompt field and chat panel */
--radius-s: 10px; /* small tiles, chat bubbles' tight corner */
--radius-pill: 999px; /* pills, buttons, avatars */
--hairline: 1px; /* border width */
--shadow-field: 0 0 0 1px rgba(33, 32, 28, 0.06), 0 2px 2px rgba(33, 32, 28, 0.03), 0 14px 34px -10px rgba(33, 32, 28, 0.22); /* the floating prompt field */
--shadow-card: 0 0 0 1px rgba(33, 32, 28, 0.05), 0 10px 28px -14px rgba(33, 32, 28, 0.2); /* cards lifted on hover */
/* Motion */
--ease: cubic-bezier(0.165, 0.84, 0.44, 1); /* hovers and presses */
--ease-out: cubic-bezier(0.22, 1, 0.36, 1); /* slides, corner morphs */
--quick: 150ms; /* hover and press */
--slide: 520ms; /* card shifts and rail steps */
--morph: 900ms; /* corner radius morph */
--drift: 90s; /* one turn of the topic orbit */
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/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("peach-haze-prompt-deck"), 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