DEV Community

Cover image for Introducing postcss-px-to-viewport: open-source software to create scalable interfaces on any display
Rick
Rick

Posted on

Introducing postcss-px-to-viewport: open-source software to create scalable interfaces on any display

Most mobile and cross-platform web developers have encountered the problem at some point: you need your web app to scale neatly to the device screen size, regardless of which of the many thousands of devices there are out there, but your units only have one design layout width, mainly mobile.

Grappling with this problem in one of our projects our leading frontend developer Dmitriy Karpunin came up with the idea of using a post-processor to convert CSS values from one set of units to another, and that’s how postcss-px-to-viewport, a plug-in for PostCSS that converts px values to viewport units (vw, vh, etc.), was born.

Learn more about a new tool for creating scalable interfaces on any display

Top comments (0)