wormhole-token-list/src/logogen
Evan Gray 09a06a9235 add initial oasis markets 2022-01-05 18:07:19 -05:00
..
base add dexlab markets; include raw link to our logo in markets.json if applicable 2022-01-03 23:57:24 -06:00
components add initial oasis markets 2022-01-05 18:07:19 -05:00
examples logogen: include a few style options 2021-12-29 20:51:43 -06:00
README.md logogen: include a few style options 2021-12-29 20:51:43 -06:00

README.md

Logo generation

Logo properties

  • adds a wormhole logo at the bottom right
  • if symbol has multiple source chains (e.g. USDC), adds a chain logo at the bottom left

Examples:

CAKE:

CAKE

USDTpo:

USDTpo

Instructions

Base logos

Base logos for token TOK should be supplied either by adding TOK.png to src/logogen/base/, or by adding a "logo" entry to the appropriate block for TOK in src/config/token_data.py. If both are present, we'll use the one in src/logogen/base/,

Generating new logos

Run:

npm run gen-logos

This won't write over any existing images in [assets](../../assets]. To overwrite the existing assets:

npm run gen-logos-overwrite

Linking to logos

https://raw.githubusercontent.com/certusone/wormhole-token-list/main/assets/CAKE_wh.png

Styling

A few style choices are included (with examples):

thick_gray (default):

CAKE UST

thin_gray:

CAKE UST

color:

CAKE UST

barecolor:

CAKE UST

These variants are in src/logogen/components.

To generate all the outputs with a different style from the default, run:

python3 gen_logos.py --overwrite --style STYLE

To update the default style, copy one of them to src/logogen/components/wormhole.png.