@haloe/icons
TypeScript icon, indicating that this package has built-in type declarations

4.0.0 • Public • Published

Vant Icons

Install

NPM

npm i @vant/icons -S

YARN

yarn add @vant/icons

Document

Contribution

Update Icons

  1. Update assets/icons.sketch
  2. Make a Pull Request

Add New Icon

  1. Add new icon to assets/icons.sketch
  2. Add icon name to src/config.js
  3. Make a Pull Request

woff2base

https://hellogreg.github.io/woff2base/

update

npm publish

vant-icon 更改为iconfont 步骤

  1. 从iconfont下载symbol图标库,且为base64格式的,将图标库的前缀改为van-icon-
  2. 下载完成后,打开iconfont.css,将base64编码复制,并替换/packages/vant-icons/src/encode-woff2.less里面的base编码
  3. 将iconfont.css中的样式复制到common.less中(类似于下面的格式) .van-icon-fullsreen-o:before { content: "\e78b"; }
  4. 将iconfont.json中的图标name筛选出来(控制台.map(d => d.name)),并复制到config.js的basic中
  5. 将node-modules删除,重新安装,将/packages/vant-icons文件夹中的 src,CHANGELOG.md,package.json,README.md放入node-modules/@haloe/icons文件夹中

Readme

Keywords

none

Package Sidebar

Install

npm i @haloe/icons

Weekly Downloads

0

Version

4.0.0

License

MIT

Unpacked Size

21.4 kB

Total Files

8

Last publish

Collaborators

  • dyh333