Skip to content
/ icons Public
forked from uiwjs/icons

The premium icon font for @uiw-react Component Library.

Notifications You must be signed in to change notification settings

b-xiang/icons

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

57 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Icon Font

Packagist Packagist

The premium icon font for uiw Component Library. Designed by @liwen0526.

Visit https://uiw-react.github.io/icons/ and check out the search feature, which has keywords identifying common icon names and styles. For example, if you search for "arrow" we call up every icon that could possibly be used as an arrow. We've also included each icon's class name for easy copy / pasting when you're developing!

They are free to use and licensed under MIT. We intend for this icon pack to be used with uiw, but it’s by no means limited to it. Use them wherever you see fit, personal or commercial.

Installation

npm install uiw-iconfont --save

HTML Example

You can use https://uiw-react.github.io/icons/ to easily find the icon you want to use. Once you've copied the desired icon's CSS classname, simply add the icon and icon's classname, such as apple to an HTML element.

You need link CSS

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

Used in Less:

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

note: It has a w-icon- prefix.

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

Or use the Unicode, You can use Unicode website to easily find the Unicode icon you want to use.

<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>

In 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]',
      }
    }
  ]
},

Development

Run the npm install to install the dependencies after cloning the project and you'll be able to:

To build *.svg *.ttf *.woff *.eot files

npm run font

To build site and push gh-pages branch

npm run start

License

Licensed under the MIT License.

About

The premium icon font for @uiw-react Component Library.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • HTML 69.1%
  • CSS 21.4%
  • JavaScript 8.7%
  • Shell 0.8%