obyte-icons
v1.1.1
Published
You can access the icons via jsdelivr at the link: `https://cdn.jsdelivr.net/npm/obyte-icons@latest/build/IUSD.svg`. To get inverted icons, add -INV to the name (ex. IUSD-INV.svg).
Readme
obyte-icons
Generating icons for bonded stablecoins
How use it via jsdelivr
You can access the icons via jsdelivr at the link: https://cdn.jsdelivr.net/npm/obyte-icons@latest/build/IUSD.svg. To get inverted icons, add -INV to the name (ex. IUSD-INV.svg).
List of icons: https://cdn.jsdelivr.net/npm/obyte-icons@latest/build/list.json
Steps to create an icon
- Create an icon with attribute viewBox="0 0 88 88" in parent svg element
- Move in icons/stablecoin folder with name like [fund-symbol]-[interest-symbol]-[stable-symbol].svg (Example: SFUSD-IUSDV2-OUSDV2.svg)
- yarn / npm i
- yarn start / npm start
- Save changes
Aliases
If a symbol should reuse an existing icon (for example ETH_2 should look the same as ETH), add it to aliases.json:
{
"ETH_2": "ETH"
}The generator will create ETH_2.svg and ETH_2-INV.svg as copies of the ETH icons and add ETH_2 to list.json. The source symbol must be an existing icon (or an alias declared above it).
