Creating A CSS Sprite Builder for Material Icons
This isn't finished yet. I decided to move on and work on other things.
Why Create This
While my design system can't really utilize svg sprites because of the ability to change application size and the customization of svg colors, I wanted to build a simplistic sprite builder with material icons in case I ever create a site in the future that is more static and where speed is really important or just to see the best way to create a CSS Sprite. To learn about the advantage of using CSS Sprites, read this CSS Sprites article.
How To Use Sprite Builder
- Search the name of the Material icon that you want to add to the CSS Sprite. Click on the icon in the results that you want to add to the sprite.
- Edit the color and width/height of the icon that you want to add to the sprite.
- Add the icon to the sprite.
- Continue adding icons to the sprite until all the icons that you want to add to the CSS sprite are included in the sprite (view a preview of the sprite in the Current Sprite Section.)
- To delete an svg, click on the svg on the canvas and click delete.
- Once finished, click download.
Transparent Stroke and Transparent Fill communicate whether the <canvas> context .stroke() and .fill() methods will be called respectively.
Search Results