Cut-out hero
Two tilted lines of huge uneven letters on lime, a blob badge between two kickers, and a thick jar-lid sticker that drops in, then rolls away with the scroll. The sheet ends in a curve over deep green with a pen note.
Part of the style
Sticker Shock
7 parts that belong together, with their tokens, type and rules.
https://kitbash.me/components/sticker-shock/hero/figma.html?palette=8c55fead73a49d24
Use the Figma MCP server (https://mcp.figma.com/mcp). Download https://kitbash.me/components/sticker-shock/hero/figma.html?palette=8c55fead73a49d24 and pass that whole HTML document to the html_to_figma tool, so the part "Cut-out hero" 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 {
--lime: #ffffff;
--paper: #ffffff;
--pine: #111117;
--ink: #000000;
--shade: rgba(0, 0, 0, 0.3);
--forest: #460136;
--sun: #958b2d;
--kraft: #8b8864;
--kraft-ink: #141201;
--tape: #838065;
--kraft-light: #807e5f;
--note: #9b9243;
--coral: #c773ac;
--tangerine: #cb6eae;
--sky: #958b2d;
--iris: #c773ac;
--grape: #7f376a;
--candy: #958b2d;
}
</style>
<section class="hero">
<div class="hero__sheet">
<p class="hero__top">
<span class="hero__kicker">Small jars</span>
<span class="hero__badge"><span class="hero__badge-name">Loud<br>Jar</span></span>
<span class="hero__kicker">Big noise</span>
</p>
<h1 class="hero__title" aria-label="Crunch out loud">
<span class="hero__line" aria-hidden="true">Crunch</span>
<span class="hero__line" aria-hidden="true">Out loud</span>
</h1>
</div>
<div class="hero__lid" role="img" aria-label="Lid of a jar of dill spears">
<svg class="hero__lid-print" viewBox="0 0 200 200" aria-hidden="true">
<path id="hero-lid-arc" d="M30,100 a70,70 0 1,1 140,0" fill="none" />
<path id="hero-lid-foot" d="M5,100 a95,95 0 0,0 190,0" fill="none" />
<text class="hero__lid-arc"><textPath href="#hero-lid-arc" startOffset="50%">Packed by hand · 400 g · keep it cold</textPath></text>
<text class="hero__lid-foot"><textPath href="#hero-lid-foot" startOffset="50%">Extra loud</textPath></text>
</svg>
<span class="hero__lid-brand">Loud Jar</span>
<strong class="hero__lid-name">Dill<br>Spears</strong>
<span class="hero__lid-code"></span>
</div>
<p class="hero__note">made for real kitchens.<br>not fancy, just loud.</p>
</section>
<style>
.hero {
--hero-progress: 0;
position: relative;
padding-bottom: clamp(9rem, 19vw, 18rem);
background: var(--crease) 0 0 / var(--crease-size), var(--forest);
background-blend-mode: soft-light;
overflow: clip;
}
.hero__sheet {
display: flex;
flex-direction: column;
align-items: center;
min-height: clamp(23rem, 50vw, 48rem);
padding: clamp(4.5rem, 5vw, 5.5rem) var(--gutter) calc(var(--curve-depth) + 3rem);
border-radius: 0 0 50% 50% / 0 0 var(--curve-depth) var(--curve-depth);
background: var(--crease) 0 0 / var(--crease-size), var(--lime);
background-blend-mode: soft-light;
}
.hero__top {
display: flex;
align-items: center;
gap: clamp(0.5rem, 2vw, 2rem);
margin: 0;
position: relative;
z-index: 2;
}
.hero__kicker {
font: 900 clamp(1.15rem, 2.8vw, 2.6rem) / 1 var(--font-display);
text-transform: uppercase;
letter-spacing: -0.02em;
white-space: nowrap;
}
.hero__badge {
display: grid;
place-items: center;
width: clamp(5.25rem, 13vw, 12rem);
aspect-ratio: 1.75;
margin-bottom: -1.2rem;
border-radius: 52% 48% 46% 54% / 62% 54% 46% 38%;
background: var(--forest);
box-shadow: 0.2em 0.35em 0 var(--sun);
transform: rotate(-9deg);
transition: transform var(--time-pop) var(--ease-spring);
}
.hero__badge:hover {
transform: rotate(6deg) scale(1.08);
}
.hero__badge-name {
font: 900 clamp(1.15rem, 2.9vw, 2.7rem) / var(--tight) var(--font-display);
text-transform: uppercase;
text-align: center;
color: var(--paper);
}
.hero__title {
display: flex;
flex-direction: column;
align-items: center;
margin: 0;
font: 900 var(--size-hero) / 0.74 var(--font-display);
text-transform: uppercase;
letter-spacing: -0.015em;
white-space: nowrap;
}
.hero__line {
display: block;
transform: translateY(calc(var(--hero-progress) * var(--drift, 0) * 1em)) rotate(var(--tilt));
}
.hero__line:nth-child(1) {
--tilt: -4deg;
--drift: -0.12;
}
.hero__line:nth-child(2) {
--tilt: 3.5deg;
--drift: 0.1;
}
.hero__char {
display: inline-block;
transform: translateY(var(--lift)) rotate(var(--lean)) scaleY(var(--stretch));
transform-origin: 50% 80%;
transition: transform var(--time-pop) var(--ease-spring);
animation: hero-rise calc(var(--time-pop) * 1.5) var(--ease-spring) backwards;
animation-delay: calc(var(--order) * var(--stagger) + 0.1s);
}
.hero__char:hover {
transform: translateY(calc(var(--lift) - 0.07em)) rotate(calc(var(--lean) * -2.5)) scaleY(1.06);
}
@keyframes hero-rise {
from {
opacity: 0;
transform: translateY(0.55em) rotate(calc(var(--lean) * 7)) scale(0.6);
}
30% {
opacity: 1;
}
}
.hero__lid {
--lid: var(--sun);
--lid-face: color-mix(in srgb, var(--lid) 42%, var(--paper));
--lid-side: color-mix(in srgb, var(--lid) 30%, var(--paper));
position: absolute;
left: 50%;
bottom: clamp(1.5rem, 4vw, 4rem);
z-index: 3;
display: grid;
place-content: center;
justify-items: center;
width: 1em;
height: 1em;
margin-left: -0.5em;
font-size: clamp(12.5rem, 25vw, 23rem);
border-radius: var(--radius-pill);
background: radial-gradient(circle closest-side, var(--lid-face) calc(0.5em - var(--lid-rim)), var(--lid) calc(0.5em - var(--lid-rim) + 1px));
box-shadow:
-0.03em 0.012em 0 var(--lid-side),
-0.06em 0.024em 0 var(--lid-side),
-0.09em 0.036em 0 var(--lid-side),
-0.12em 0.048em 0 var(--lid-side),
-0.15em 0.06em 0 var(--lid-side),
-0.18em 0.072em 0 var(--lid-side),
-0.2em 0.2em 0.3em var(--shade);
color: var(--ink);
transform: translateY(calc(var(--hero-progress) * 0.5em)) rotate(calc(-14deg + var(--hero-progress) * 240deg));
animation: hero-drop calc(var(--time-pop) * 2) var(--ease-spring) 0.5s backwards;
}
@keyframes hero-drop {
from {
transform: translateY(-1.1em) rotate(-200deg);
}
}
.hero__lid-print {
position: absolute;
inset: 0;
font-family: var(--font-display);
font-weight: 800;
text-transform: uppercase;
text-anchor: middle;
}
.hero__lid-arc {
font-size: 8.4px;
letter-spacing: 0.04em;
fill: var(--ink);
}
.hero__lid-foot {
font-size: 11.5px;
font-weight: 900;
letter-spacing: 0.05em;
fill: var(--paper);
}
.hero__lid-brand {
padding: 0.35em 0.8em 0.25em;
border-radius: 55% 45% 50% 50% / 60% 60% 40% 40%;
background: var(--forest);
color: var(--paper);
font: 900 0.058em / 1 var(--font-display);
text-transform: uppercase;
transform: rotate(-6deg);
}
.hero__lid-name {
margin: 0.03em 0 0.04em;
font: 900 0.2em / var(--tight) var(--font-display);
text-transform: uppercase;
text-align: center;
letter-spacing: -0.02em;
}
.hero__lid-code {
width: 0.2em;
height: 0.075em;
border: 0.012em solid var(--paper);
background: repeating-linear-gradient(90deg, var(--ink) 0 1.5%, var(--paper) 1.5% 4%, var(--ink) 4% 8%, var(--paper) 8% 9.5%, var(--ink) 9.5% 10.5%, var(--paper) 10.5% 14%);
}
.hero__note {
position: absolute;
right: 9%;
bottom: clamp(4rem, 9vw, 8rem);
margin: 0;
padding: 0.5em 0 0 0.9em;
border-top: 1px solid var(--lime);
border-left: 1px solid var(--lime);
font: 400 var(--size-hand) / 1.25 var(--font-hand);
text-transform: lowercase;
color: var(--lime);
transform: rotate(-5deg);
}
@media (max-width: 47.99rem) {
.hero__note {
display: none;
}
}
@media (prefers-reduced-motion: reduce) {
.hero__char,
.hero__lid {
animation: none;
transition: none;
}
.hero {
--hero-progress: 0 !important;
}
}
</style>
<script>
(() => {
const LEANS = [-3, 2.2, -1.4, 3.1, -2.4, 1.2, -3.4, 2.6, -1, 3.3];
const LIFTS = [0, -0.018, 0.022, -0.01, 0.026, -0.02, 0.012, -0.026, 0.018, 0];
const STRETCHES = [1, 1.05, 0.97, 1.04, 0.98, 1.06, 1, 0.96, 1.03, 1.01];
const cutIntoLetters = (line, firstOrder) => {
const letters = [...line.textContent];
line.textContent = '';
letters.forEach((letter, index) => {
const order = firstOrder + index;
const char = document.createElement('span');
char.className = 'hero__char';
char.textContent = letter === ' ' ? ' ' : letter;
char.style.setProperty('--order', order);
char.style.setProperty('--lean', `${LEANS[order % LEANS.length]}deg`);
char.style.setProperty('--lift', `${LIFTS[order % LIFTS.length]}em`);
char.style.setProperty('--stretch', STRETCHES[order % STRETCHES.length]);
line.append(char);
});
return letters.length;
};
const followScroll = (hero) => {
const update = () => {
const { top, height } = hero.getBoundingClientRect();
hero.style.setProperty('--hero-progress', Math.min(1, Math.max(0, -top / height)).toFixed(3));
};
addEventListener('scroll', update, { passive: true });
update();
};
document.querySelectorAll('.hero').forEach((hero) => {
let order = 0;
hero.querySelectorAll('.hero__line').forEach((line) => {
order += cutIntoLetters(line, order);
});
followScroll(hero);
});
})();
</script>