0.0.11 • Published 7 years ago

momicons v0.0.11

Weekly downloads
3
License
ISC
Repository
-
Last release
7 years ago

To update with new Icons

1. Install dependencies

npm install

2. Make changes

Any new Icon definitions should be added to momicons.scss. Designers should give a bundle exported from http://fontastic.me. This should be in the following format

+ fonts
| + momicons.eot
| + momicons.svg
| + momicons.ttf
| + momicons.woff
+ styles.css
+ icons-reference.html

So:

  • Replace the momicons.xxx font files.
  • In momicons.scss replace all the .mom-icon-name:before classes with the ones from styles.css (provided)
  • Double check that the @font-face, data-icon and class^="mom-icon-" stuff is still fine
  • For sanity sake, update the icon-reference.html with the one provided and remember to change its stylesheet reference from styles.css to momicons.css

To build:

npm start

You should now have an updated momicons.css

NB:

Sometimes things go wrong on the designers side and an icon gets renamed accidentally. Before committing the changes here, just do a comparision and do a sanity check on the class names to see none of the old ones were renamed.

If so report it immediately

Versioning

You can up the (patch) version in package json, and then tag it on GIT, but for now we not relying on it