@dt-dds/icons
v1.0.0-beta.6
Published
The Icons Package simplifies the process of integrating Material Icons into the different applications, providing a convenient way to enhance the visual appeal of your user interface with a wide variety of icons.
Downloads
2,693
Readme
Icons Package
The Icons Package simplifies the process of integrating Material Icons into the different applications, providing a convenient way to enhance the visual appeal of your user interface with a wide variety of icons.
Icons Usage
- Install the package. Example using yarn:
yarn add @dt-dds/icons- Import the css file into your application:
import '@dt-dds/icons/index.css';- Create your icon element like:
<i class="dtui-symbols-outlined">
{code}
</i>Where:
- code: is the name of the icon, that you can find in Material Symbols.
- The class dtui-symbols-outlined should be something like:
font-family: DTUI-icons-outlined;
font-weight: normal;
font-style: normal;
font-size: ${fontSize};
display: inline-block;
line-height: 1;
text-transform: none;
letter-spacing: normal;
word-wrap: normal;
white-space: nowrap;
/* Support for all WebKit browsers. */
-webkit-font-smoothing: antialiased;
/* Support for Safari and Chrome. */
text-rendering: optimizeLegibility;
/* Support for Firefox. */
-moz-osx-font-smoothing: grayscale;
/* Support for IE. */
font-feature-settings: 'liga';You can learn more on how to customize the usage of the fonts in Material Symbols Developer Docs.
In DT-DDS, we are currently supporting two font-family keys:
- DTUI-icons-outlined
- DTUI-icons-sharp
Stack
- TypeScript for static type checking
- ESLint for code linting
- Yarn from managing packages
Commands
yarn lint- Lint all files within this package
Versioning
Follows semantic versioning
© License
Licensed under MIT License
