In order to support variable font-size in Minerva Neue, we should implement CSS custom properties as was done in T348984 for Vector.
The difference between Minerva and Vector however, is that Minerva already has a variable font-size implementation via the Special:MobileOptions page
and it also supports Apple's Dynamic Type feature for iOS in resources/skins.minerva.base.styles/content/main.less.
When implementing these initial CSS custom properties, they should be compatible with these existing font-scaling methods.
New font-sizes per T356339
Standard: font-size: 16px, line-height: 24px
Medium: font-size 18px, line-height: 27px
Large: font-size: 20px, line-height: 30px
- On Special:MobileOptions there are 3 options for font size on Minerva
- Options Should represent Default, small, and large
- Options Names to match the ones in Vector