evrone / postcss-px-to-viewport

A plugin for PostCSS that generates viewport units (vw, vh, vmin, vmax) from pixel units. The best choice to create a scalable interface on different displays by one design size.
https://evrone.com/postcss-px-viewport
MIT License
3k stars 405 forks source link

Add the 'fontViewportUnit' option。 #7

Closed weineel closed 5 years ago

weineel commented 6 years ago

When switching from a vertical screen to a horizontal screen, the font size is more appropriate to use vmin. So, I add the 'fontViewportUnit' option to individually configure the unit of font.