You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm offering a site where people can get octicons with a different fill colour and/or size.
It's currently done by injecting the fill, width and height properties to the <svg> HTML, but I feel likt this isn't the best solution there is.
So I was wondering if someone here would have a better idea to resize and recolor the SVGs on the fly for the user to use.
I want to mention that I have barely to no knowledge with Javascript (which is used here). I only managed to edit the existing upstream with the help of a few other people, so beginner-friendly explanations would be greatly apreciated.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'm offering a site where people can get octicons with a different fill colour and/or size.
It's currently done by injecting the
fill
,width
andheight
properties to the<svg>
HTML, but I feel likt this isn't the best solution there is.So I was wondering if someone here would have a better idea to resize and recolor the SVGs on the fly for the user to use.
Source: https://github.com/Andre601/octicons-col.vercel.app
Site: https://octicons.andre601.ch
I want to mention that I have barely to no knowledge with Javascript (which is used here). I only managed to edit the existing upstream with the help of a few other people, so beginner-friendly explanations would be greatly apreciated.
Beta Was this translation helpful? Give feedback.
All reactions