@trilogy-ds/assets
v0.0.1-beta-77
Published
Trilogy assets include all Open Source Fonts & Icons
Downloads
498
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/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/
.
License
This package is licensed under the ISC license.