A PostCSS plugin monorepo focused on unit conversion and responsive styling utilities. This repo hosts multiple plugins plus shared utilities used across them.
Read the full bilingual documentation at postcss.icebreaker.top.
- 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-rule-unit-converter - Unified rule-driven unit conversion plugin with built-in common presets. See also its cookbook.
- postcss-units-to-px - Convert multiple CSS units to
pxwith configurable rules.
Each package has its own README with usage and configuration details.
- Node.js >= 22.22.1
- pnpm (workspace managed)
pnpm install
pnpm devDocumentation site commands:
pnpm docs:dev
pnpm docs:build
pnpm docs:previewRelease publishing uses npm Trusted Publishing with GitHub Actions OIDC. See
docs/npm-trusted-publishing.md for the
package-level configuration.
Useful scripts:
pnpm build- build all packagespnpm lint- lint all packagespnpm test- run tests with coverage
Contributions are welcome. See CONTRIBUTING.md for details.
Thanks to all contributors!
ice breaker 1324318532@qq.com
Distributed under the MIT License. See LICENSE for more information.