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.
Part of the style
Floating Card Showcase
7 parts that belong together, with their tokens, type and rules.
https://kitbash.me/components/floating-card-showcase/showcase/figma.html?palette=10fe3879be341cfd
Use the Figma MCP server (https://mcp.figma.com/mcp). Download https://kitbash.me/components/floating-card-showcase/showcase/figma.html?palette=10fe3879be341cfd and pass that whole HTML document to the html_to_figma tool, so the part "App screen showcase" lands as editable layers in my open Figma file. Fonts come from Google Fonts: if a face is missing in Figma, pick the closest one.
Code
<style>
/* Goes after the pack's base.css */
:root {
--ink: #b5c2d5;
--ink-2: #b4becc;
--ink-soft: #747167;
--ink-faint: #42403a;
--paper: #080808;
--mist: #0c0c0c;
--stone: #131312;
--hair: #171615;
--dash: #21201e;
--accent-soft: #121211;
--on-ink: #a9a9a9;
--on-ink-soft: #524f48;
--accent: #805d56;
}
</style>
<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>