OpusCapita SVG Icons
npm install @opuscapita/svg-iconsPackage provide an unified library of SVG icons.
Initially based on Google Material Icons
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
* Chris Coyier (CSS-Tricks and codepen.io co-founder):
* Lars Kappert :
Why and how I’m using SVG sprites over fonts for icons
[package-name]/lib/[icon-name]npm install --save -E @opuscapita/svg-icons``js`
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.
| | Kirill Volkovich |
| :---: | :---: |
| | Alexey Sergeev |
Your contribution is welcome. We need YOU! :metal:
Apache License, Version 2.0. See LICENSE for the full license text.