Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

jk-icons

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jk-icons

A set of SVG symbols and font icons for web.

  • 0.2.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

JK-ICONS: Find & Copy Playing

Installation

npm install jk-icons

Import

  • Webpack

    Make sure install url-loader, file-loader to resolve iconfonts files or svg files, and install target *-loader to import icon stylesheets, like stylus-loader, less-loader, etc.

  • LESS

    @import (css) "path/to/jk-icons/lib/jk-icons.css";
    
  • Stylus

    @import 'path/to/jk-icons/lib/jk-icons.styl'
    
  • Gulp

    Move the fonts with Gulp

    gulp.task('move-fonts', function () {
      gulp.src('node_modules/jk-icons/lib/fonts/**/*')
        .pipe(gulp.dest('path/to/fonts/'))
    })
    

Usage

  • Class Name

    Ensure you've import relative stylesheets, and use it within existed icons

    <span class="icon icon-{Icon Name}"></span>
    
  • SVG Symbols

    Inline combined SVG reference into body, then drop a <use> element snippet

    <svg role="img">
      <use xlink:href="#{Icon Name}></use>
    </svg>
    

    Or directly link the external svg-symbols file:

    <svg role="img">
      <use xlink:href="{Url}/svg-symbols.svg#{Icon Name}"></use>
    </svg>
    

Development

New version of JK-Icons required a valid Sketch file to generate all resources, please make sure you have rights to create more assets, or you can ask designers to distribute that.

All build process can be found in gulpfile.babel.js and local development is required for webpack.

License

MIT

FAQs

Package last updated on 20 Aug 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc