Prose

CSS scope for long-form MDX content

stable v1.1.0

Preview

Heading level 2

How vexingly quick daft zebras jump. The five boxing wizards jump quickly at dawn. Amazingly few discotheques provide jukeboxes, and yet the line holds an 18px body without fatigue.

Quiere la boca exhausta vid, kiwi, piña y fugaz jamón.

El pingüino Wenceslao hizo kilómetros bajo exhaustiva lluvia y frío; añoraba a su querido cachorro.

Heading level 3

Jovencillo emponzoñado de whisky: ¡qué figurota exhibe! La cigüeña tocaba el saxofón detrás del palenque de paja.

The real CSS from prose.css (the canon), with no overrides: the sizes you see (h2 40px, body 18px, blockquote 28px Aleo italic) are the production ones. In real use the container centers at 90ch.

Elements

ElementFamilyDesktopMobile
h1Aleo64px / 50036px
h2Aleo40px / 40028px
h3Aleo32px / 40024px
pGeorama18px / 40017px
strongGeorama18px / 50017px
blockquoteAleo28px / 400 italic22px
tableGeorama16px16px
figcaptionGeorama14px14px

Constraints

  • No @tailwindcss/typography. All styles are custom.
  • Bold = weight 500. Never 700.
  • Max-width 90ch.
  • Only two MDX components: Lead and Figure/Caption.

Decisions

DecisionWhy
90ch max-width65ch was too narrow for an 18px body
Strong at weight 500Georama 700 is too heavy
Blockquote in Aleo italicSets it apart from the body by a change of typeface, not just a border
Fallback for an orphan figcaptionPrevents visual breakage if the figure wrapper is forgotten