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
2.99k stars 401 forks source link

How do I dynamically modify the ViewPortWidth configuration? #94

Open Wuou opened 3 years ago

Wuou commented 3 years ago

How do I dynamically modify the ViewPortWidth configuration? I want to dynamically modify the RPX ratio to dynamically modify the font size

christianlemmers commented 3 years ago

I would also like to know. So for instance I'd like to use a base ViewPortWidth of 1920px, but at @media (max-width: 992px) i'd like to use 992px as ViewPortWidth.

hemengke1997 commented 1 year ago

try https://github.com/hemengke1997/postcss-pxtoviewport