@covisint/cui-icons
v1.4.2
Published
Icon Library for core Covisint UI use.
Downloads
7
Readme
Cui-Icons
Icon Library for Core Covisint UI Functionality
Adding Icons to the Covisint UI Icon Library
- Add your icons to
src/resources/logos
orsrc/resource/icons
depending on what type of icon you're adding. - Jenkins will run
node generateSvgList.js
andgrunt build
which will compile all the icons into 2 different output files -dist/icons/icons-out.svg
anddist/logos/logos-out.svg
. These will be availabe to consumers of this library (bower install --save cui-icons
).
Notes:
- Your icons will need to follow a certain syntax to be accepted by the build task:
- No hardcoded fills (or it won't be customizable with css)
- All the paths should be wrapped in a group with an id equal to its filename. (everything outside of that group will be ignored)
Usage
Replace #covisint-logo with the name of your svg and set viewBox to your svg's size.
<svg class="cui-header__svg-logo" viewBox="0 0 640 124"><use xlink:href="bower_components/cui-icons/dist/logos/logos-out.svg#covisint-logo"></use></svg>