Svg set of web3 icons and utils for easy generation and use.
Package with some of web3 assets, chains and web3 wallets icons for easy use in the React.js ecosystem. Described in more detail here.
npm i @bgd-labs/react-web3-icons
yarn add @bgd-labs/react-web3-icons
pnpm add @bgd-labs/react-web3-icons
- Add new
svg
icon files tosrc/assets
folder - Naming convention is
[symbol]_mono.svg
and[symbol]_full.svg
- Prepare a metadata file in
src/assets
folder with the same name as the icon file, but with.json
extension:
{
"type": ["asset"],
"symbol": "aave",
"name": "Aave Token",
"aliases": [
"AAVE",
"AAVE.e"
],
"variations": [
"aToken",
"stataToken"
]
}
- Add new
svg
icon files tosrc/assets
folder - Naming convention is
[chainName.replaceAll(/\s/g, '').toLowerCase()].svg
- Prepare a metadata file in
src/assets
folder with the same name as the icon file, but with.json
extension:
{
"type": ["chain"],
"chainName": "Ethereum",
"chainId": 1
}
- Add new
svg
icon files tosrc/assets
folder - Naming convention is
[walletName.replaceAll(/\s/g, '').toLowerCase()].svg
- Prepare a metadata file in
src/assets
folder with the same name as the icon file, but with.json
extension:
{
"type": ["wallet"],
"walletName": "MetaMask",
"identityFlag": "isMetaMask"
}
- Add new
svg
icon files tosrc/assets
folder - Naming convention is
[brandName.toLowerCase()].svg
- Prepare a metadata file in
src/assets
folder with the same name as the icon file, but with.json
extension:
{
"type": ["brand"],
"brandName": "Lido",
"aliases": ["0x4e033931ad43597d96D6bcc25c280717730B58B1"]
}
- Add new
svg
icon files tosrc/assets
folder - Naming convention is
[symbol]_mono.svg
and[symbol]_full.svg
- Prepare a metadata file in
src/assets
folder with the same name as the icon file, but with.json
extension:
{
"type": ["asset", "chain"],
"symbol": "arb",
"chainId": 42161,
"name": "Arbitrum",
"aliases": [
"ARB"
],
"variations": [
"aToken",
"stataToken"
]
}
- Add new
svg
icon files tosrc/assets
folder - Naming convention is
[symbol]_mono.svg
and[symbol]_full.svg
- Prepare a metadata file in
src/assets
folder with the same name as the icon file, but with.json
extension:
{
"type": ["asset", "wallet"],
"symbol": "1inch",
"identityFlag": "isOneInchIOSWallet",
"name": "One inch Network",
"walletName": "1inch Wallet",
"aliases": [
"1INCH"
],
"variations": [
"aToken",
"stataToken"
]
}
- Add new
svg
icon files tosrc/assets
folder - Naming convention is
[symbol]_mono.svg
and[symbol]_full.svg
- Prepare a metadata file in
src/assets
folder with the same name as the icon file, but with.json
extension:
{
"type": ["asset", "chain", "wallet"],
"symbol": "wbnb",
"chainId": 56,
"identityFlag": "bbcSignTx",
"name": "Wrapped BNB",
"chainName": "BNB Smart Chain",
"walletName": "Binance Smart Wallet",
"aliases": [
"WBNB"
],
"variations": [
"aToken",
"stataToken"
]
}
- Generate icons and react components, run:
pnpm generate
To run docs website locally:
pnpm --filter docs dev
2024 BGD Labs