All Projects → uiwjs → Icons

uiwjs / Icons

Licence: mit
The premium icon font for @uiwjs Component Library. https://uiwjs.github.io/icons

Projects that are alternatives of or similar to Icons

Svgtofont
Read a set of SVG icons and ouput a TTF/EOT/WOFF/WOFF2/SVG font.
Stars: ✭ 149 (+50.51%)
Mutual labels:  icons, icon, svg-icons, icon-font, webfont
Coreui Icons
CoreUI Free Icons - Premium designed free icon set with marks in SVG, Webfont and raster formats
Stars: ✭ 1,813 (+1731.31%)
Mutual labels:  svg, icons, svg-icons, icon-font, webfont
React Icomoon
It allows you to simply view the icons in the selection.json file provided by Icomoon.
Stars: ✭ 48 (-51.52%)
Mutual labels:  svg, icons, icon, svg-icons
Linearicons
Linearicons is the highest quality set of line icons, matching with minimalist UI designs in iOS.
Stars: ✭ 64 (-35.35%)
Mutual labels:  svg, icons, icon, webfont
Phosphor React
A flexible icon family for React
Stars: ✭ 97 (-2.02%)
Mutual labels:  svg, icons, svg-icons, icon-font
Tabler Icons
A set of over 1400 free MIT-licensed high-quality SVG icons for you to use in your web projects.
Stars: ✭ 10,858 (+10867.68%)
Mutual labels:  svg, icons, svg-icons, icon
Boxicons
High Quality web friendly icons
Stars: ✭ 1,104 (+1015.15%)
Mutual labels:  svg, icons, svg-icons, icon-font
Phosphor Icons
A flexible icon family for the web
Stars: ✭ 56 (-43.43%)
Mutual labels:  svg, icons, svg-icons, icon-font
Svgsprit.es
Public endpoint to generate SVG Sprites
Stars: ✭ 73 (-26.26%)
Mutual labels:  svg, icons, svg-icons
Icons
All SVG icons available on http://game-icons.net
Stars: ✭ 598 (+504.04%)
Mutual labels:  svg, icons, svg-icons
Browser Logos
🗂 High resolution web browser logos
Stars: ✭ 5,538 (+5493.94%)
Mutual labels:  svg, icons, svg-icons
Evil Icons
Simple and clean SVG icon pack with the code to support Rails, Sprockets, Node.js, Gulp, Grunt and CDN
Stars: ✭ 4,944 (+4893.94%)
Mutual labels:  svg, icons, svg-icons
Jam
Jam icons is a set of SVG icons designed for web projects, illustrations, print projects, etc. Licensed under MIT
Stars: ✭ 398 (+302.02%)
Mutual labels:  svg, icons, svg-icons
Pixo
Convert SVG icons into React components
Stars: ✭ 371 (+274.75%)
Mutual labels:  svg, icons, icon
Alfred Font Awesome Workflow
🎩 Font Awesome workflow for Alfred
Stars: ✭ 714 (+621.21%)
Mutual labels:  icons, svg-icons, webfont
Awesome Icons
A curated list of awesome Web Font Icons
Stars: ✭ 758 (+665.66%)
Mutual labels:  icons, svg-icons, icon-font
Vue Unicons
1000+ Pixel-perfect svg icons for your next project as Vue components
Stars: ✭ 828 (+736.36%)
Mutual labels:  svg, icons, svg-icons
Icons Flat Osx
Free Flat icons For OSX
Stars: ✭ 366 (+269.7%)
Mutual labels:  icons, icon, svg-icons
Unicons
1000+ Pixel-perfect vector icons and Iconfont for your next project.
Stars: ✭ 911 (+820.2%)
Mutual labels:  icons, svg-icons, webfont
Eva Icons
A pack of more than 480 beautifully crafted Open Source icons. SVG, Sketch, Web Font and Animations support.
Stars: ✭ 8,114 (+8095.96%)
Mutual labels:  icons, icon, icon-font

uiw-icons

Packagist Packagist

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

Visit https://uiwjs.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

# v1.x +
npm install uiw-iconfont --save
# v2.x 
npm install @uiw/icons --save

HTML Example

You can use https://uiwjs.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/@uiw/icons/w-icon.css">

Used in Less:

@import "[email protected]/icons/fonts/w-icon.css";

Used in JS:

import '@uiw/icons/fonts/w-icon.css';
// or
import '@uiw/icons/fonts/w-icon.less';

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-icon" !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>

Or manually download and link **@uiw/icons** in your HTML, It can also be downloaded via UNPKG:

<link rel="stylesheet" type="text/css" href="https://unpkg.com/@uiw/icons/fonts/w-icon.css">
<span class="w-icon-adobe"></span>

In Webpack

{
  test: /w-icon\.(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]',
      }
    }
  ]
},

React

Create an Icon component.

import React from 'react';
import svgPaths from '@uiw/icons/fonts/w-icon.json';

const renderSvgPaths = (type) => {
  const pathStrings = svgPaths[type];
  if (pathStrings == null) {
    return null
  }
  return pathStrings.map((d, i) => <path key={i} d={d} fillRule="evenodd" />)
}

export default class Icon extends React.PureComponent {
  render() {
    const { type, color } = this.props;
    if (type == null || typeof type === "boolean") {
      return null;
    }
    return (
      <svg fill={color} viewBox={`0 0 24 24`}>{this.renderSvgPaths(type)}</svg>
    );
  }
}

Use the Icon component:

const demo = () => {
  return (
    <Icon type="heart-on" />
  )
}

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

Created By svgtofont, Licensed under the MIT License.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].