postcss-plugins
A PostCSS plugin monorepo focused on unit conversion and responsive styling utilities. This repo hosts multiple plugins plus shared utilities used across them.
Packages
- postcss-plugin-shared - Shared utilities for option merging, prop matching, regex helpers, and more.
- postcss-rem-to-responsive-pixel - Convert
remtopxorrpx. - postcss-rem-to-viewport - Convert
remto viewport units (vwand others). - postcss-pxtrans - Convert
pxtorpx/rem/vw/pxwith platform presets and directive comments. - postcss-units-to-px - Convert multiple CSS units to
pxwith configurable rules.
Each package has its own README with usage and configuration details.
Requirements
- Node.js >= 20
- pnpm (workspace managed)
Development
pnpm install
pnpm devUseful scripts:
pnpm build- build all packagespnpm lint- lint all packagespnpm test- run tests with coverage
Contributing
Contributions are welcome. See CONTRIBUTING.md for details.
Contributors
Thanks to all contributors!
Authors
ice breaker 1324318532@qq.com
License
Distributed under the MIT License. See LICENSE for more information.
On this page
Languages
TypeScript95.9%JavaScript3.6%Dockerfile0.5%Shell0.1%
MIT License
Created September 4, 2024
Updated February 4, 2026