@talenra/icons
v21.2.4
Published
Icons for Talenra
Downloads
288
Maintainers
Readme
Talenra – Icons library
Icons for Talenra.
This document contains information on how to use the library. If you're looking for instructions for library developers (including creating and adding new icons), please check the developers guide.
Table of Contents
Installation and Usage
Add the @talenra registry to your .npmrc.
npm config set @talenra:registry=https://registry.npmjs.org/
npm login --scope=@talenraInstall the package.
npm i @talenra/iconsImport stylesheet
@use '@talenra/icons/styles';The snippet above shows how to import the stylesheet in a SCSS setup. As the stylesheet is pure CSS and can be used in any environment.
Apply the talenra-icon Classes
Add a HTML element (typically span or i) and assign the base class talenra-icon plus the modifier class used for the icon you need to display (e.g. talenra-icon--add for the "add" icon).
<body>
<i class="talenra-icon talenra-icon--add"></i>
</body>Using Duplex Icons (Two Colors)
Follow the steps above and add the extra class talenra-icon-duplex. Note that duplex icons use the suffix -duplex in their modifier class name.
<i class="talenra-icon talenra-icon-duplex talenra-icon--person-checkmark-duplex"></i>You can set the colors globally for all duplex icons…
.talenra-icon-duplex {
--color-primary: #000;
--color-secondary: #999;
}… or individually per icon using the style attribute.
<i
class="talenra-icon talenra-icon-duplex talenra-icon--person-checkmark-duplex"
style="--color-primary: #000; --color-secondary: #999;"
></i>Appendix
Icon requests
Get in touch with us, if you're looking for an icon that's not part of this library. Preferred communication channel is the "Talenra Support". If you do not have access to the channel, get in touch by email (s. below).
Version history
Please refer to the Changelog for a complete version history.
License
This project is licensed under the ISC License - see the LICENSE file for details.
Contact
Talenra Workspace
[email protected]
