coopdigital / coop-frontend

Co-op CSS Foundations and design system mono-repo
MIT License
0 stars 0 forks source link

added icons package for crit #431

Closed matt-tyas closed 2 years ago

matt-tyas commented 2 years ago

I have used a simple node package to take the contents of src and output coop-icon-sprite.svg into the dist folder.

After the package is installed this sprite would need to be imported into the project (not sure on the best way yet).

Each icon can be used using use then targetting th id of the icon in the sprite sheet: <use xlink:href="coop-icon-sprite.svg#icon-calendar"></use>