bytedance /IconPark
🍎Transform an SVG icon into multiple themes, and generate React icons,Vue icons,svg icons
★ 9,033⑂ 555👁 2⑃ 30● 966▤ 1
More from this author
+0
Daily
9,033
stars
555
forks
2
watchers
30
prs
966
issues
1
releases
README
IconPark
English | 简体中文
Introduction
IconPark gives access to more than 2000 high-quality icons, and introduces an interface for customizing your icons.
Instead of using various SVG source files to achieve different themes, we implement a technology transforming attributes of a single SVG source file into multiple themes. Besides, we provide cross-platform components, including react-icons, vue-icons and svg-icons.
So whether you are a designer or a developer, you can use them in your designs or your projects for free.
Packages
Generate Cross-platform Components
Find packages in packages folder. NPM packages make it painless to import icon components to your project.
| Name | Github link | NPM link |
| ------- | --- | --- |
| React Icons | React Component | @icon-park/react |
| Vue2 Icons | Vue Component for old Vue2.0 | @icon-park/vue |
| Vue3 Icons | Vue Component for Vue3.0 | @icon-park/vue-next |
| SVG Icons | Pure SVG String| @icon-park/svg |
Multiple themes
Basic coloring can be done by setting two attributes on the node: fill and stroke. Fill sets the color inside the object while stroke sets the color of the line drawn around the object. By changing this two attributes, you can transform a single SVG icon into different themes, including: outline, filled, two-tone, multi-color. Take the icon named camera for example:
Source file: !
After Transforming:
| React icons | Preview | Theme |
| ---- | --- | --- |
| | | Outline theme |
| | | Filled theme |
| | | Two-tone theme |
| | | Multi-color theme |
Embed IconPark in your project
If you need to use additional information such as icon name, author, category, label and creation time, you can use the icons.json file located in the root directory of each NPM.
Website
Customization
Here is the website of IconPark. Each icon is hand-coded within a 48x48 grid, using SVG stroke giving the maximum flexibility on styling. You can adjust the color, size, stroke-width, stroke-linejoin, stroke-linecap and other attributes to meet your needs.
Convenient Online Tools
You can use them in Figma, Sketch, Photoshop, PPT, etc.
- Copy SVG
- Copy React Icon Component
- Copy Vue Icon Component
- Download PNG
- Download SVG
Changelog
CHANGELOG.en-US | CHANGELOG.简体中文Top issues
#376开发环境使用链接引入图标可以正常显示,服务器打包后引入报错13 comments · 2021-12-01#503强烈建议增加字体图标的使用方式!!!12 comments · 2022-06-22#74背景不是完全透明的啊11 comments · 2020-12-24#183希望支持 字体文件格式 uniapp 等小程序 不支持svg格式8 comments · 2021-03-24#479可以私有部署么?7 comments · 2022-06-10#674性别ui6 comments · 2023-03-10#667自建项目加载不了,有遇到的同学吗?果真不维护了?6 comments · 2023-03-01#113组件尺寸偏差6 comments · 2021-01-16