Forms & inputs / Forms

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.

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>
  );
}

Quality checks

Automated, in a real browser · today
—

More from Embossed Lab Monochrome

The whole style →

Pictogram Mega Nav Bar

Headers & nav bars

Centered Link Footer

Footers

Embossed Advent Tile Grid

Feature sections

Embossed Relief Tile

Cards

Centered Uppercase Intro Panel

Heroes

Quiet Countdown Readout

Stats & metrics