Neverending Programming Mistakes

    @opuscapita/svg-icons

    1.1.5 • Public • Published

    OpusCapita svg icons

    Synopsis

    Package provide an unified library of SVG icons. Initially based on Google Material Icons

    Motivation for creating this library

    Font-based icons like font-awesome have a lot of limitations:

    • font-based icons is a global dependency
    • font-based icons are not extendable. You have no chance to easilly add a new icon
    • Different browser have different font render engines

    Related articles on this topic

    Difference from base Google Material Icons library

    • Much reduced resulting package size (~60MB vs ~500KB)
    • Icon files paths normalized to [package-name]/lib/[icon-name]
    • Removed hardcoded color values in a few icons

    Usage

    Installation

    npm install --save -E @opuscapita/svg-icons

    Import an icon using webpack

    let buildIcon = require('!!raw-loader!@opuscapita/svg-icons/lib/build.svg');

    In this way you get a raw .svg file content.

    If require not working, ensure raw-loader installed.

    Contributors

    Kirill Volkovich
    Alexey Sergeev

    Your contribution is welcome. We need YOU! 🤘

    License

    Apache License, Version 2.0. See LICENSE for the full license text.

    Keywords

    none

    Install

    npm i @opuscapita/svg-icons

    DownloadsWeekly Downloads

    1,819

    Version

    1.1.5

    License

    Apache-2.0

    Unpacked Size

    370 kB

    Total Files

    958

    Last publish

    Collaborators

    • elaczapiewska
    • jarkko.rouvinen
    • bo-kh
    • pdetmer
    • janek.bug
    • alexeysergeev
    • ilkkalehtinen
    • havantkim
    • eriihine
    • tamkov-sc
    • kwierchris
    • elefantino
    • samikarj
    • dsanko
    • dmitrydivin
    • alexanderdanilov
    • egor.stambakio
    • jenni
    • ocmachineuser
    • lukaszkepa
    • naniantero
    • nkovalenko-sc
    • jluukka
    • zjuice
    • adam-dziomdziora-cybercom
    • kaputse
    • dmitriy.sanko
    • nczeranka
    • ocautomation
    • maciej-wakula-opuscapita