Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/simon-he95/transform-to-unocss-core
- Owner: Simon-He95
- License: mit
- Created: 2023-08-19T07:28:51.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-08-14T02:57:10.000Z (3 months ago)
- Last Synced: 2024-10-14T06:27:47.125Z (23 days ago)
- Topics: transform-to-unocss-core, trasnform-to-unocss
- Language: TypeScript
- Homepage: https://github.com/Simon-He95/transformToUnocss
- Size: 219 KB
- Stars: 9
- Watchers: 1
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: license
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)
![sponsors](https://www.hejian.club/images/sponsors.jpg)