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. observed · 2026-08-28
Health v2 · maintenance only
23/100
- Activity 0
- Release rhythm 8
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 3880
- days_rel: n/a
- days_push: 806
- n_releases_24m: 0
Adoption not part of the score
3153 stars · 407 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
A PostCSS plugin that automatically converts pixel (px) units in CSS into viewport units (vw, vh, vmin, vmax). It enables building scalable interfaces from a single design size, especially for mobile-first responsive layouts.
Use cases
- convert px to vw units in css
- make mobile design scale across screen sizes
- responsive layout from one fixed-width design
- postcss plugin for viewport units
- scale css for different displays automatically
- convert pixel units to vw for taro project
When to choose
- You have a fixed-width design (e.g., 320px or 750px) and want the whole interface to scale fluidly
- You are building mobile web apps or mini-programs (e.g., with Taro) that need viewport-based sizing
- You want automatic, configurable conversion with ignore comments, selector blacklists, and landscape support
When to avoid
- You use fluid layouts already written in rem/em or native responsive units
- You need pixel-perfect rendering at fixed breakpoints rather than proportional scaling
- Your project does not use a PostCSS-based build pipeline
Facets
plugin · maturity stable
css-framework build-tool developer-tools frontend web-development mobile-development cross-platform postcss-plugin viewport-units responsive-design mobile-first css-units px-to-vw nodejs
2 sources
- readme: https://github.com/evrone/postcss-px-to-viewport · fetched 2026-08-28 · 4b7609aa872f
- registry_npm: https://registry.npmjs.org/postcss-px-to-viewport · fetched 2026-08-29 · 6998dcbdde04
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| evrone/postcss-px-to-viewport | main | 23 |
For agents
markdown · JSON · MCP: product_card(name="evrone/postcss-px-to-viewport")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem