@defisaver/token-icons
v0.0.49DFS Token Icons
Package containing a registry of token icons to complement the tokens package. Because this package imports and exposes .svg files directly, it is meant to be used in a webpack (or similar) environment, with a loader configured for .svg files.
Adding new icons
- Add .svg file to icons/ folder using token symbol as the name;
- If token symbol contains non-alphanumeric characters, replace them with underscore and make sure to add a comment on the first line containing the actual token name (See ETH2x-FLI and cWBTC Legacy);
- Run
node scripts/generateIconsIndex
to generate the index.
npm i @defisaver/token-icons
Metadata
- ISC
- Whatever
- Unknown
- released 10/17/2024