Forms
Newsletter signup
A compact card with an envelope illustration, a labelled email field and an honest privacy line.
How to use it
Add it to a page
Write “Add @newsletter-signup after the hero” in the chat. Spearbot restyles it to your fonts and colours.
Mix and match
Combine it with skills, e.g. “Add @newsletter-signup @copywriting for our pricing”.
Or paste it yourself
Copy the HTML below. It is one section with its own scoped styles and no dependencies.
View the HTMLShowHide
<section class="sbc-newsletter-signup" aria-labelledby="sbc-newsletter-signup-title">
<div class="sbc-newsletter-signup__card">
<div class="sbc-newsletter-signup__art" aria-hidden="true">
<svg viewBox="0 0 120 96" width="120" height="96"><rect x="8" y="22" width="104" height="66" rx="12" fill="var(--surface)" stroke="currentColor" stroke-opacity=".14" stroke-width="2"/><path d="M12 30l48 34 48-34" fill="none" stroke="var(--accent)" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"/><circle cx="98" cy="22" r="14" fill="var(--accent)"/><path d="M92 22l4 4 8-8" fill="none" stroke="#fff" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"/></svg>
</div>
<div class="sbc-newsletter-signup__copy">
<h2 id="sbc-newsletter-signup-title">The Sunday letter</h2>
<p>One short email a week with new recipes, what's in season and the occasional kitchen experiment.</p>
</div>
<!-- Demo only: connect this form to your email provider before launch. -->
<form class="sbc-newsletter-signup__form" action="#">
<label for="sbc-newsletter-signup-email">Email address</label>
<div>
<input id="sbc-newsletter-signup-email" type="email" name="email" autocomplete="email" placeholder="you@example.com" required>
<button type="submit">Subscribe</button>
</div>
<p class="sbc-newsletter-signup__fine" role="status" aria-live="polite">No spam. Unsubscribe with one click.</p>
</form>
</div>
</section>
<style>
.sbc-newsletter-signup{--bg:var(--color-bg,#FBF9F6);--ink:var(--color-ink,#16130F);--muted:var(--color-muted,#6B645B);--accent:var(--color-accent,#C2462A);--surface:var(--color-surface,#fff);--r:var(--radius,16px);background:var(--bg);color:var(--ink);font-family:var(--font-body,system-ui,-apple-system,"Segoe UI",sans-serif);padding:clamp(48px,7vw,96px) 20px}
.sbc-newsletter-signup *{box-sizing:border-box}
.sbc-newsletter-signup__card{max-width:1000px;margin:0 auto;display:grid;gap:28px;align-items:center;grid-template-columns:1fr;padding:clamp(28px,5vw,48px);border-radius:calc(var(--r) + 12px);background:linear-gradient(120deg,color-mix(in srgb,var(--accent) 10%,var(--surface)),var(--surface) 55%);border:1px solid color-mix(in srgb,var(--ink) 9%,transparent)}
@media (min-width:860px){.sbc-newsletter-signup__card{grid-template-columns:auto 1fr 1.1fr;gap:40px}}
.sbc-newsletter-signup__art{color:var(--ink);display:flex}
.sbc-newsletter-signup h2{font-family:var(--font-display,Georgia,"Times New Roman",serif);font-size:clamp(26px,3vw,34px);line-height:1.1;letter-spacing:-.03em;font-weight:600;margin:0}
.sbc-newsletter-signup__copy p{margin:10px 0 0;color:var(--muted);line-height:1.55;font-size:16px}
.sbc-newsletter-signup__form label{display:block;font-size:14px;font-weight:600;margin-bottom:8px}
.sbc-newsletter-signup__form>div{display:flex;gap:8px;flex-wrap:wrap}
.sbc-newsletter-signup input{flex:1 1 200px;min-width:0;height:50px;padding:0 16px;border-radius:999px;border:1px solid color-mix(in srgb,var(--ink) 16%,transparent);background:var(--surface);font:inherit;font-size:16px;color:var(--ink)}
.sbc-newsletter-signup input:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 4px color-mix(in srgb,var(--accent) 18%,transparent)}
.sbc-newsletter-signup button{flex:0 0 auto;height:50px;padding:0 24px;border:0;border-radius:999px;background:var(--ink);color:var(--bg);font:inherit;font-weight:600;cursor:pointer}
.sbc-newsletter-signup button:hover{background:color-mix(in srgb,var(--ink) 85%,var(--accent))}
.sbc-newsletter-signup button:focus-visible{outline:3px solid var(--accent);outline-offset:3px}
.sbc-newsletter-signup__fine{margin:10px 0 0;font-size:13px;color:var(--muted)}
@media (max-width:420px){.sbc-newsletter-signup button{width:100%}}
</style>More components
- Contact formContact details beside a labelled form with a topic picker, validation states and a success message.
- Split heroHeadline, supporting line and two actions on the left, a layered visual card on the right.
- Centered heroA big centered headline with a soft gradient halo, an email signup and a quiet grid backdrop.