Painted scene hero
A full-bleed picture with a tracked eyebrow, a large light serif line set to the right and a cream pill button.
Part of the style
Peach Blob Starburst
7 parts that belong together, with their tokens, type and rules.
https://kitbash.me/components/peach-blob-starburst/hero/figma.html?palette=a00a69e670901cbb
Use the Figma MCP server (https://mcp.figma.com/mcp). Download https://kitbash.me/components/peach-blob-starburst/hero/figma.html?palette=a00a69e670901cbb and pass that whole HTML document to the html_to_figma tool, so the part "Painted scene 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 {
--ink: #c5c4c9;
--ink-soft: #818083;
--paper: #030303;
--paper-bright: #020202;
--peach: #050505;
--mist: #040404;
--on-navy: #0c0c0c;
--veil: rgba(197, 196, 201, 0.5);
--finish-chalk: #020202;
--navy: #6a77c3;
--sky: #090c24;
--sage: #0d0c36;
--tangerine: #3f498f;
--finish-honey: #495075;
--finish-walnut: #343a58;
}
</style>
<section class="hero">
<img class="hero__picture" src="assets/hero-garden.jpg" alt="A painted summer garden path lined with blue pots, a small child standing in the sun" width="1200" height="980">
<div class="hero__copy">
<p class="hero__eyebrow">Planted this season</p>
<h1 class="hero__title">A little dirt, every day</h1>
<a class="hero__button" href="#">Start a patch</a>
</div>
</section>
<style>
.hero {
position: relative;
display: grid;
min-height: clamp(520px, 56vw, 800px);
margin-top: -70px;
overflow: hidden;
background: var(--peach);
}
.hero__picture {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
object-fit: cover;
object-position: 50% 60%;
}
.hero::after {
content: "";
position: absolute;
inset: 0;
background: linear-gradient(250deg, rgba(10, 10, 10, 0.32), transparent 46%);
pointer-events: none;
}
.hero__copy {
position: relative;
z-index: 1;
display: grid;
justify-items: end;
align-content: start;
gap: var(--space-s);
width: min(36rem, 100%);
margin-left: auto;
padding: calc(70px + clamp(48px, 7vw, 120px)) clamp(20px, 6vw, 100px) var(--section-space) var(--edge);
color: var(--on-navy);
text-align: right;
}
.hero__eyebrow {
margin: 0;
font-size: var(--text-xs);
font-weight: 600;
letter-spacing: var(--tracking-caps);
text-transform: uppercase;
}
.hero__title {
margin: 0 0 var(--space-s);
font-family: var(--font-display);
font-variation-settings: var(--display-soft);
font-size: var(--display-l);
font-weight: var(--display-weight);
letter-spacing: 0;
line-height: 1.05;
text-wrap: balance;
text-shadow: 0 1px 18px rgba(10, 10, 10, 0.25);
}
.hero__button {
display: inline-flex;
align-items: center;
min-height: 48px;
padding: 0 26px;
border-radius: var(--radius-pill);
background: var(--paper-bright);
color: var(--ink);
font-size: var(--text-s);
font-weight: 500;
text-decoration: none;
transition: background-color var(--time) var(--ease), color var(--time) var(--ease);
}
.hero__button:hover,
.hero__button:focus-visible {
background: var(--navy);
color: var(--on-navy);
}
.hero__button:focus-visible {
outline: 2px solid var(--paper-bright);
outline-offset: 3px;
}
@media (max-width: 640px) {
.hero { min-height: 600px; }
.hero__picture { object-position: 30% 50%; }
.hero__copy { padding-right: var(--edge); }
}
</style>