@trilogy-ds/assets
v0.0.21-esm-cjs
Published
Trilogy assets include all Open Source Fonts & Icons
Downloads
3,471
Readme
@trilogy-ds/assets
@trilogy-ds/assets is a direct dependency of @trilogy-ds/react. It includes all open-source fonts and icons from Trilogy.
It provides to the <Icon/> component, the path information from the IconPath.ts file (which is the paths to the icons) and the IconName file (which is an enum for the icon names).
Installation
Download the package by running:
npm install @trilogy-ds/assets
Scripts 💻
This package includes the following scripts using npm:
optimise:icons: This script uses SVGO to optimize all icons in theassets/icons/alldirectory. The optimized icons are stored inlib/icons/all.build: This script runs theoptimise:iconsscript, compiles Typescript files, and finally, copies all fonts fromassets/fonts/tolib/fonts/.
License
This package is licensed under the ISC license.
