https://github.com/tmaize/svg-css-icon
Nodejs-based tool for convert SVG to css icons
https://github.com/tmaize/svg-css-icon
Last synced: about 1 month ago
JSON representation
Nodejs-based tool for convert SVG to css icons
- Host: GitHub
- URL: https://github.com/tmaize/svg-css-icon
- Owner: TMaize
- Created: 2023-06-21T03:27:20.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2023-07-25T05:40:26.000Z (almost 3 years ago)
- Last Synced: 2025-10-26T13:28:49.192Z (8 months ago)
- Language: JavaScript
- Size: 18.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# svg-css-icon
Nodejs-based tool for convert SVG to css icons
使用 svg 构建 css icon
```
npm install svg-css-icon -g
svg-css-icon --help
svg-css-icon --input test --output test/icon.css --class ic
```
## 预览
[https://tmaize.github.io/svg-css-icon/](https://tmaize.github.io/svg-css-icon/)
## 参考
[聊聊纯 CSS 图标](https://antfu.me/posts/icons-in-pure-css-zh)
[学习了,CSS 中内联 SVG 图片有比 Base64 更好的形式](https://www.zhangxinxu.com/wordpress/2018/08/css-svg-background-image-base64-encode/)