Trilogy assets include all Open Source Fonts & Icons
npm install @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 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).
Download the package by running:
npm install @trilogy-ds/assets
This package includes the following scripts using npm:
1. optimise:icons: This script uses SVGO to optimize all icons in the assets/icons/all directory. The optimized icons are stored in lib/icons/all.
2. build: This script runs the optimise:icons script, compiles Typescript files, and finally, copies all fonts from assets/fonts/ to lib/fonts/.
This package is licensed under the ISC license.