Goal
With T296998: [Epic] Define the system's typographic styles and scale resolved we've been also defining typographic combinators for font-size and line-height.
Proposal
We're adding those combinators as public Codex Less mixins
Previous work
WiKit used similar mixins.
Open questions
Nomenclature:
- WiKit's approach was limited and could be confusing in application. Having something like
.supplementary-text { color: @color-base; .description(); margin: @spacing-25 0; }
doesn't really tell what .description() contains.
.font- prefix would be somewhat misleading as we care about font-family, line-height and color in those.
.typo- is in English language slightly hilarious, but might be our best way.
Acceptance criteria for done
- Provide all Codex Figma typography combinators in code