Black statement
A black room with the years on the left and a 24px statement on the right, then an outlined button that fills with sweeping light, widens and swaps its arrow on hover, and opens a small note card with two fields.
Part of the style
Difference Deck
6 parts that belong together, with their tokens, type and rules.
https://kitbash.me/components/difference-deck/statement/figma.html?palette=9a4fce84ef3bd24f&type=wireframe-ledger
Use the Figma MCP server (https://mcp.figma.com/mcp). Download https://kitbash.me/components/difference-deck/statement/figma.html?palette=9a4fce84ef3bd24f&type=wireframe-ledger and pass that whole HTML document to the html_to_figma tool, so the part "Black statement" 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 */
@import url("https://fonts.googleapis.com/css2?family=Inter+Tight:wght@400;500&family=Michroma&family=Newsreader:opsz,wght@6..72,300&display=swap");
:root {
--paper: #010102;
--ink: #fdfefd;
--mute: #747478;
--dim: #959795;
--hairline: rgba(1, 1, 2, 0.15);
--glow: rgba(1, 1, 2, 0.9);
--glow-dark: rgba(253, 254, 253, 0.55);
--art-bone: #040507;
--art-soot: #c7c8c7;
--art-tangerine: #505f7c;
--art-coral: #33466b;
--art-sand: #50555d;
--art-red: #2b3f67;
--art-ember: #35486c;
--art-ochre: #61718f;
--art-cobalt: #4d6076;
--art-blue: #4a5e75;
--art-celadon: #505f7c;
--art-lilac: #4d6076;
--art-rose: #505f7c;
--font-text: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
--font-logo: "Newsreader", "Times New Roman", serif;
}
</style>
<section class="statement" aria-labelledby="statement-title">
<p class="statement__years statement__fade">2014 — 26</p>
<div class="statement__body">
<h2 class="statement__text statement__fade" id="statement-title">A studio throwing tableware, vessels and tiles for kitchens, hotels and quiet rooms. Fired by hand, glazed in small batches, and made piece by piece with chefs, architects and the odd collector who asks nicely.</h2>
<div class="statement__note-wrap statement__fade">
<button class="statement__button" type="button" aria-expanded="false" aria-controls="statement-note">
<span class="statement__button-label">Leave a note</span>
<span class="statement__arrows" aria-hidden="true">
<svg class="statement__arrow statement__arrow--out" viewBox="0 0 12 12"><path d="M1.5 6h8.5M6.5 2.5 10 6l-3.5 3.5" fill="none" stroke="currentColor" stroke-width="1.4"/></svg>
<svg class="statement__arrow statement__arrow--in" viewBox="0 0 12 12"><path d="M1.5 6h8.5M6.5 2.5 10 6l-3.5 3.5" fill="none" stroke="currentColor" stroke-width="1.4"/></svg>
</span>
</button>
<form class="statement__note" id="statement-note" aria-label="Leave a note">
<div class="statement__note-head">
<p class="statement__note-title">A note to Mira</p>
<button class="statement__close" type="button" aria-label="Close the note">
<svg viewBox="0 0 12 12" aria-hidden="true"><path d="M2.5 2.5l7 7M9.5 2.5l-7 7" stroke="currentColor" stroke-width="1.4"/></svg>
</button>
</div>
<label class="statement__field">
<span class="statement__field-label">What are you making?</span>
<textarea class="statement__input statement__input--area" rows="3" placeholder="Forty bowls for a new dining room"></textarea>
</label>
<label class="statement__field">
<span class="statement__field-label">Where can she write back?</span>
<input class="statement__input" type="email" placeholder="you@studio.no">
</label>
<div class="statement__note-foot">
<p class="statement__sent" role="status"></p>
<button class="statement__button statement__button--send" type="submit">
<span class="statement__button-label">Send</span>
<span class="statement__arrows" aria-hidden="true">
<svg class="statement__arrow statement__arrow--out" viewBox="0 0 12 12"><path d="M1.5 6h8.5M6.5 2.5 10 6l-3.5 3.5" fill="none" stroke="currentColor" stroke-width="1.4"/></svg>
<svg class="statement__arrow statement__arrow--in" viewBox="0 0 12 12"><path d="M1.5 6h8.5M6.5 2.5 10 6l-3.5 3.5" fill="none" stroke="currentColor" stroke-width="1.4"/></svg>
</span>
</button>
</div>
</form>
</div>
</div>
</section>
<style>
.statement {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: var(--gap-half);
padding: 32px var(--edge) 48px;
border-bottom: 1px solid var(--hairline);
background: var(--ink);
color: var(--paper);
}
.statement__years {
margin: 0;
font-size: var(--text-s);
}
.statement__text {
max-width: 38rem;
margin: 0;
font-size: var(--text-m);
font-weight: var(--weight);
line-height: var(--leading);
letter-spacing: var(--tracking);
}
.statement__note-wrap {
position: relative;
margin-top: 24px;
}
/* The button: black with a faint outline; on hover white light sweeps in from the left, it fills and widens 6px, and the arrow is replaced. */
.statement__button {
position: relative;
display: inline-flex;
align-items: center;
gap: 8px;
min-height: var(--tap);
padding: 0 12px;
overflow: hidden;
border: 1px solid var(--hairline);
border-radius: var(--radius-s);
background: var(--ink);
color: var(--paper);
font: inherit;
letter-spacing: inherit;
cursor: pointer;
transition:
background-color var(--time-fill) var(--ease-fill),
color var(--time-fill) var(--ease-fill),
padding var(--time-fill) var(--ease-fill),
scale var(--time-dim) var(--ease-dim);
}
.statement__button::before {
content: "";
position: absolute;
inset: 0 auto 0 0;
width: 200%;
background: linear-gradient(90deg, var(--glow) 0%, var(--glow) 35%, transparent 60%);
opacity: 0;
transform: translateX(-60%);
transition: transform var(--time-fill) var(--ease-fill), opacity var(--time-fill) var(--ease-fill);
}
.statement__button-label,
.statement__arrows {
position: relative;
}
.statement__arrows {
width: 12px;
height: 12px;
overflow: hidden;
}
.statement__arrow {
position: absolute;
inset: 0;
width: 12px;
height: 12px;
transition: transform var(--time-fill) var(--ease-fill), opacity var(--time-fill) var(--ease-fill);
}
.statement__arrow--in {
opacity: 0;
transform: translateX(-100%);
}
.statement__button:hover,
.statement__button:focus-visible,
.statement__button[aria-expanded="true"] {
padding: 0 15px;
background: var(--paper);
color: var(--ink);
}
.statement__button:hover::before,
.statement__button:focus-visible::before {
opacity: 1;
transform: translateX(0);
}
.statement__button:hover .statement__arrow--out,
.statement__button:focus-visible .statement__arrow--out {
opacity: 0;
transform: translateX(100%);
}
.statement__button:hover .statement__arrow--in,
.statement__button:focus-visible .statement__arrow--in {
opacity: 1;
transform: translateX(0);
}
.statement__button[aria-expanded="true"] .statement__arrow {
rotate: 90deg;
}
.statement__button:active {
scale: 0.98;
}
.statement__button:focus-visible {
outline: 1px solid var(--paper);
outline-offset: 3px;
}
/* The note card opens under the button, fading up 8px. */
.statement__note {
position: absolute;
top: calc(100% + 8px);
left: 0;
z-index: 2;
display: grid;
gap: 14px;
width: min(22rem, calc(100vw - 2 * var(--edge)));
padding: 16px;
border: 1px solid var(--hairline);
border-radius: var(--radius-m);
background: var(--ink);
opacity: 0;
visibility: hidden;
transform: translateY(8px);
transition:
opacity var(--time-fade) var(--ease-fade),
transform var(--time-fade) var(--ease-fade),
visibility 0s linear var(--time-fade);
}
.statement.is-open .statement__note {
opacity: 1;
visibility: visible;
transform: none;
transition: opacity var(--time-fade) var(--ease-fade), transform var(--time-fade) var(--ease-fade), visibility 0s;
}
.statement__note-head,
.statement__note-foot {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
}
.statement__note-title,
.statement__sent {
margin: 0;
}
.statement__sent {
color: var(--mute);
}
.statement__close {
display: grid;
place-items: center;
width: var(--tap);
height: var(--tap);
margin: -14px -14px -14px 0;
border: 0;
background: none;
color: var(--mute);
cursor: pointer;
transition: color var(--time-dim) var(--ease-dim);
}
.statement__close svg {
width: 12px;
height: 12px;
}
.statement__close:hover,
.statement__close:focus-visible {
color: var(--paper);
}
.statement__close:focus-visible {
outline: 1px solid var(--paper);
outline-offset: -8px;
}
.statement__field {
display: grid;
gap: 6px;
color: var(--mute);
}
.statement__input {
width: 100%;
min-height: var(--tap);
padding: 12px;
border: 1px solid var(--hairline);
border-radius: var(--radius-s);
background: transparent;
color: var(--paper);
font: inherit;
letter-spacing: inherit;
resize: none;
transition: border-color var(--time-dim) var(--ease-dim);
}
.statement__input::placeholder {
color: var(--dim);
}
.statement__input:hover {
border-color: var(--mute);
}
.statement__input:focus {
border-color: var(--paper);
outline: none;
}
/* Text fades up 8px when the section comes into view. */
.statement__fade {
opacity: 0;
transform: translateY(8px);
transition: opacity var(--time-fade) var(--ease-fade), transform var(--time-fade) var(--ease-fade);
transition-delay: calc(var(--order, 0) * var(--stagger-fade));
}
.statement.is-seen .statement__fade {
opacity: 1;
transform: none;
}
@media (max-width: 52rem) {
.statement {
grid-template-columns: 1fr;
gap: 24px;
}
.statement__text {
font-size: var(--text-m-phone);
}
}
@media (prefers-reduced-motion: reduce) {
.statement__fade {
opacity: 1;
transform: none;
transition: none;
}
}
</style>
<script>
(() => {
const SENT = 'Sent. Mira writes back within a week.';
function setUp(root) {
const opener = root.querySelector('.statement__note-wrap > .statement__button');
const note = root.querySelector('.statement__note');
const sent = root.querySelector('.statement__sent');
function toggle(open) {
root.classList.toggle('is-open', open);
opener.setAttribute('aria-expanded', String(open));
if (open) note.querySelector('.statement__input').focus({ preventScroll: true });
}
opener.addEventListener('click', () => toggle(!root.classList.contains('is-open')));
root.querySelector('.statement__close').addEventListener('click', () => {
toggle(false);
opener.focus();
});
root.addEventListener('keydown', (event) => {
if (event.key !== 'Escape' || !root.classList.contains('is-open')) return;
toggle(false);
opener.focus();
});
document.addEventListener('pointerdown', (event) => {
if (root.classList.contains('is-open') && !note.contains(event.target) && !opener.contains(event.target)) toggle(false);
});
note.addEventListener('submit', (event) => {
event.preventDefault();
sent.textContent = SENT;
note.reset();
});
root.querySelectorAll('.statement__fade').forEach((item, order) => item.style.setProperty('--order', order));
new IntersectionObserver((entries, observer) => {
if (!entries[0].isIntersecting) return;
root.classList.add('is-seen');
observer.disconnect();
}, { threshold: 0.15 }).observe(root);
}
document.querySelectorAll('.statement').forEach(setUp);
})();
</script>