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
svgicon files tosrc/assetsfolder - Naming convention is
[symbol]_mono.svgand[symbol]_full.svg - Prepare a metadata file in
src/assetsfolder with the same name as the icon file, but with.jsonextension:
{
"type": ["asset"],
"symbol": "aave",
"name": "Aave Token",
"aliases": [
"AAVE",
"AAVE.e"
],
"variations": [
"aToken",
"stataToken"
]
}- Add new
svgicon files tosrc/assetsfolder - Naming convention is
[chainName.replaceAll(/\s/g, '').toLowerCase()].svg - Prepare a metadata file in
src/assetsfolder with the same name as the icon file, but with.jsonextension:
{
"type": ["chain"],
"chainName": "Ethereum",
"chainId": 1
}- Add new
svgicon files tosrc/assetsfolder - Naming convention is
[walletName.replaceAll(/\s/g, '').toLowerCase()].svg - Prepare a metadata file in
src/assetsfolder with the same name as the icon file, but with.jsonextension:
{
"type": ["wallet"],
"walletName": "MetaMask",
"identityFlag": "isMetaMask"
}- Add new
svgicon files tosrc/assetsfolder - Naming convention is
[brandName.toLowerCase()].svg - Prepare a metadata file in
src/assetsfolder with the same name as the icon file, but with.jsonextension:
{
"type": ["brand"],
"brandName": "Lido",
"aliases": ["0x4e033931ad43597d96D6bcc25c280717730B58B1"]
}- Add new
svgicon files tosrc/assetsfolder - Naming convention is
[symbol]_mono.svgand[symbol]_full.svg - Prepare a metadata file in
src/assetsfolder with the same name as the icon file, but with.jsonextension:
{
"type": ["asset", "chain"],
"symbol": "arb",
"chainId": 42161,
"name": "Arbitrum",
"aliases": [
"ARB"
],
"variations": [
"aToken",
"stataToken"
]
}- Add new
svgicon files tosrc/assetsfolder - Naming convention is
[symbol]_mono.svgand[symbol]_full.svg - Prepare a metadata file in
src/assetsfolder with the same name as the icon file, but with.jsonextension:
{
"type": ["asset", "wallet"],
"symbol": "1inch",
"identityFlag": "isOneInchIOSWallet",
"name": "One inch Network",
"walletName": "1inch Wallet",
"aliases": [
"1INCH"
],
"variations": [
"aToken",
"stataToken"
]
}- Add new
svgicon files tosrc/assetsfolder - Naming convention is
[symbol]_mono.svgand[symbol]_full.svg - Prepare a metadata file in
src/assetsfolder with the same name as the icon file, but with.jsonextension:
{
"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 generateTo run docs website locally:
pnpm --filter docs dev2024 BGD Labs