Floating Card Showcase
A calm app landing page on warm grey and white: one soft grotesk at weight 500, a floating white pill bar, black pill buttons, a phone mockup ringed by tilted cards, and small white interface cards hovering over rounded photo tiles and dashed grid panels. Suits consumer apps, fintech and household tools that want to show their screens rather than describe them.
Parts
Floating pill bar
A white pill bar hovering over warm grey: drawn wordmark, quiet links, a language pill and a black download pill; on phones a round menu button drops a white card.
Code
React For Figma<header class="nav">
<div class="nav__bar">
<a class="nav__brand" href="#" aria-label="Pantrio home">
<svg class="nav__mark" viewBox="0 0 32 24" width="32" height="24" aria-hidden="true">
<circle cx="10" cy="12" r="9" fill="var(--ink)"/>
<circle cx="22" cy="12" r="9" fill="var(--accent)"/>
<path d="M16 5.3a9 9 0 0 1 0 13.4a9 9 0 0 1 0-13.4z" fill="var(--paper)"/>
</svg>
<span class="nav__name">Pantrio</span>
</a>
<nav class="nav__links" aria-label="Main">
<a class="nav__link" href="#">How it works</a>
<a class="nav__link" href="#">Plus</a>
<a class="nav__link" href="#">Recipes</a>
<a class="nav__link" href="#">Journal</a>
<a class="nav__link" href="#">Help</a>
</nav>
<div class="nav__end">
<button class="nav__lang" type="button" aria-label="Language: English">
<svg viewBox="0 0 20 20" width="18" height="18" aria-hidden="true"><circle cx="10" cy="10" r="8" fill="none" stroke="currentColor" stroke-width="1.5"/><path d="M2 10h16M10 2c2.5 2.4 2.5 13.6 0 16M10 2c-2.5 2.4-2.5 13.6 0 16" fill="none" stroke="currentColor" stroke-width="1.5"/></svg>
EN
</button>
<a class="nav__cta" href="#">Get the app</a>
<button class="nav__toggle" type="button" aria-expanded="false" aria-label="Open menu">
<span class="nav__bars" aria-hidden="true"></span>
</button>
</div>
</div>
<div class="nav__menu" hidden>
<a class="nav__menu-link" href="#">How it works</a>
<a class="nav__menu-link" href="#">Plus</a>
<a class="nav__menu-link" href="#">Recipes</a>
<a class="nav__menu-link" href="#">Journal</a>
<a class="nav__menu-link" href="#">Help</a>
<a class="nav__menu-cta" href="#">Get the app</a>
</div>
</header>
<style>
.nav {
position: relative;
z-index: 5;
padding: var(--space-l) var(--edge) 0;
background: var(--stone);
}
.nav__bar {
display: flex;
align-items: center;
gap: var(--space-m);
max-width: calc(var(--max) - 36px);
margin: 0 auto;
padding: 6px 6px 6px 22px;
border-radius: var(--radius-pill);
background: var(--paper);
box-shadow: var(--shadow-card);
}
.nav__brand {
display: inline-flex;
align-items: center;
gap: 10px;
min-height: var(--tap);
color: var(--ink);
text-decoration: none;
}
.nav__name {
font-size: 21px;
font-weight: var(--weight-medium);
letter-spacing: var(--track-tight);
}
.nav__links {
display: flex;
gap: 2px;
margin-left: auto;
}
.nav__link {
display: inline-flex;
align-items: center;
min-height: var(--tap);
padding: 0 10px;
border-radius: var(--radius-pill);
color: var(--ink-2);
font-size: var(--text-s);
text-decoration: none;
transition: color var(--quick) var(--ease);
}
.nav__link:hover,
.nav__link:focus-visible {
color: var(--ink);
}
.nav__end {
display: flex;
align-items: center;
gap: var(--space-s);
}
.nav__lang {
display: inline-flex;
align-items: center;
gap: 6px;
min-height: var(--tap);
padding: 0 14px;
border: var(--rule) solid var(--hair);
border-radius: var(--radius-pill);
background: var(--paper);
color: var(--ink);
font: inherit;
font-size: var(--text-s);
font-weight: var(--weight-semi);
cursor: pointer;
transition: background var(--quick) var(--ease);
}
.nav__lang:hover {
background: var(--mist);
}
.nav__cta,
.nav__menu-cta {
display: inline-flex;
align-items: center;
justify-content: center;
min-height: var(--tap);
padding: 0 18px;
border-radius: var(--radius-pill);
background: var(--ink);
color: var(--on-ink);
font-size: var(--text-s);
font-weight: var(--weight-semi);
text-decoration: none;
transition: background var(--quick) var(--ease);
}
.nav__cta:hover,
.nav__menu-cta:hover {
background: var(--ink-2);
}
.nav__toggle {
display: none;
place-items: center;
width: var(--tap);
height: var(--tap);
padding: 0;
border: 0;
border-radius: var(--radius-pill);
background: transparent;
color: var(--ink);
cursor: pointer;
}
.nav__bars,
.nav__bars::before {
display: block;
width: 18px;
height: 2px;
border-radius: 2px;
background: currentColor;
transition: transform var(--quick) var(--ease);
}
.nav__bars {
position: relative;
transform: translateY(-3px);
}
.nav__bars::before {
content: "";
position: absolute;
top: 6px;
}
.nav.is-open .nav__bars {
transform: translateY(0) rotate(45deg);
}
.nav.is-open .nav__bars::before {
transform: translateY(-6px) rotate(-90deg);
}
.nav__menu {
display: grid;
gap: 2px;
max-width: calc(var(--max) - 36px);
margin: var(--space-s) auto 0;
padding: var(--space-s);
border-radius: var(--radius-panel);
background: var(--paper);
box-shadow: var(--shadow-card);
animation: nav-menu-in var(--snappy) var(--ease) both;
}
.nav__menu[hidden] {
display: none;
}
.nav__menu-link {
display: flex;
align-items: center;
min-height: 48px;
padding: 0 var(--space-m);
border-radius: var(--radius-card);
color: var(--ink);
font-size: var(--text-l);
text-decoration: none;
transition: background var(--quick) var(--ease);
}
.nav__menu-link:hover {
background: var(--mist);
}
.nav__menu-cta {
margin-top: var(--space-s);
min-height: 52px;
font-size: var(--text-m);
}
@keyframes nav-menu-in {
from { opacity: 0; transform: translateY(-6px); }
}
@media (max-width: 52rem) {
.nav__links,
.nav__cta {
display: none;
}
.nav__end {
margin-left: auto;
}
.nav__toggle {
display: grid;
}
}
@media (min-width: 52.01rem) {
.nav__menu {
display: none;
}
}
</style>
<script>
(() => {
for (const root of document.querySelectorAll('.nav')) {
const toggle = root.querySelector('.nav__toggle');
const menu = root.querySelector('.nav__menu');
if (!toggle || !menu) continue;
toggle.addEventListener('click', () => {
const open = !root.classList.contains('is-open');
root.classList.toggle('is-open', open);
menu.hidden = !open;
toggle.setAttribute('aria-expanded', String(open));
toggle.setAttribute('aria-label', open ? 'Close menu' : 'Open menu');
});
}
})();
</script>
Phone stage hero
Centred weight-500 headline, grey copy and two black store pills, over a phone mockup cut by the fold with tilted cards floating either side.
Code
React For Figma<section class="hero">
<div class="hero__copy">
<h1 class="hero__title">One shared pantry for the flat, the family or the weekend away.</h1>
<p class="hero__lead">Add what ran out, snap the receipt or just say it. Everyone sees the same list, who bought what and what is still owed. Works offline in any kitchen.</p>
<div class="hero__stores">
<a class="hero__store" href="#">
<svg viewBox="0 0 24 24" width="22" height="22" aria-hidden="true"><rect x="6" y="2" width="12" height="20" rx="3" fill="none" stroke="currentColor" stroke-width="1.8"/><path d="M10 18.5h4" stroke="currentColor" stroke-width="1.8" stroke-linecap="round"/></svg>
<span class="hero__store-text"><small>Download for</small>iPhone</span>
</a>
<a class="hero__store" href="#">
<svg viewBox="0 0 24 24" width="22" height="22" aria-hidden="true"><path d="M7 4.5v15l12-7.5z" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linejoin="round"/></svg>
<span class="hero__store-text"><small>Get it for</small>Android</span>
</a>
</div>
</div>
<div class="hero__stage">
<div class="hero__side hero__side--left" aria-hidden="true">
<img class="hero__side-pic" src="assets/white-tablecloth.jpg" alt="" width="56" height="56">
<p class="hero__side-title">Friday supper</p>
<p class="hero__side-text">Teo owes you <b>€18.40</b></p>
<span class="hero__chip">Updated · today</span>
</div>
<div class="hero__side hero__side--right" aria-hidden="true">
<img class="hero__side-pic" src="assets/fruit-asparagus.jpg" alt="" width="56" height="56">
<p class="hero__side-title">Cabin weekend</p>
<p class="hero__side-text">All settled up</p>
<span class="hero__chip">Updated · Sunday</span>
</div>
<div class="hero__phone">
<div class="hero__screen">
<div class="hero__status"><span>9:41</span><span class="hero__island"></span><span class="hero__bat"></span></div>
<div class="hero__top">
<span class="hero__pill">Home ▾</span>
<img class="hero__me" src="assets/portrait-woman.jpg" alt="" width="32" height="32">
</div>
<p class="hero__hi">Hi, Ines.<span> What ran out today?</span></p>
<div class="hero__tiles">
<div class="hero__tile"><span class="hero__tile-label">Spent this week</span><b class="hero__tile-value">€84.20</b><span class="hero__tile-note">4 people</span></div>
<div class="hero__tile"><span class="hero__tile-label">Your share</span><b class="hero__tile-value">€21.05</b><span class="hero__tile-note">due Sunday</span></div>
</div>
<div class="hero__seg"><span class="hero__seg-on">Open <i>2</i></span><span>Done</span></div>
<div class="hero__list">
<img class="hero__list-pic" src="assets/apples-grapes.jpg" alt="Apples and grapes on a white cloth" width="52" height="52">
<div><b>Sunday market</b><span>12 items · 3 left</span></div>
</div>
</div>
</div>
<span class="hero__fab" aria-hidden="true">+ Add item</span>
</div>
</section>
<style>
.hero {
overflow: hidden;
padding: clamp(56px, 7vw, 88px) var(--edge) 0;
background: var(--stone);
text-align: center;
}
.hero__copy > *,
.hero__stage {
animation: hero-rise var(--enter) var(--ease-out) both;
}
.hero__lead { animation-delay: 90ms; }
.hero__stores { animation-delay: 180ms; }
.hero__stage { animation-delay: 270ms; }
@keyframes hero-rise {
from { opacity: 0; transform: translateY(16px); }
}
.hero__title {
max-width: 13.5em;
margin: 0 auto;
font-size: var(--display-l);
font-weight: var(--weight-medium);
line-height: 1.06;
letter-spacing: var(--track-tight);
text-wrap: balance;
}
.hero__lead {
max-width: 34em;
margin: var(--space-l) auto 0;
color: var(--ink-soft);
font-size: var(--text-m);
line-height: 1.4;
text-wrap: balance;
}
.hero__stores {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: var(--space-s);
margin-top: var(--space-l);
}
.hero__store {
display: inline-flex;
align-items: center;
gap: 10px;
min-height: 52px;
padding: 0 22px 0 18px;
border-radius: var(--radius-pill);
background: var(--ink);
color: var(--on-ink);
text-align: left;
text-decoration: none;
transition: background var(--quick) var(--ease);
}
.hero__store:hover,
.hero__store:focus-visible {
background: var(--ink-2);
}
.hero__store-text {
display: grid;
font-size: var(--text-l);
font-weight: var(--weight-semi);
line-height: 1.05;
}
.hero__store-text small {
font-size: 11px;
font-weight: var(--weight-medium);
opacity: 0.8;
}
.hero__stage {
position: relative;
width: min(100%, 720px);
height: clamp(260px, 30vw, 330px);
margin: clamp(40px, 5vw, 64px) auto 0;
perspective: 900px;
}
.hero__phone {
position: relative;
z-index: 2;
width: min(76vw, 330px);
height: 520px;
margin: 0 auto;
padding: 11px;
border-radius: var(--radius-phone) var(--radius-phone) 0 0;
background: var(--ink);
box-shadow: var(--shadow-lift);
}
.hero__screen {
height: 100%;
padding: 12px 16px;
border-radius: 36px 36px 0 0;
background: var(--mist);
text-align: left;
}
.hero__status {
display: flex;
align-items: center;
justify-content: space-between;
padding: 2px 10px 12px;
font-size: var(--text-s);
font-weight: var(--weight-semi);
}
.hero__island {
width: 86px;
height: 24px;
border-radius: var(--radius-pill);
background: var(--ink);
}
.hero__bat {
width: 24px;
height: 12px;
border-radius: 4px;
background: var(--ink);
}
.hero__top {
display: flex;
align-items: center;
justify-content: space-between;
}
.hero__pill {
padding: 6px 12px;
border-radius: var(--radius-pill);
background: var(--stone);
font-size: var(--text-xs);
font-weight: var(--weight-semi);
}
.hero__me {
width: 32px;
height: 32px;
border-radius: 50%;
object-fit: cover;
object-position: 50% 20%;
}
.hero__hi {
margin: 12px 0;
font-size: var(--text-l);
font-weight: var(--weight-semi);
line-height: 1.2;
}
.hero__hi span {
color: var(--ink-faint);
}
.hero__tiles {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 8px;
}
.hero__tile {
display: grid;
gap: 2px;
padding: 10px 12px;
border: var(--rule) solid var(--hair);
border-radius: var(--radius-card);
background: var(--paper);
}
.hero__tile-label,
.hero__tile-note {
color: var(--ink-soft);
font-size: var(--text-xs);
}
.hero__tile-value {
font-size: var(--text-l);
font-weight: var(--weight-semi);
}
.hero__seg {
display: grid;
grid-template-columns: 1fr 1fr;
margin: 12px 0 10px;
padding: 3px;
border-radius: var(--radius-pill);
background: var(--stone);
color: var(--ink-faint);
font-size: var(--text-xs);
font-weight: var(--weight-semi);
text-align: center;
}
.hero__seg span {
padding: 6px;
}
.hero__seg .hero__seg-on {
border-radius: var(--radius-pill);
background: var(--paper);
color: var(--ink);
}
.hero__seg i {
display: inline-grid;
place-items: center;
width: 16px;
height: 16px;
margin-left: 4px;
border-radius: 50%;
background: var(--accent);
color: var(--on-ink);
font-size: 10px;
font-style: normal;
}
.hero__list {
display: flex;
align-items: center;
gap: 12px;
padding: 10px;
border-radius: var(--radius-card);
background: var(--paper);
box-shadow: var(--shadow-card);
font-size: var(--text-xs);
}
.hero__list b {
display: block;
font-size: var(--text-m);
font-weight: var(--weight-semi);
}
.hero__list span {
color: var(--ink-soft);
}
.hero__list-pic {
width: 52px;
height: 52px;
border: 3px solid var(--paper);
border-radius: 12px;
object-fit: cover;
box-shadow: var(--shadow-card);
}
.hero__fab {
position: absolute;
z-index: 3;
left: 50%;
bottom: 28px;
padding: 12px 20px;
border-radius: var(--radius-pill);
background: var(--accent);
color: var(--on-ink);
font-size: var(--text-m);
font-weight: var(--weight-semi);
box-shadow: 0 10px 24px rgba(255, 90, 36, 0.35);
transform: translateX(-50%);
animation: hero-bob var(--float-time) ease-in-out infinite;
}
.hero__side {
position: absolute;
z-index: 1;
top: 70px;
display: grid;
grid-template-columns: 56px 1fr;
column-gap: 12px;
align-items: center;
width: 230px;
padding: 14px;
border-radius: var(--radius-card);
background: var(--paper);
box-shadow: var(--shadow-lift);
text-align: left;
--tilt: 28deg;
animation: hero-tilt var(--float-time) ease-in-out infinite;
}
.hero__side--left {
left: 0;
--tilt: 28deg;
}
.hero__side--right {
right: 0;
top: 110px;
--tilt: -28deg;
animation-delay: -3s;
}
.hero__side-pic {
grid-row: span 2;
width: 56px;
height: 56px;
border: 3px solid var(--paper);
border-radius: 12px;
object-fit: cover;
box-shadow: var(--shadow-card);
}
.hero__side-title {
margin: 0;
font-size: var(--text-m);
font-weight: var(--weight-semi);
}
.hero__side-text {
margin: 0;
color: var(--ink-soft);
font-size: var(--text-xs);
}
.hero__side-text b {
color: var(--ink);
}
.hero__chip {
grid-column: 1 / -1;
justify-self: start;
margin-top: 10px;
padding: 5px 10px;
border: var(--rule) solid var(--hair);
border-radius: var(--radius-pill);
color: var(--ink-soft);
font-size: var(--text-xs);
}
@keyframes hero-tilt {
0%, 100% { transform: rotateY(var(--tilt)) translateY(0); }
50% { transform: rotateY(var(--tilt)) translateY(-8px); }
}
@keyframes hero-bob {
0%, 100% { transform: translate(-50%, 0); }
50% { transform: translate(-50%, -6px); }
}
@media (max-width: 44rem) {
.hero__side {
display: none;
}
.hero__fab {
bottom: 10px;
padding: 10px 16px;
font-size: var(--text-s);
}
}
@media (prefers-reduced-motion: reduce) {
.hero__side,
.hero__fab,
.hero__copy > *,
.hero__stage {
animation: none;
}
.hero__side--left { transform: rotateY(28deg); }
.hero__side--right { transform: rotateY(-28deg); }
}
</style>
Three-step panel
A tab-shaped label on a wide white panel split by hairlines into three numbered steps, each with a small drawn scene, then a rolling ticker of icon pills.
Code
React For Figma<section class="steps">
<div class="steps__wrap">
<p class="steps__tab">
<svg viewBox="0 0 32 24" width="20" height="15" aria-hidden="true"><circle cx="10" cy="12" r="9" fill="var(--ink)"/><circle cx="22" cy="12" r="9" fill="var(--accent)"/></svg>
Everything sorted in <b>3 steps</b>
</p>
<ol class="steps__panel">
<li class="steps__step">
<span class="steps__num">1</span>
<div class="steps__scene steps__scene--photos" aria-hidden="true">
<figure class="steps__photo steps__photo--back">
<img src="assets/kitchen-scene.jpg" alt="" width="160" height="110">
<span class="steps__sticker steps__sticker--orange">Cabin</span>
</figure>
<figure class="steps__photo steps__photo--front">
<img src="assets/basket-apples.jpg" alt="" width="160" height="110">
<span class="steps__sticker">Flat 4B</span>
</figure>
</div>
<h3 class="steps__title">Start a pantry</h3>
<p class="steps__text">For the flat, a family kitchen, or the cabin you rent with friends every spring.</p>
</li>
<li class="steps__step">
<span class="steps__num">2</span>
<div class="steps__scene steps__scene--rows" aria-hidden="true">
<div class="steps__row"><span class="steps__dot"></span>Oat milk ×2<b>€3.80</b></div>
<div class="steps__row steps__row--lift"><span class="steps__dot steps__dot--on"></span>Sourdough<b>€4.50</b></div>
<div class="steps__row"><span class="steps__dot"></span>Lemons<b>€1.20</b></div>
</div>
<h3 class="steps__title">Add what runs out</h3>
<p class="steps__text">Type it, say it or photograph the receipt. Then choose who shares the cost.</p>
</li>
<li class="steps__step">
<span class="steps__num">3</span>
<div class="steps__scene steps__scene--swap" aria-hidden="true">
<img class="steps__face" src="assets/portrait-man.jpg" alt="" width="64" height="64">
<span class="steps__swap">
<svg viewBox="0 0 20 20" width="18" height="18"><path d="M4 7h11l-3-3M16 13H5l3 3" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"/></svg>
</span>
<img class="steps__face steps__face--tilt" src="assets/portrait-woman.jpg" alt="" width="64" height="64">
</div>
<h3 class="steps__title">Square it up</h3>
<p class="steps__text">The app does the sums and shows who owes whom, in one tap.</p>
</li>
</ol>
<div class="steps__ticker" aria-label="Also included">
<div class="steps__track">
<span class="steps__pill"><i>◌</i>Works offline</span>
<span class="steps__pill"><i>✦</i>Free to start</span>
<span class="steps__pill"><i>€</i>40 currencies</span>
<span class="steps__pill"><i>◎</i>Barcode scan</span>
<span class="steps__pill"><i>↻</i>Weekly staples</span>
<span class="steps__pill"><i>♪</i>Voice add</span>
<span class="steps__pill"><i>⤓</i>Export to CSV</span>
</div>
</div>
</div>
</section>
<style>
.steps {
padding: var(--section-space) var(--edge);
background: var(--stone);
}
.steps__wrap {
max-width: var(--max);
margin: 0 auto;
}
.steps__tab {
display: flex;
align-items: center;
gap: var(--space-s);
width: max-content;
max-width: 100%;
margin: 0 0 0 var(--space-xl);
padding: 12px 22px;
border-radius: var(--radius-card) var(--radius-card) 0 0;
background: var(--mist);
color: var(--ink-2);
font-size: var(--text-s);
}
.steps__tab b {
color: var(--ink);
font-weight: var(--weight-semi);
}
.steps__panel {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
margin: 0;
padding: 0;
list-style: none;
border-radius: var(--radius-panel);
background: var(--paper);
box-shadow: var(--shadow-card);
}
.steps__step {
display: flex;
flex-direction: column;
padding: var(--space-l);
}
.steps__step + .steps__step {
border-left: var(--rule) solid var(--hair);
}
.steps__num {
display: grid;
place-items: center;
width: 34px;
height: 34px;
border: var(--rule) solid var(--hair);
border-radius: 50%;
font-size: var(--text-s);
font-weight: var(--weight-semi);
}
.steps__scene {
position: relative;
height: 170px;
margin: var(--space-m) 0 var(--space-l);
}
.steps__photo {
position: absolute;
margin: 0;
width: 132px;
padding: 4px;
border-radius: 14px;
background: var(--paper);
box-shadow: var(--shadow-lift);
animation: steps-bob var(--float-time) ease-in-out infinite;
}
.steps__photo img {
width: 100%;
aspect-ratio: 4 / 3;
border-radius: 10px;
object-fit: cover;
}
.steps__photo--back {
left: 12%;
top: 14px;
--turn: -8deg;
}
.steps__photo--front {
left: 38%;
top: 52px;
--turn: 6deg;
animation-delay: -3s;
}
.steps__sticker {
position: absolute;
left: 10px;
top: 10px;
padding: 4px 10px;
border-radius: var(--radius-pill);
background: var(--paper);
font-size: var(--text-xs);
font-weight: var(--weight-semi);
}
.steps__sticker--orange {
background: var(--accent);
color: var(--on-ink);
}
@keyframes steps-bob {
0%, 100% { transform: rotate(var(--turn)) translateY(0); }
50% { transform: rotate(var(--turn)) translateY(-6px); }
}
.steps__scene--rows {
display: grid;
align-content: center;
gap: 6px;
}
.steps__row {
display: flex;
align-items: center;
gap: 10px;
padding: 10px 12px;
border: var(--rule) solid var(--hair);
border-radius: 12px;
background: var(--mist);
color: var(--ink-2);
font-size: var(--text-xs);
}
.steps__row b {
margin-left: auto;
color: var(--ink);
font-weight: var(--weight-semi);
}
.steps__row--lift {
margin: 0 -8px;
border-color: transparent;
background: var(--paper);
box-shadow: var(--shadow-card);
color: var(--ink);
font-size: var(--text-s);
}
.steps__dot {
width: 14px;
height: 14px;
border: 1.5px solid var(--ink-faint);
border-radius: 50%;
}
.steps__dot--on {
border-color: var(--accent);
background: var(--accent);
box-shadow: inset 0 0 0 3px var(--paper);
}
.steps__scene--swap {
display: flex;
align-items: center;
justify-content: center;
gap: 10px;
background: radial-gradient(circle, var(--accent) 1.5px, transparent 2px) center / 10px 10px repeat-x;
}
.steps__face {
width: 72px;
height: 72px;
border: 4px solid var(--paper);
border-radius: 18px;
object-fit: cover;
object-position: 50% 15%;
box-shadow: var(--shadow-lift);
transform: rotate(-6deg);
}
.steps__face--tilt {
transform: rotate(7deg);
}
.steps__swap {
display: grid;
place-items: center;
width: 40px;
height: 40px;
border: 4px solid var(--accent-soft);
border-radius: 50%;
background: var(--accent);
color: var(--on-ink);
background-clip: padding-box;
}
.steps__title {
margin: auto 0 var(--space-s);
font-size: var(--text-l);
font-weight: var(--weight-medium);
letter-spacing: var(--track-tight);
}
.steps__text {
margin: 0;
color: var(--ink-soft);
font-size: var(--text-s);
line-height: 1.4;
}
.steps__ticker {
overflow: hidden;
margin-top: var(--space-l);
mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.steps__track {
display: flex;
width: max-content;
animation: steps-roll var(--marquee-time) linear infinite;
}
.steps__ticker:hover .steps__track {
animation-play-state: paused;
}
.steps__pill {
display: inline-flex;
flex: none;
align-items: center;
gap: var(--space-s);
margin-right: var(--space-s);
padding: 10px 18px;
border-radius: var(--radius-pill);
color: var(--ink-2);
font-size: var(--text-s);
white-space: nowrap;
}
.steps__pill i {
color: var(--ink-soft);
font-style: normal;
}
@keyframes steps-roll {
to { transform: translateX(-50%); }
}
@media (max-width: 50rem) {
.steps__panel {
grid-template-columns: 1fr;
}
.steps__step + .steps__step {
border-left: 0;
border-top: var(--rule) solid var(--hair);
}
.steps__tab {
margin-left: var(--space-m);
}
}
@media (prefers-reduced-motion: reduce) {
.steps__track,
.steps__photo {
animation: none;
}
.steps__photo--back { transform: rotate(-8deg); }
.steps__photo--front { transform: rotate(6deg); }
}
</style>
<script>
(() => {
for (const track of document.querySelectorAll('.steps__track')) {
for (const item of [...track.children]) {
const copy = item.cloneNode(true);
copy.setAttribute('aria-hidden', 'true');
track.append(copy);
}
}
})();
</script>
Floating card bento
A two-by-two grid of rounded photo tiles and dashed grid panels with white app cards bobbing over them, each captioned by an icon chip and a two-tone sentence.
Code
React For Figma<section class="bento">
<header class="bento__head">
<h2 class="bento__title">Less waste every week, and on every trip.</h2>
<p class="bento__lead">Tools for keeping a shared kitchen stocked and the costs fair, without a spreadsheet.</p>
</header>
<div class="bento__grid">
<article class="bento__item">
<div class="bento__tile bento__tile--grid">
<svg class="bento__chart" viewBox="0 0 400 200" preserveAspectRatio="none" aria-hidden="true">
<path d="M0 190 L70 150 L130 158 L190 112 L250 120 L300 78" fill="none" stroke="var(--ink-faint)" stroke-width="2" vector-effect="non-scaling-stroke"/>
</svg>
<span class="bento__marker">● 31%</span>
<div class="bento__card bento__card--budget">
<div class="bento__card-row"><b>Monthly groceries</b><span class="bento__soft-chip">Mar 1–31</span></div>
<p class="bento__amount">€ 248,00 <span>/ € 800,00</span></p>
<span class="bento__bar"><span></span></span>
<p class="bento__fine">You have used <b>31%</b> of the budget, about €12 a day.</p>
</div>
</div>
<h3 class="bento__label"><span class="bento__icon"><svg viewBox="0 0 20 20" width="14" height="14" aria-hidden="true"><circle cx="10" cy="10" r="7" fill="none" stroke="currentColor" stroke-width="2"/><path d="M10 3v7h7" fill="none" stroke="currentColor" stroke-width="2"/></svg></span>Budgets</h3>
<p class="bento__text"><b>The kitchen keeps its own books.</b> Set a weekly or monthly limit for the shared shop and see how close you are before the till.</p>
</article>
<article class="bento__item">
<div class="bento__tile bento__tile--photo">
<img class="bento__pic" src="assets/basket-apples.jpg" alt="A basket of apples, a bottle and biscuits on a draped table" width="1200" height="960">
<div class="bento__card bento__card--float">
<span class="bento__round">
<svg viewBox="0 0 20 20" width="16" height="16" aria-hidden="true"><path d="M7 4h6M10 4v3M5 9h10l-1 7H6z" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linejoin="round"/></svg>
</span>
<div><b>Apples, 2 kg</b><span>You paid € 5,40</span></div>
<div class="bento__end"><span class="bento__lent">Shared <i></i></span><b>€ 2,70</b></div>
</div>
</div>
<h3 class="bento__label"><span class="bento__icon"><svg viewBox="0 0 20 20" width="14" height="14" aria-hidden="true"><rect x="7" y="2" width="6" height="10" rx="3" fill="currentColor"/><path d="M4.5 10a5.5 5.5 0 0 0 11 0M10 15.5V18" fill="none" stroke="currentColor" stroke-width="2"/></svg></span>Voice add <span class="bento__badge">PLUS</span></h3>
<p class="bento__text"><b>“Two kilos of apples, split with Teo.”</b> Done. The item is on the list and the cost is shared without typing.</p>
</article>
<article class="bento__item">
<div class="bento__tile bento__tile--photo">
<img class="bento__pic" src="assets/white-tablecloth.jpg" alt="A white cloth on a small table with bread and a glass" width="800" height="620">
<div class="bento__card bento__card--float bento__card--stack">
<span class="bento__round">
<svg viewBox="0 0 20 20" width="16" height="16" aria-hidden="true"><path d="M3 7a10 10 0 0 1 14 0M6 10a6 6 0 0 1 8 0M3 3l14 14" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round"/></svg>
</span>
<div><b>Bread & cheese</b><span>Saved offline</span></div>
<div class="bento__end"><span class="bento__lent">Queued <i></i></span><b>€ 9,10</b></div>
</div>
</div>
<h3 class="bento__label"><span class="bento__icon"><svg viewBox="0 0 20 20" width="14" height="14" aria-hidden="true"><path d="M3 8a10 10 0 0 1 14 0M6 11a6 6 0 0 1 8 0" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"/><circle cx="10" cy="15" r="1.6" fill="currentColor"/></svg></span>Works offline</h3>
<p class="bento__text"><b>In the cellar, on the ferry, at the farm stall.</b> Add things with no signal and they sync when you are back.</p>
</article>
<article class="bento__item">
<div class="bento__tile bento__tile--grid bento__tile--hatch">
<div class="bento__card bento__card--float bento__card--centre">
<img class="bento__thumb" src="assets/fruit-asparagus.jpg" alt="" width="44" height="44">
<div><b>Veg box</b><span>Every week · 3 of 12</span></div>
<span class="bento__date"><small>Thu</small>14</span>
</div>
</div>
<h3 class="bento__label"><span class="bento__icon"><svg viewBox="0 0 20 20" width="14" height="14" aria-hidden="true"><path d="M4 10a6 6 0 0 1 10.5-4M16 10a6 6 0 0 1-10.5 4M14 2.5V6h-3.5M6 17.5V14h3.5" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg></span>Weekly staples</h3>
<p class="bento__text"><b>Milk on Mondays, the veg box on Thursdays.</b> Set repeats once and they land on the list on time.</p>
</article>
</div>
</section>
<style>
.bento {
padding: var(--section-space) var(--edge);
background: var(--paper);
}
.bento__head {
max-width: 30em;
margin: 0 auto var(--space-xl);
text-align: center;
}
.bento__title {
margin: 0;
font-size: var(--display-m);
font-weight: var(--weight-medium);
line-height: 1.1;
letter-spacing: var(--track-tight);
text-wrap: balance;
}
.bento__lead {
margin: var(--space-m) auto 0;
max-width: 26em;
color: var(--ink-soft);
font-size: var(--text-s);
line-height: 1.4;
}
.bento__grid {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: var(--space-xl) var(--gap);
max-width: var(--max);
margin: 0 auto;
}
.bento__tile {
position: relative;
display: grid;
place-items: center;
overflow: hidden;
aspect-ratio: 472 / 330;
border-radius: var(--radius-panel);
background: var(--mist);
}
.bento__tile--grid {
background-color: var(--mist);
background-image:
repeating-linear-gradient(90deg, var(--dash) 0 1px, transparent 1px 100%),
repeating-linear-gradient(0deg, var(--dash) 0 1px, transparent 1px 100%);
background-size: 25% 25%;
background-position: -1px -1px;
}
.bento__tile--hatch::before {
content: "";
position: absolute;
inset: 25% 25%;
background: repeating-linear-gradient(135deg, var(--hair) 0 1px, transparent 1px 8px);
}
.bento__pic {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
object-fit: cover;
}
.bento__chart {
position: absolute;
left: 0;
bottom: 0;
width: 64%;
height: 50%;
}
.bento__marker {
position: absolute;
left: 58%;
top: 30%;
padding: 4px 10px;
border-radius: var(--radius-pill);
background: var(--paper);
color: var(--ink);
font-size: var(--text-xs);
font-weight: var(--weight-semi);
box-shadow: var(--shadow-card);
}
.bento__marker::first-letter {
color: var(--accent);
}
.bento__card {
position: relative;
z-index: 1;
border-radius: var(--radius-card);
background: var(--paper);
box-shadow: var(--shadow-card);
animation: bento-float var(--float-time) ease-in-out infinite;
}
.bento__item:nth-child(2) .bento__card { animation-delay: -1.5s; }
.bento__item:nth-child(3) .bento__card { animation-delay: -3s; }
.bento__item:nth-child(4) .bento__card { animation-delay: -4.5s; }
@keyframes bento-float {
0%, 100% { transform: translateY(0); }
50% { transform: translateY(-7px); }
}
.bento__card--budget {
width: min(78%, 300px);
margin-top: 12%;
padding: 14px 16px;
}
.bento__card-row {
display: flex;
align-items: center;
justify-content: space-between;
font-size: var(--text-s);
}
.bento__card-row b {
font-weight: var(--weight-semi);
}
.bento__soft-chip {
padding: 3px 8px;
border-radius: var(--radius-pill);
background: var(--mist);
color: var(--ink-faint);
font-size: 11px;
}
.bento__amount {
margin: 10px 0 8px;
font-size: var(--text-l);
font-weight: var(--weight-semi);
}
.bento__amount span {
color: var(--ink-faint);
font-weight: var(--weight-medium);
}
.bento__bar {
display: block;
height: 3px;
border-radius: var(--radius-pill);
background: var(--stone);
}
.bento__bar span {
display: block;
width: 31%;
height: 100%;
border-radius: inherit;
background: var(--accent);
}
.bento__fine {
margin: 10px 0 0;
color: var(--ink-soft);
font-size: 11px;
}
.bento__fine b {
color: var(--ink);
}
.bento__card--float {
display: grid;
grid-template-columns: auto 1fr auto;
align-items: center;
gap: 12px;
width: min(76%, 340px);
padding: 12px 14px;
align-self: start;
margin-top: 12%;
font-size: var(--text-xs);
}
.bento__card--float b {
display: block;
font-size: var(--text-m);
font-weight: var(--weight-semi);
}
.bento__card--float span {
color: var(--ink-soft);
}
.bento__card--stack {
align-self: end;
margin: 0 0 14%;
box-shadow: var(--shadow-card), 0 8px 0 -4px rgba(255, 255, 255, 0.75), 0 16px 0 -8px rgba(255, 255, 255, 0.5);
}
.bento__card--centre {
align-self: center;
margin: 0;
}
.bento__round {
display: grid;
place-items: center;
width: 40px;
height: 40px;
border: var(--rule) solid var(--hair);
border-radius: 50%;
color: var(--ink-2) !important;
}
.bento__end {
text-align: right;
}
.bento__lent i {
display: inline-block;
width: 6px;
height: 6px;
margin-left: 2px;
border-radius: 50%;
background: var(--accent);
vertical-align: middle;
}
.bento__thumb {
width: 44px;
height: 44px;
border-radius: 50%;
object-fit: cover;
}
.bento__date {
display: grid;
min-width: 44px;
padding: 4px 8px;
border-radius: 10px;
background: var(--mist);
color: var(--ink) !important;
font-size: var(--text-l);
font-weight: var(--weight-semi);
text-align: center;
}
.bento__date small {
color: var(--ink-faint);
font-size: 10px;
font-weight: var(--weight-medium);
}
.bento__label {
display: flex;
align-items: center;
gap: 10px;
margin: var(--space-l) 0 var(--space-m);
font-size: var(--text-l);
font-weight: var(--weight-medium);
}
.bento__icon {
display: grid;
place-items: center;
width: 26px;
height: 26px;
border-radius: var(--radius-s);
background: var(--ink);
color: var(--on-ink);
}
.bento__badge {
padding: 2px 6px;
border-radius: 5px;
background: var(--accent);
color: var(--on-ink);
font-size: 10px;
font-weight: var(--weight-semi);
letter-spacing: 0.04em;
}
.bento__text {
margin: 0;
color: var(--ink-faint);
font-size: var(--text-l);
line-height: 1.3;
}
.bento__text b {
color: var(--ink);
font-weight: var(--weight-medium);
}
@media (max-width: 44rem) {
.bento__grid {
grid-template-columns: 1fr;
}
.bento__tile {
aspect-ratio: 4 / 3.4;
}
.bento__card--float {
width: 86%;
}
}
@media (prefers-reduced-motion: reduce) {
.bento__card {
animation: none;
}
}
</style>
App screen showcase
Tabs on the left whose hairlines fill orange in turn, driving the screen in a phone on a grey stage on the right.
Code
React For Figma<section class="showcase">
<div class="showcase__wrap">
<div class="showcase__side">
<h2 class="showcase__title">Inside the Pantrio app</h2>
<p class="showcase__lead">See how a list fills up, how costs get shared and where the balance stands.</p>
<div class="showcase__tabs" role="tablist" aria-label="App screens">
<button class="showcase__tab is-active" type="button" role="tab" aria-selected="true">
<span class="showcase__tab-name">Overview</span>
<span class="showcase__tab-text">Every pantry you share on one screen, with what you are owed on top.</span>
<span class="showcase__line"><span class="showcase__fill"></span></span>
</button>
<button class="showcase__tab" type="button" role="tab" aria-selected="false">
<span class="showcase__tab-name">Lists</span>
<span class="showcase__tab-text">One list per kitchen. Tick things off in the shop and everyone sees it.</span>
<span class="showcase__line"><span class="showcase__fill"></span></span>
</button>
<button class="showcase__tab" type="button" role="tab" aria-selected="false">
<span class="showcase__tab-name">Add items</span>
<span class="showcase__tab-text">Type, speak or scan a receipt and pick who shares each line.</span>
<span class="showcase__line"><span class="showcase__fill"></span></span>
</button>
<button class="showcase__tab" type="button" role="tab" aria-selected="false">
<span class="showcase__tab-name">Balances</span>
<span class="showcase__tab-text">The fewest transfers to square everyone up, ready to send.</span>
<span class="showcase__line"><span class="showcase__fill"></span></span>
</button>
</div>
</div>
<div class="showcase__stage">
<div class="showcase__phone">
<div class="showcase__screens">
<div class="showcase__screen is-active">
<p class="showcase__cap">Owed to you</p>
<p class="showcase__big">€ 64,30</p>
<div class="showcase__row"><img src="assets/basket-apples.jpg" alt="" width="40" height="40"><span><b>Flat 4B</b>3 people</span><em>€ 41,10</em></div>
<div class="showcase__row"><img src="assets/kitchen-scene.jpg" alt="" width="40" height="40"><span><b>Cabin weekend</b>6 people</span><em>€ 23,20</em></div>
<div class="showcase__row is-dim"><img src="assets/white-tablecloth.jpg" alt="" width="40" height="40"><span><b>Friday supper</b>Settled</span><em>€ 0</em></div>
</div>
<div class="showcase__screen">
<p class="showcase__cap">Flat 4B · 9 items</p>
<div class="showcase__check is-done">Oat milk ×2</div>
<div class="showcase__check is-done">Sourdough</div>
<div class="showcase__check">Lemons</div>
<div class="showcase__check">Olive oil</div>
<div class="showcase__check">Coffee beans</div>
</div>
<div class="showcase__screen">
<p class="showcase__cap">New item</p>
<p class="showcase__big">€ 12,60</p>
<div class="showcase__field">Cheese board for Friday</div>
<div class="showcase__split"><span class="is-on">Equally</span><span>Amounts</span><span>Shares</span></div>
<div class="showcase__mic" aria-hidden="true"><i></i><i></i><i></i><i></i><i></i><i></i><i></i></div>
</div>
<div class="showcase__screen">
<p class="showcase__cap">To square up</p>
<div class="showcase__pay"><img src="assets/portrait-man.jpg" alt="" width="40" height="40"><span><b>Teo → you</b>2 items</span><em>€ 18,40</em></div>
<div class="showcase__pay"><img src="assets/portrait-woman.jpg" alt="" width="40" height="40"><span><b>You → Ines</b>1 item</span><em>€ 6,90</em></div>
<span class="showcase__send">Send reminders</span>
</div>
</div>
</div>
</div>
</div>
</section>
<style>
.showcase {
padding: var(--section-space) var(--edge);
background: var(--mist);
}
.showcase__wrap {
display: grid;
grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
gap: clamp(24px, 5vw, 64px);
align-items: center;
max-width: var(--max);
margin: 0 auto;
}
.showcase__title {
margin: 0;
font-size: var(--display-m);
font-weight: var(--weight-medium);
line-height: 1.08;
letter-spacing: var(--track-tight);
}
.showcase__lead {
margin: var(--space-m) 0 var(--space-xl);
color: var(--ink-soft);
font-size: var(--text-s);
line-height: 1.4;
}
.showcase__tabs {
display: grid;
}
.showcase__tab {
display: grid;
gap: 6px;
min-height: var(--tap);
padding: 14px 0 0;
border: 0;
background: none;
color: var(--ink-faint);
font: inherit;
text-align: left;
cursor: pointer;
transition: color var(--quick) var(--ease);
}
.showcase__tab:hover,
.showcase__tab.is-active {
color: var(--ink);
}
.showcase__tab:focus-visible {
outline: 2px solid var(--ink);
outline-offset: 4px;
border-radius: 4px;
}
.showcase__tab-name {
font-size: var(--text-m);
font-weight: var(--weight-semi);
}
.showcase__tab-text {
display: none;
color: var(--ink-soft);
font-size: var(--text-s);
line-height: 1.4;
animation: showcase-desc var(--quick) var(--ease) both;
}
.showcase__tab.is-active .showcase__tab-text {
display: block;
}
@keyframes showcase-desc {
from { opacity: 0; transform: translateY(4px); }
}
.showcase__line {
display: block;
height: 1px;
margin-top: 8px;
background: var(--hair);
}
.showcase__fill {
display: block;
width: 0;
height: 100%;
background: var(--accent);
}
.showcase__tab.is-active .showcase__fill {
animation: showcase-progress var(--progress-time) linear both;
}
.showcase.is-paused .showcase__fill {
animation-play-state: paused;
}
@keyframes showcase-progress {
from { width: 0; }
to { width: 100%; }
}
.showcase__stage {
display: grid;
place-items: end center;
height: clamp(420px, 48vw, 540px);
overflow: hidden;
padding-top: var(--space-xl);
border-radius: var(--radius-panel);
background: var(--stone);
}
.showcase__phone {
width: min(84%, 300px);
height: 100%;
padding: 10px 10px 0;
border-radius: var(--radius-phone) var(--radius-phone) 0 0;
background: var(--ink);
box-shadow: var(--shadow-lift);
}
.showcase__screens {
position: relative;
height: 100%;
border-radius: 36px 36px 0 0;
background: var(--paper);
}
.showcase__screen {
position: absolute;
inset: 0;
display: grid;
align-content: start;
gap: 8px;
padding: 40px 16px 16px;
opacity: 0;
visibility: hidden;
transition: opacity var(--quick) var(--ease), visibility 0s linear var(--quick);
}
.showcase__screen.is-active {
opacity: 1;
visibility: visible;
transition: opacity var(--quick) var(--ease);
}
.showcase__cap {
margin: 0;
color: var(--ink-soft);
font-size: var(--text-xs);
}
.showcase__big {
margin: 0 0 8px;
font-size: 30px;
font-weight: var(--weight-semi);
letter-spacing: var(--track-tight);
}
.showcase__row,
.showcase__pay {
display: grid;
grid-template-columns: 40px 1fr auto;
align-items: center;
gap: 10px;
padding: 10px;
border-radius: 14px;
background: var(--mist);
font-size: var(--text-xs);
}
.showcase__row.is-dim {
opacity: 0.5;
}
.showcase__row img,
.showcase__pay img {
width: 40px;
height: 40px;
border-radius: 10px;
object-fit: cover;
object-position: 50% 20%;
}
.showcase__row span,
.showcase__pay span {
color: var(--ink-soft);
}
.showcase__row b,
.showcase__pay b {
display: block;
color: var(--ink);
font-size: var(--text-s);
font-weight: var(--weight-semi);
}
.showcase__row em,
.showcase__pay em {
font-size: var(--text-s);
font-style: normal;
font-weight: var(--weight-semi);
}
.showcase__pay {
background: var(--paper);
box-shadow: var(--shadow-card);
}
.showcase__check {
display: flex;
align-items: center;
gap: 10px;
padding: 12px 4px;
border-bottom: var(--rule) solid var(--hair);
font-size: var(--text-s);
}
.showcase__check::before {
content: "";
width: 18px;
height: 18px;
border: 1.5px solid var(--ink-faint);
border-radius: 6px;
}
.showcase__check.is-done {
color: var(--ink-faint);
text-decoration: line-through;
}
.showcase__check.is-done::before {
border-color: var(--ink);
background: var(--ink);
box-shadow: inset 0 0 0 4px var(--paper);
}
.showcase__field {
padding: 12px;
border: var(--rule) solid var(--hair);
border-radius: 12px;
font-size: var(--text-s);
}
.showcase__split {
display: grid;
grid-template-columns: repeat(3, 1fr);
padding: 3px;
border-radius: var(--radius-pill);
background: var(--mist);
color: var(--ink-faint);
font-size: var(--text-xs);
text-align: center;
}
.showcase__split span {
padding: 6px 0;
}
.showcase__split .is-on {
border-radius: var(--radius-pill);
background: var(--paper);
color: var(--ink);
box-shadow: var(--shadow-card);
}
.showcase__mic {
display: flex;
align-items: center;
justify-content: center;
gap: 4px;
height: 56px;
margin-top: 8px;
}
.showcase__mic i {
width: 4px;
height: 30%;
border-radius: 2px;
background: var(--accent);
}
.showcase__mic i:nth-child(2n) { height: 70%; }
.showcase__mic i:nth-child(3n) { height: 50%; }
.showcase__send {
justify-self: center;
margin-top: 12px;
padding: 12px 20px;
border-radius: var(--radius-pill);
background: var(--ink);
color: var(--on-ink) !important;
font-size: var(--text-s);
font-weight: var(--weight-semi);
}
@media (max-width: 48rem) {
.showcase__wrap {
grid-template-columns: 1fr;
}
.showcase__stage {
height: 400px;
}
}
@media (prefers-reduced-motion: reduce) {
.showcase__tab.is-active .showcase__fill {
animation: none;
width: 100%;
}
}
</style>
<script>
(() => {
for (const root of document.querySelectorAll('.showcase')) {
const tabs = [...root.querySelectorAll('.showcase__tab')];
const screens = [...root.querySelectorAll('.showcase__screen')];
const show = (index) => {
tabs.forEach((tab, i) => {
const on = i === index;
tab.classList.toggle('is-active', on);
tab.setAttribute('aria-selected', String(on));
const fill = tab.querySelector('.showcase__fill');
fill.style.animation = 'none';
void fill.offsetWidth;
fill.style.animation = '';
});
screens.forEach((screen, i) => screen.classList.toggle('is-active', i === index));
};
tabs.forEach((tab, i) => {
tab.addEventListener('click', () => show(i));
tab.querySelector('.showcase__fill').addEventListener('animationend', () => {
if (tab.classList.contains('is-active')) show((i + 1) % tabs.length);
});
});
new IntersectionObserver(([entry]) => {
root.classList.toggle('is-paused', !entry.isIntersecting);
}).observe(root);
}
})();
</script>
Hairline feature grid
A three-column grid of small features split by hairlines: outlined icon, title, grey line, an orange PRO badge on some.
Code
React For Figma<section class="features">
<header class="features__head">
<h2 class="features__title">Small things that keep a kitchen fair.</h2>
<p class="features__lead">Everything a shared home, a holiday rental or a club kitchen needs, in one place.</p>
</header>
<ul class="features__grid">
<li class="features__cell">
<span class="features__icon"><svg viewBox="0 0 20 20" width="18" height="18" aria-hidden="true"><path d="M10 3v10M6 9l4 4 4-4M4 16h12" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"/></svg></span>
<h3 class="features__name">Bring your old lists</h3>
<p class="features__text">Paste a note or a spreadsheet and keep every item and price you had before.</p>
</li>
<li class="features__cell">
<span class="features__icon"><svg viewBox="0 0 20 20" width="18" height="18" aria-hidden="true"><path d="M10 3v14M3 10h14" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round"/></svg></span>
<h3 class="features__name">Split it your way</h3>
<p class="features__text">Equally, by amount, by share or by who actually eats the cheese.</p>
</li>
<li class="features__cell">
<span class="features__icon"><svg viewBox="0 0 20 20" width="18" height="18" aria-hidden="true"><path d="M4 7h11l-3-3M16 13H5l3 3" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"/></svg></span>
<h3 class="features__name">Any currency <span class="features__badge">PLUS</span></h3>
<p class="features__text">Shop abroad in the local money and settle up at home in yours.</p>
</li>
<li class="features__cell">
<span class="features__icon"><svg viewBox="0 0 20 20" width="18" height="18" aria-hidden="true"><rect x="4" y="9" width="12" height="8" rx="2" fill="none" stroke="currentColor" stroke-width="1.6"/><path d="M7 9V6a3 3 0 0 1 6 0v3" fill="none" stroke="currentColor" stroke-width="1.6"/></svg></span>
<h3 class="features__name">Private by default</h3>
<p class="features__text">Lists are encrypted and only the people in a pantry can read them.</p>
</li>
<li class="features__cell">
<span class="features__icon"><svg viewBox="0 0 20 20" width="18" height="18" aria-hidden="true"><path d="M5 4h10v12l-5-3-5 3z" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linejoin="round"/></svg></span>
<h3 class="features__name">Use-by reminders</h3>
<p class="features__text">A nudge two days before the yoghurt turns, sent to whoever bought it.</p>
</li>
<li class="features__cell">
<span class="features__icon"><svg viewBox="0 0 20 20" width="18" height="18" aria-hidden="true"><path d="M3 15l4-5 3 3 4-6 3 4" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"/></svg></span>
<h3 class="features__name">Spending trends <span class="features__badge">PLUS</span></h3>
<p class="features__text">See which weeks cost the most and which aisle is to blame.</p>
</li>
</ul>
</section>
<style>
.features {
padding: var(--section-space) var(--edge);
background: var(--paper);
}
.features__head {
max-width: 28em;
margin: 0 auto var(--space-xl);
text-align: center;
}
.features__title {
margin: 0;
font-size: var(--display-m);
font-weight: var(--weight-medium);
line-height: 1.1;
letter-spacing: var(--track-tight);
text-wrap: balance;
}
.features__lead {
margin: var(--space-m) 0 0;
color: var(--ink-soft);
font-size: var(--text-s);
line-height: 1.4;
}
.features__grid {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
max-width: var(--max);
margin: 0 auto;
padding: 0;
list-style: none;
border-top: var(--rule) solid var(--hair);
}
.features__cell {
padding: var(--space-l) var(--space-l) var(--space-xl);
border-bottom: var(--rule) solid var(--hair);
transition: background var(--quick) var(--ease);
}
.features__cell:not(:nth-child(3n)) {
border-right: var(--rule) solid var(--hair);
}
.features__cell:hover {
background: var(--mist);
}
.features__icon {
display: grid;
place-items: center;
width: 32px;
height: 32px;
margin-bottom: var(--space-l);
border: var(--rule) solid var(--hair);
border-radius: var(--radius-s);
color: var(--ink-2);
}
.features__name {
display: flex;
align-items: center;
gap: var(--space-s);
margin: 0 0 var(--space-s);
font-size: var(--text-m);
font-weight: var(--weight-semi);
}
.features__badge {
padding: 2px 6px;
border-radius: 5px;
background: var(--accent-soft);
color: var(--accent);
font-size: 10px;
letter-spacing: 0.04em;
}
.features__text {
margin: 0;
color: var(--ink-soft);
font-size: var(--text-s);
line-height: 1.4;
}
@media (max-width: 52rem) {
.features__grid {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
.features__cell:not(:nth-child(3n)) {
border-right: 0;
}
.features__cell:nth-child(odd) {
border-right: var(--rule) solid var(--hair);
}
}
@media (max-width: 34rem) {
.features__grid {
grid-template-columns: 1fr;
}
.features__cell:nth-child(odd) {
border-right: 0;
}
.features__cell {
padding: var(--space-l) var(--space-s);
}
}
</style>
Dark download footer
A near-black closing block: two-tone statement, white store pills, link columns and fine print.
Code
React For Figma<footer class="footer">
<div class="footer__wrap">
<div class="footer__cta">
<p class="footer__say"><b>Stock the kitchen together.</b> Download Pantrio, start a pantry in a minute and invite whoever shares the fridge.</p>
<div class="footer__stores">
<a class="footer__store" href="#">
<svg viewBox="0 0 24 24" width="22" height="22" aria-hidden="true"><rect x="6" y="2" width="12" height="20" rx="3" fill="none" stroke="currentColor" stroke-width="1.8"/><path d="M10 18.5h4" stroke="currentColor" stroke-width="1.8" stroke-linecap="round"/></svg>
<span class="footer__store-text"><small>Download for</small>iPhone</span>
</a>
<a class="footer__store" href="#">
<svg viewBox="0 0 24 24" width="22" height="22" aria-hidden="true"><path d="M7 4.5v15l12-7.5z" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linejoin="round"/></svg>
<span class="footer__store-text"><small>Get it for</small>Android</span>
</a>
</div>
</div>
<div class="footer__cols">
<div class="footer__brand">
<svg class="footer__mark" viewBox="0 0 32 24" width="32" height="24" aria-hidden="true">
<circle cx="10" cy="12" r="9" fill="var(--on-ink)"/>
<circle cx="22" cy="12" r="9" fill="var(--accent)"/>
<path d="M16 5.3a9 9 0 0 1 0 13.4a9 9 0 0 1 0-13.4z" fill="var(--ink)"/>
</svg>
<span class="footer__name">Pantrio</span>
</div>
<nav class="footer__col" aria-label="Product">
<p class="footer__head">Product</p>
<a class="footer__link" href="#">How it works</a>
<a class="footer__link" href="#">Plus</a>
<a class="footer__link" href="#">Recipes</a>
</nav>
<nav class="footer__col" aria-label="Help">
<p class="footer__head">Help</p>
<a class="footer__link" href="#">Questions</a>
<a class="footer__link" href="#">Journal</a>
<a class="footer__link" href="#">Contact</a>
</nav>
<nav class="footer__col" aria-label="Legal">
<p class="footer__head">Legal</p>
<a class="footer__link" href="#">Privacy</a>
<a class="footer__link" href="#">Terms</a>
<a class="footer__link" href="#">Cookies</a>
</nav>
</div>
<p class="footer__fine"><span>© 2027 Pantrio Kitchens</span><span>Made for shared fridges everywhere</span></p>
</div>
</footer>
<style>
.footer {
padding: var(--section-space) var(--edge) var(--space-xl);
background: var(--ink);
color: var(--on-ink);
}
.footer__wrap {
max-width: var(--max);
margin: 0 auto;
}
.footer__cta {
display: grid;
grid-template-columns: minmax(0, 1.4fr) auto;
gap: var(--space-xl);
align-items: end;
padding-bottom: var(--space-xl);
border-bottom: var(--rule) solid var(--ink-2);
}
.footer__say {
max-width: 19em;
margin: 0;
color: var(--on-ink-soft);
font-size: var(--display-m);
line-height: 1.12;
letter-spacing: var(--track-tight);
}
.footer__say b {
color: var(--on-ink);
font-weight: var(--weight-medium);
}
.footer__stores {
display: flex;
flex-wrap: wrap;
gap: var(--space-s);
}
.footer__store {
display: inline-flex;
align-items: center;
gap: 10px;
min-height: 52px;
padding: 0 22px 0 18px;
border-radius: var(--radius-pill);
background: var(--paper);
color: var(--ink);
text-decoration: none;
transition: background var(--quick) var(--ease);
}
.footer__store:hover,
.footer__store:focus-visible {
background: var(--stone);
}
.footer__store-text {
display: grid;
font-size: var(--text-l);
font-weight: var(--weight-semi);
line-height: 1.05;
}
.footer__store-text small {
color: var(--ink-soft);
font-size: 11px;
font-weight: var(--weight-medium);
}
.footer__cols {
display: grid;
grid-template-columns: 1.6fr repeat(3, 1fr);
gap: var(--gap);
padding: var(--space-xl) 0;
}
.footer__brand {
display: flex;
align-items: center;
gap: 10px;
align-self: start;
}
.footer__name {
font-size: 21px;
letter-spacing: var(--track-tight);
}
.footer__col {
display: grid;
align-content: start;
}
.footer__head {
margin: 0 0 var(--space-s);
color: var(--on-ink-soft);
font-size: var(--text-xs);
}
.footer__link {
display: flex;
align-items: center;
min-height: var(--tap);
color: var(--on-ink);
font-size: var(--text-s);
text-decoration: none;
transition: color var(--quick) var(--ease);
}
.footer__link:hover,
.footer__link:focus-visible {
color: var(--accent);
}
.footer__fine {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
gap: var(--space-s);
margin: 0;
color: var(--on-ink-soft);
font-size: var(--text-xs);
}
@media (max-width: 50rem) {
.footer__cta {
grid-template-columns: 1fr;
gap: var(--space-l);
}
.footer__cols {
grid-template-columns: repeat(3, minmax(0, 1fr));
}
.footer__brand {
grid-column: 1 / -1;
margin-bottom: var(--space-m);
}
}
</style>
Style
- --ink #121211
- --ink-2 #454543
- --ink-soft #7f7f7e
- --ink-faint #a2a2a1
- --paper #ffffff
- --mist #f7f7f6
- --stone #eaeae7
- --hair #e4e4e1
- --dash #d3d3d0
- --accent #ff5a24
- --accent-soft #ffe6dc
- --on-ink #ffffff
- --on-ink-soft #8d8d8b
Type
- Figtree 500 and 600 for everything written: headlines, labels, app values, running text, stands in for the same Figtree the source sets all its text in, mostly 13 to 20px at weight 500 with slight negative tracking
Motion
- Hero: headline, copy, buttons and phone rise 16px and fade in on load, 0.7s with a soft ease-out, 90ms apart.
- Floating cards bob up and down 6 to 8px on a 6s ease-in-out loop, each with its own delay; the hero side cards stay tilted in perspective while they bob.
- Steps: a ticker of small icon pills under the cards rolls left endlessly in 36s, pausing on hover.
- Showcase: the open tab's hairline fills orange over 5s, linear, then the next tab opens and the phone screen cross-fades in 0.2s; a click picks a tab and restarts the fill.
- Hovers are colour and background only, 0.2s ease; the phone menu drops in over 0.12s.
Rules
- Grounds alternate between warm grey (#eaeae7), white and a very light grey; the footer alone is near-black.
- One grotesk at weight 500 for almost everything, headings included, tight tracking; 600 only for titles and values.
- Every button, chip and the nav itself is a pill; cards have 17px corners, photo tiles and panels 24px.
- Interface is shown, not described: small white app cards with values, avatars and status dots float over photos and dashed grid panels with soft shadows.
- Feature copy is one two-tone sentence: the claim in ink, the explanation after it in grey, in the same size.
- Orange is kept to tiny things: a progress line, a badge, a dot, one swap button.
base.css
/* Fonts: free Google Fonts that stand in for the site's faces. */
@import url("https://fonts.googleapis.com/css2?family=Figtree:wght@400;500;600;700&display=swap");
:root {
/* Colour */
--ink: #121211; /* main text, black pills, the dark footer ground */
--ink-2: #454543; /* second-level text on white, icon strokes */
--ink-soft: #7f7f7e; /* grey half of two-tone sentences, sub copy */
--ink-faint: #a2a2a1; /* captions, muted values, inactive tabs */
--paper: #ffffff; /* page background, cards, the floating nav */
--mist: #f7f7f6; /* soft panels and inner app tiles */
--stone: #eaeae7; /* warm grey ground of the hero and stage panels */
--hair: #e4e4e1; /* hairline rules and card outlines */
--dash: #d3d3d0; /* dashed guide lines on the grid panels */
--accent: #ff5a24; /* the one orange: progress, badges, the swap dot */
--accent-soft: #ffe6dc; /* orange tint behind badges */
--on-ink: #ffffff; /* text on black pills and the dark footer */
--on-ink-soft: #8d8d8b; /* grey text on the dark footer */
/* Type */
--font-body: "Figtree", system-ui, sans-serif; /* every word: headings, labels, running text */
--text-xs: 12.5px; /* captions inside app cards */
--text-s: 14.5px; /* labels, nav links, card text */
--text-m: 16px; /* running text */
--text-l: 19px; /* card titles, two-tone sentences */
--text-xl: clamp(20px, 2vw, 24px); /* lead paragraph */
--display-m: clamp(30px, 3.6vw, 44px); /* section headings */
--display-l: clamp(38px, 5.4vw, 66px); /* hero headline */
--track-tight: -0.02em; /* headings */
--track-soft: -0.01em; /* labels and body */
--weight-regular: 400; /* rarely used */
--weight-medium: 500; /* default weight, headings included */
--weight-semi: 600; /* titles, values, the bold half of a sentence */
/* Space and size */
--space-xs: 4px; /* inside chips */
--space-s: 8px; /* icon to label */
--space-m: 16px; /* inside cards */
--space-l: 24px; /* between blocks of a card */
--space-xl: 48px; /* heading to content */
--edge: clamp(16px, 4vw, 48px); /* side padding of a section */
--gap: 20px; /* between tiles and cards */
--section-space: clamp(64px, 9vw, 120px); /* air above and below a section */
--max: 1000px; /* width of the content column */
--tap: 44px; /* smallest tap target */
/* Shape */
--radius-pill: 999px; /* nav bar, buttons, chips, badges */
--radius-card: 17px; /* floating app cards */
--radius-s: 8px; /* small icon chips, inner fields */
--radius-panel: 24px; /* photo tiles, big white panels */
--radius-phone: 46px; /* the phone frame */
--rule: 1px; /* hairlines and outlines */
--shadow-card: 0 1px 2px rgba(18, 18, 17, 0.05), 0 10px 30px rgba(18, 18, 17, 0.08); /* floating cards and the nav */
--shadow-lift: 0 2px 4px rgba(18, 18, 17, 0.06), 0 24px 60px rgba(18, 18, 17, 0.14); /* phone and tilted side cards */
/* Motion */
--ease: ease; /* hovers and fades */
--ease-out: cubic-bezier(0.2, 0.7, 0.2, 1); /* entrances */
--quick: 200ms; /* hover colour and background */
--snappy: 120ms; /* press and menu items */
--enter: 700ms; /* hero entrance */
--float-time: 6s; /* one bob of a floating card */
--progress-time: 5s; /* one showcase tab */
--marquee-time: 36s; /* one loop of the pill ticker */
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: var(--weight-medium) var(--text-m)/1.3 var(--font-body); letter-spacing: var(--track-soft); -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("floating-card-showcase"), 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