A design kit in patina and print

Blog

Pictures and films inside a post

A post written in MDX can hold a gallery, a video or a card for another post between its paragraphs. A gallery or a video can open out to the width of the page; the rest keep to the column of text.

A post here is one centered column, 45rem wide, like a page of a book. Markdown fills it with text. Written in MDX instead, a post can bring in a few of the kit’s components and set them between its paragraphs. Most of them stay in that column. A gallery or a video can open out.

A Gallery shows each picture whole, at its own shape, across the width of the page, centered on the same line as the text. These are rows, so the bottom edges line up across each row, and the captions sit under them in the kit’s italic.

The text picks up again under it, back in the centered column.

A film from YouTube or Vimeo

A VideoEmbed takes the address you’d share and a title for screen readers. The YouTube player here runs the width of the page, like the gallery. With width="text", the Vimeo one below stays in the column. Each loads only as it nears the screen. Nothing plays until the reader presses play. YouTube comes from its no-cookie address and Vimeo with Do Not Track on, so neither sets a tracking cookie before then.

Creatures of Habit, directed by Nate Laverty, 2025. From YouTube.
The same film from Vimeo, in the column.

A player is 16:9 unless it’s told otherwise. This film is a little wider, 2048 by 1080, so the YouTube player takes ratio={2048 / 1080}. Vimeo shows the film’s poster at the poster’s own shape, 2:1, with black around it in a player of any other shape, so the Vimeo player takes ratio={2}: the poster then fills it, and the film plays with a thin black edge at each side.

Another post

A PostCard points to another post. It takes the post’s file name and finds its title, summary, date and cover itself, so the card stays right when that post changes. Only its title is a link.

Related post

The green that copper grows

How a pigment made with vinegar gave this theme its name, and why the kit keeps copper beside it.

· Color · 1 min read

Read next

The scotch rule

Printers have long set a thick line and a thin one side by side. In this kit that pair opens every section.

· Layout · 1 min read