Background
We would like to audit all existing font sizes across the Vector 2022 and Minerva skins. This audit will help us in determining how to apply future typographical changes.
Pre-work
from T313828: [EPIC] Typography: improve typography and allow for variable typography settings
Pre-reading
How this will impact VisualEditor
Catalogue of font sizes in Vector 2022
Computed font sizes based on the browser default 16px font size. Starting from the smallest.
11.76px | |
---|---|
12px | |
---|---|
sidebar | footer |
12.888px | |
---|---|
sitesub | mw-notify |
13px | |
---|---|
Page toolbar | Page toolbar dropdowns |
14px | |||||
---|---|---|---|---|---|
Search | Header dropdowns | language button | Table of contents | Sticky header dropdown | content <H4> |
16px |
---|
sticky header language button |
Larger font sizes
16.8px | 21px | 24px | 28.88px |
---|---|---|---|
content <H3> | content <H2> | Sticky header page title | content <H1> |
Goal
- Define consistent font sizes for UI elements (preferably just two: small and normal)
- Define a consistent typographic scale for wiki content
- Convert font sizes and applicable sizes to rem's instead of em's (T261334).
Proposal
TBD