0.1.1 • Published 6 years ago

@squiz/icons v0.1.1

Weekly downloads
-
License
MIT
Repository
gitlab
Last release
6 years ago

@squiz/icons

The SVG sprite generator for Squiz and friends.

Install

npm i

Generate the spritesheet

The sprite sheet is then located at lib/spritesheet.svg

npm run build

Local development

To start a local web browser with hot-reloading to see the SVG - run:

npm run watch

Once the server is up and running, place a new .svg icon into the icons/ folder and re-run npm run build. This will update the spritesheet so that you can reference it within the HTML example page.

<svg role="img" class="sds-icon">
  <use xlink:href="/path/to/sprite.svg#icon-file"></use>
</svg>

Contributors

For a full list of contributors see the CONTRIBUTORS.md.

0.1.1

6 years ago

0.1.0

6 years ago