https://github.com/sonofmagic/postcss-plugins
icebreaker's postcss-plugins
https://github.com/sonofmagic/postcss-plugins
Last synced: about 2 months ago
JSON representation
icebreaker's postcss-plugins
- Host: GitHub
- URL: https://github.com/sonofmagic/postcss-plugins
- Owner: sonofmagic
- License: mit
- Created: 2024-09-04T13:46:10.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2026-04-18T05:00:56.000Z (2 months ago)
- Last Synced: 2026-04-18T06:31:15.438Z (2 months ago)
- Language: TypeScript
- Size: 1.14 MB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
- Security: SECURITY.md
Awesome Lists containing this project
README
# 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](packages/postcss-plugin-shared) - Shared utilities for option merging, prop matching, regex helpers, and more.
- [postcss-rem-to-responsive-pixel](packages/postcss-rem-to-responsive-pixel) - Convert `rem` to `px` or `rpx`.
- [postcss-rem-to-viewport](packages/postcss-rem-to-viewport) - Convert `rem` to viewport units (`vw` and others).
- [postcss-pxtrans](packages/postcss-pxtrans) - Convert `px` to `rpx/rem/vw/px` with platform presets and directive comments.
- [postcss-rule-unit-converter](packages/postcss-rule-unit-converter) - Unified rule-driven unit conversion plugin with built-in common presets. See also its cookbook.
- [postcss-units-to-px](packages/postcss-units-to-px) - Convert multiple CSS units to `px` with configurable rules.
Each package has its own README with usage and configuration details.
## Requirements
- Node.js >= 20
- pnpm (workspace managed)
## Development
```bash
pnpm install
pnpm dev
```
Useful scripts:
- `pnpm build` - build all packages
- `pnpm lint` - lint all packages
- `pnpm test` - run tests with coverage
## Contributing
Contributions are welcome. See [CONTRIBUTING.md](CONTRIBUTING.md) for details.
## Contributors
Thanks to [all contributors](https://github.com/sonofmagic/postcss-plugins/graphs/contributors)!
## Authors
ice breaker <1324318532@qq.com>
## License
Distributed under the MIT License. See [LICENSE](LICENSE) for more information.