Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/simon-he95/transform-to-unocss-core

core for transform-to-unocss
https://github.com/simon-he95/transform-to-unocss-core

transform-to-unocss-core trasnform-to-unocss

Last synced: 10 days ago
JSON representation

core for transform-to-unocss

Awesome Lists containing this project

README

        

## transform-to-unocss-core
从[transform-to-unocss](https://github.com/Simon-He95/transformToUnocss)中抽离出核心代码,方便直接在浏览器中调用

## Api
- toUnocss
- 用于行内属性
- 使用:toUnocss('width:100px', isRem) isRem 为true时,会将px转换为rem
- transformStyleToUnocss
- 用于行内属性
- 使用:transformStyleToUnocss("width:100px;height:100px;") isRem 为true时,会将px转换为rem[100px]"
- toUnocssClass
- 用于类名
- 使用:toUnocssClass('width:100px', isRem) isRem 为true时,isRem 为true时,会将px转换为rem

## License

[MIT](./LICENSE) License © 2022 [Simon He](https://github.com/Simon-He95)

Buy Me A Coffee

![sponsors](https://www.hejian.club/images/sponsors.jpg)