Open sangdth opened 7 years ago
Btw, I don't know how to start working on this despite I really want to. Could somebody help me out? Something like, where should I start? Which document I should read first? What language or knowledge I should learn first? I can self-study, but I really need help to kick-start.
I checked the source code, and saw that there are many React createElement('path', {...})
, I think that your code takes the svg files and "translate" them into code?
Drop the SVG inside of src/icons/
and add the following to src/icons/index.js
:
export icon from './icon.svg';
icon
should be the name of the SVG file you put insrc/icons/
.
Add the appropriately mapped color to src/constants/mapColors.js
Hi @dfrankland , thanks.
The npm logo is current used is so small, as the title bar is not good place to use it. So IMHO, we should use the cube icon for better result.
Even npm use the cube icon in their home page when they need.
I tried to apply in this demo so you can see how it displayed:
Source: SVG cube icon of npm: https://cldup.com/Rg6WLgqccB.svg
Best regards,