News entry
News items as picture pairs on the left and a labelled bold title with short paragraphs on the right, split by full-width hairlines.
Part of the style
Red Pen Shop
6 parts that belong together, with their tokens, type and rules.
https://kitbash.me/components/red-pen-shop/notice/figma.html?palette=a00a69e670901cbb
Use the Figma MCP server (https://mcp.figma.com/mcp). Download https://kitbash.me/components/red-pen-shop/notice/figma.html?palette=a00a69e670901cbb and pass that whole HTML document to the html_to_figma tool, so the part "News entry" 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 {
--red: #c5c4c9;
--paper: #030303;
--ground: #1f1e1e;
--ground-shade: #383836;
--cover-cream: #121111;
--cover-navy: #6a77c3;
--cover-cobalt: #8092f7;
--cover-pink: #7179ac;
--cover-mustard: #5460a9;
--peg: #676f92;
--cover-lemon: #4954a6;
--peg-hole: #6e7699;
--cover-leaf: #7179ac;
--cover-neon: #4d53af;
}
</style>
<section class="notice">
<svg class="notice__defs" width="0" height="0" aria-hidden="true" focusable="false">
<defs>
<pattern id="notice-pears" width="46" height="46" patternUnits="userSpaceOnUse" patternTransform="rotate(-8)">
<rect class="notice__paper" width="46" height="46" />
<path class="notice__ink" d="M14 8 C10 8 9 13 9 15 C9 18 4 20 4 26 C4 31 9 34 14 34 C19 34 24 31 24 26 C24 20 19 18 19 15 C19 13 18 8 14 8 Z M14 8 C14 6 15 4 17 3" />
<path class="notice__ink" d="M33 30 C36 26 41 27 42 30 C39 33 36 33 33 30 Z M30 40 l3 0 M38 12 l2 2" />
</pattern>
</defs>
</svg>
<div class="notice__list">
<article class="notice__entry">
<div class="notice__pictures">
<svg class="notice__picture" viewBox="0 0 300 240" role="img" aria-label="A parcel wrapped in pear-patterned paper, tied with string">
<rect class="notice__ground" width="300" height="240" />
<ellipse class="notice__shadow" cx="156" cy="196" rx="112" ry="14" />
<path class="notice__wrap" d="M54 96 L216 96 L216 194 L54 194 Z" />
<path class="notice__wrap notice__wrap--top" d="M54 96 L96 64 L254 64 L216 96 Z" />
<path class="notice__wrap notice__wrap--side" d="M216 96 L254 64 L254 160 L216 194 Z" />
<path class="notice__string" d="M136 96 L136 194 M54 146 L216 146 L254 112 M136 96 L176 64 M216 96 L254 64" />
<path class="notice__string" d="M136 96 C124 80 112 84 118 92 C124 98 136 96 136 96 C148 80 162 84 156 92 C150 98 136 96 136 96" />
</svg>
<svg class="notice__picture" viewBox="0 0 300 240" role="img" aria-label="A sheet of the pear-patterned wrapping paper, one corner folded">
<rect class="notice__ground" width="300" height="240" />
<path class="notice__shadow" d="M40 40 L268 30 L276 214 L48 222 Z" />
<path class="notice__wrap" d="M34 34 L262 24 L270 208 L42 216 Z" />
<path class="notice__fold" d="M206 211 L270 208 L267 150 Z" />
</svg>
</div>
<div class="notice__text">
<p class="notice__label">News / Nouvelles</p>
<h3 class="notice__title">Wrapping paper, second colour</h3>
<p>Our house wrapping paper now comes in a cobalt run: small pears and stray leaves drawn by Mo Ferrant, printed on a soft uncoated sheet.</p>
<p>We wrap every order for free, in the shop and by post. Leave a note at checkout and say who it is for.</p>
<p class="notice__aside">*The paper is not sold on its own.</p>
</div>
</article>
<article class="notice__entry">
<div class="notice__pictures notice__pictures--single">
<svg class="notice__picture" viewBox="0 0 300 240" role="img" aria-label="A short stack of stitched notebooks">
<rect class="notice__ground" width="300" height="240" />
<ellipse class="notice__shadow" cx="150" cy="190" rx="108" ry="12" />
<rect class="notice__book notice__book--pink" x="56" y="158" width="190" height="26" />
<rect class="notice__book notice__book--leaf" x="66" y="134" width="176" height="24" />
<rect class="notice__book notice__book--cream" x="60" y="112" width="184" height="22" />
<rect class="notice__book notice__book--lemon" x="72" y="92" width="166" height="20" />
<path class="notice__stitch" d="M80 171 h150 M84 146 h140 M76 123 h150" />
</svg>
</div>
<div class="notice__text">
<p class="notice__label">Events / Rendez-vous</p>
<h3 class="notice__title">Saturday stitching table</h3>
<p>Bring scraps of paper you cannot throw away. We bring needles, thread and a pot of tea, and you leave with a notebook sewn by hand. Twelve seats, first come.</p>
</div>
</article>
</div>
</section>
<style>
.notice {
padding: 0 var(--gutter) 0 var(--inset);
background: var(--paper);
color: var(--red);
}
.notice__defs {
position: absolute;
width: 0;
height: 0;
}
.notice__entry {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
column-gap: var(--gap);
align-items: start;
padding-block: var(--space-xl);
border-top: var(--rule) solid var(--red);
}
.notice__pictures {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
}
.notice__pictures--single {
grid-template-columns: minmax(0, 1fr);
width: 50%;
}
.notice__picture {
width: 100%;
height: auto;
}
.notice__ground { fill: var(--ground); }
.notice__shadow { fill: var(--ground-shade); }
.notice__paper { fill: var(--cover-cream); }
.notice__ink {
fill: none;
stroke: var(--cover-cobalt);
stroke-width: 1.6;
stroke-linecap: round;
}
.notice__wrap { fill: url(#notice-pears); }
.notice__wrap--top { filter: brightness(1.04); }
.notice__wrap--side { filter: brightness(0.86); }
.notice__fold { fill: var(--paper); }
.notice__string {
fill: none;
stroke: var(--cover-navy);
stroke-width: 2;
}
.notice__book { stroke: var(--ground-shade); }
.notice__book--pink { fill: var(--cover-pink); }
.notice__book--leaf { fill: var(--cover-leaf); }
.notice__book--cream { fill: var(--cover-cream); }
.notice__book--lemon { fill: var(--cover-lemon); }
.notice__stitch {
fill: none;
stroke: var(--cover-navy);
stroke-width: 1.2;
stroke-dasharray: 5 4;
}
.notice__text > * {
margin: 0;
}
.notice__text > * + * {
margin-top: var(--space-m);
}
.notice__label {
padding-top: var(--space-xs);
}
.notice__title {
font-size: var(--text);
font-weight: 700;
letter-spacing: var(--tracking-bold);
line-height: var(--leading);
}
.notice__text p:not(.notice__label) {
max-width: 36rem;
}
.notice__text > .notice__aside {
margin-top: var(--space-l);
}
@media (max-width: 47.99rem) {
.notice__entry {
grid-template-columns: minmax(0, 1fr);
row-gap: var(--space-l);
}
.notice__pictures--single {
width: 100%;
}
}
</style>