- Notifications
You must be signed in to change notification settings - Fork199
added svg-sprite generation#84
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
ghost commentedSep 29, 2021 • edited by ghost
Loading Uh oh!
There was an error while loading.Please reload this page.
edited by ghost
Uh oh!
There was an error while loading.Please reload this page.
miguelsolorio commentedOct 1, 2021
👋 Appreciate the PR, though not sure if we have a need for this and a little concerned about adding another dependency. Do you mind explaining why the current files don't work for you? |
Almost all icon packs provide different ways to use icons and svg sprite is one of them. Using icons as font put you to work with them as text, it is more difficult to control size and alignment. |
miguelsolorio commentedOct 4, 2021
Had to make some changes to our dependencies (upgraded |
resolved |
miguelsolorio commentedOct 4, 2021
Tested this out locally and it's looking great! Is there any way to allow multiple references to the same icon? We have acode pointer file that can map multiple references to the same icon so it would be nice to still support that. |
It is not posible to target one symbol with different ids. Only way is to build sprite manualy with script. I have added a script. |
miguelsolorio commentedOct 4, 2021
miguelsolorio commentedOct 4, 2021
Update the readme with an example for using the svg sprites: https://github.com/microsoft/vscode-codicons#using-svg-sprites |
Added generation of svg sprite. It is very useful to target icons by their names without including styles, fonts and class names for elements, and to not worry about font size.