@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).
Download the package by running:
npm install @trilogy-ds/assets
This package includes the following scripts using npm:
-
optimise:icons
: This script uses SVGO to optimize all icons in theassets/icons/all
directory. The optimized icons are stored inlib/icons/all
. -
build
: This script runs theoptimise:icons
script, compiles Typescript files, and finally, copies all fonts fromassets/fonts/
tolib/fonts/
.
This package is licensed under the ISC license.