StealThis .dev

News — Pull Quote & Drop Cap Set

A self-contained editorial typographic specimen in classic newsprint style, pairing a justified reading column with a live compositor's panel that swaps four drop-cap treatments — raised, dropped three lines deep, a decorative red initial, and a boxed cap — against five pull-quote variants, from a centred rule-bracketed aside to a left-border accent, an oversized hanging quotation mark, a full-width ink banner, and an inset card. A reference plate grid, captioned duotone press photo, and vanilla JavaScript drive live style switching, keyboard-arrow controls, a one-click copy-snippet, and a small toast helper.

Abrir en Lab
html css vanilla-js
Targets: JS HTML

Código

Pull Quote & Drop Cap Set

A working specimen sheet for the two most quietly opinionated decisions on any editorial page: how the first letter steps forward and how the page repeats itself. A double-rule masthead and uppercase section nav sit above a red kicker, a Playfair Display headline, and an italic deck, followed by a justified reading column whose lead paragraph carries the live drop cap and whose middle holds the live pull quote.

A sticky compositor’s panel on the left audition swaps the typography without touching the copy. The drop-cap control offers a raised initial, a dropped cap that sinks several lines via float and ::first-letter, a decorative red letter with an offset shadow, a boxed cap, and none; the pull-quote control switches between a centred rule-bracketed aside, a left-border accent, an oversized hanging quotation mark, a full-width ink banner, and an inset card. Each choice updates a hint line and a reference plate grid below.

Every interaction is vanilla JavaScript: the segmented controls behave as ARIA radiogroups with arrow-key navigation, a reset button restores the default forme, and a copy button builds the exact CSS for the current cap-and-quote combination and writes it to the clipboard with an execCommand fallback. A small reusable toast() helper confirms each action. The two-column lab collapses to one under 860px, the body un-justifies under 720px for comfortable narrow reading, and the plate grid stacks down to 360px.

Illustrative UI only — masthead, headlines, bylines, and articles are fictional; not a real news publication.