uiw-iconfont 是基于 svg 图片生成的开源图标库,取材 uiw 组件库, 遵守MIT开源协议。

使用方法

增加 CSS

<link rel="stylesheet" type="text/css" href="node_modules/fonts/w-iconfont.css">

使用于 Less:

@import "~uiw-iconfont/fonts/w-iconfont.css";

note: It has a w-icon- prefix.

<i class="w-icon-apple"></i>

使用 Unicode.

<style>
.iconfont{
  font-family: "w-iconfont" !important;
  font-size: 16px;
  font-style: normal;
  -webkit-font-smoothing: antialiased;
  -webkit-text-stroke-width: 0.2px;
  -moz-osx-font-smoothing: grayscale;
}
</style>
<span class="iconfont">&#59907;</span>

使用于Webpack

{
  test: /w-iconfont\.(eot|ttf|svg)$/,
  use: [
    {
      loader: require.resolve('url-loader'),
      options: { limit: 8192 }
    },
    {
      loader: require.resolve('file-loader'),
      options: {
        name: 'static/fonts/[name].[hash:8].[ext]',
      }
    }
  ]
},

[repo owner=”uiw-react” name=”icons”]