Page MenuHomePhabricator

Explore different ways Codex components could behave with different font "modes"
Closed, ResolvedPublic

Description

Context

Based on our latest proposal to create a new type scale with specifically defined font-size and line-height combinations, and to then adapt components to adjust padding and therefore sizing based on different body font size options, we need to explore how each component changes based on these varying font scales.

Figma file

Event Timeline

CCiufo-WMF renamed this task from Explore different ways Codex components could behave with different base font sizes to Explore different ways Codex components could behave with different font "modes".Apr 30 2024, 4:26 PM

The type scale defined in T363850 has been tested in Figma, exploring how components can proportionally adapt to different body font sizes. This testing provided examples for body font sizes of 14, 16, 18, and 20 and a sample can be seen below.

type-variables-ezgif.com-video-to-gif-converter.gif (567×600 px, 2 MB)

Although explored in all 4 existing font modes, we are currently considering building for 14 and 16 in an MVP and focusing our attention on the elements outside of the article body. This MVP will address how components and a type scale are handled in a skin and screen size agnostic way, but adapt to where the body font size is set to 14 or 16, i.e. Vector and MinervaNeue, and typically on desktop and mobile screen sizes.

This proposal would introduce new primitive and component tokens to handle the adaptability of body font sizes, laid out in this spreadsheet.