Hairline Newsletter Signup
Narrow centered column on white: light 39px headline, grey subtitle at 26px, a square-cornered outlined email field with tiny floating label, a consent checkbox row and a full-width near-black subscribe bar.
Rebuilt from teenage.engineering/newsletter in the Embossed Lab Monochrome style.
npx shadcn@latest add https://justyoink.it/r/embossed-lab-monochrome/blocks/newsletter-signup-form.json
Looks exactly like teenage.engineering: brings its fonts and colours, namespaced so your own theme stays untouched.
npx shadcn@latest add https://justyoink.it/r/embossed-lab-monochrome/mine/newsletter-signup-form.json
Restyled to your project: uses your shadcn colours, fonts and radius, so it matches the rest of your app. Layout, type sizes and motion stay as designed.
Usage
All copy is overridable via props (heading, subtitle, emailLabel, consentText, consentLinkText, buttonLabel). Pass onSubmit to receive the email once the consent box is checked.
components/newsletter-signup-form.tsx
import { useState } from "react"; export default function HairlineNewsletterSignup(props: { heading?: string; subtitle?: string; emailLabel?: string; consentText?: string; consentLinkText?: string; buttonLabel?: string; onSubmit?: (email: string) => void; }) { const { heading = "stay in the loop", subtitle = "leave your address and we will send occasional letters about new releases, workshop dates, small discoveries and more.", emailLabel = "email address", consentText = "i agree to receive letters and accept the", consentLinkText = "terms of use.", buttonLabel = "sign me up", onSubmit, } = props; const [email, setEmail] = useState(""); const [agreed, setAgreed] = useState(false); return ( <section className="w-full bg-white px-5 py-16 sm:py-24"> <form className="mx-auto flex w-full max-w-[720px] flex-col items-stretch font-sans" onSubmit={(e) => { e.preventDefault(); if (agreed) onSubmit?.(email); }} > <h2 className="text-center font-display text-[30px] font-light leading-tight text-ink sm:text-[39px]">{heading}</h2> <p className="mx-auto mt-4 text-center text-[20px] font-light leading-[1.2] text-muted sm:text-[26px]">{subtitle}</p> <label className="relative mt-8 block"> <span className="pointer-events-none absolute left-[15px] top-2 text-[12px] font-light text-muted">{emailLabel}</span> <input type="email" required value={email} onChange={(e) => setEmail(e.target.value)} className="h-[60px] w-full rounded-none border border-surface-muted bg-white px-[15px] pt-5 text-[18px] font-light text-ink outline-none transition-colors focus:border-ink" /> </label> <label className="mt-6 flex cursor-pointer items-center gap-4"> <input type="checkbox" checked={agreed} onChange={(e) => setAgreed(e.target.checked)} className="peer sr-only" /> <span className="flex h-[058px] h-7 w-7 shrink-0 items-center justify-center border border-surface-muted bg-white peer-focus-visible:ring-2 peer-focus-visible:ring-ink"> {agreed && ( <svg width="16" height="16" viewBox="0 0 16 16" aria-hidden="true"> <path d="M2 8.5l4 4 8-9" fill="none" stroke="currentColor" strokeWidth="1.5" className="text-ink" /> </svg> )} </span> <span className="text-[17px] font-light text-ink sm:text-[20px]"> {consentText} <a href="#" className="underline">{consentLinkText}</a> * </span> </label> <button type="submit" className="mt-8 h-[74px] w-full rounded-none bg-ink text-[24px] font-light text-on-dark transition-opacity duration-300 hover:opacity-80 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-ink" > {buttonLabel} </button> </form> </section> ); }import { useState } from "react"; export default function HairlineNewsletterSignup(props: { heading?: string; subtitle?: string; emailLabel?: string; consentText?: string; consentLinkText?: string; buttonLabel?: string; onSubmit?: (email: string) => void; }) { const { heading = "stay in the loop", subtitle = "leave your address and we will send occasional letters about new releases, workshop dates, small discoveries and more.", emailLabel = "email address", consentText = "i agree to receive letters and accept the", consentLinkText = "terms of use.", buttonLabel = "sign me up", onSubmit, } = props; const [email, setEmail] = useState(""); const [agreed, setAgreed] = useState(false); return ( <section className="w-full bg-foreground px-5 py-16 sm:py-24"> <form className="mx-auto flex w-full max-w-[720px] flex-col items-stretch font-mono" onSubmit={(e) => { e.preventDefault(); if (agreed) onSubmit?.(email); }} > <h2 className="text-center font-mono text-[30px] font-light leading-tight text-foreground sm:text-[39px]">{heading}</h2> <p className="mx-auto mt-4 text-center text-[20px] font-light leading-[1.2] text-muted-foreground sm:text-[26px]">{subtitle}</p> <label className="relative mt-8 block"> <span className="pointer-events-none absolute left-[15px] top-2 text-[12px] font-light text-muted-foreground">{emailLabel}</span> <input type="email" required value={email} onChange={(e) => setEmail(e.target.value)} className="h-[60px] w-full rounded-none border border-foreground bg-foreground px-[15px] pt-5 text-[18px] font-light text-background outline-none transition-colors focus:border-foreground" /> </label> <label className="mt-6 flex cursor-pointer items-center gap-4"> <input type="checkbox" checked={agreed} onChange={(e) => setAgreed(e.target.checked)} className="peer sr-only" /> <span className="flex h-[058px] h-7 w-7 shrink-0 items-center justify-center border border-foreground bg-primary peer-focus-visible:ring-2 peer-focus-visible:ring-foreground"> {agreed && ( <svg width="16" height="16" viewBox="0 0 16 16" aria-hidden="true"> <path d="M2 8.5l4 4 8-9" fill="none" stroke="currentColor" strokeWidth="1.5" className="text-foreground" /> </svg> )} </span> <span className="text-[17px] font-light text-foreground sm:text-[20px]"> {consentText} <a href="#" className="underline">{consentLinkText}</a> * </span> </label> <button type="submit" className="mt-8 h-[74px] w-full rounded-none bg-foreground text-[24px] font-light text-background transition-opacity duration-300 hover:opacity-80 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-foreground" > {buttonLabel} </button> </form> </section> ); }
Quality checks
Automated, in a real browser · today- Accessible: passedNo serious accessibility problems (axe-core): readable contrast, labelled buttons and images.
- Responsive: passedRenders at phone (390px), tablet (768px) and desktop width without sideways scrolling.
- Dark mode: not passedElements must meet minimum color contrast ratio thresholds (2 elements)
- Themeable: passedUses design tokens rather than hard-coded colours, so it follows your theme cleanly.
- Animates cleanly: doesn't applyDoesn't animate, so there's nothing to check.