Skip to content

Latest commit

 

History

History
46 lines (28 loc) · 2.29 KB

README.md

File metadata and controls

46 lines (28 loc) · 2.29 KB

mime-icon-generator Build Status

DEMO: https://erikyo.github.io/mime-icon-generator/

alt text

Create easily all the icons you need in supersharp SVG format!

Configuration is very fast ... in the $icon-list array you have to enter some parameters like file extension, color (if you want a custom tone), and shape... icons will be automatically generated and you recall them easily in your site or in your app using the class .mime-icon.ico-$fileextension.

All svg icons are merged into a single css sheet and this allows for a very lightweight file: ~600 icon gzipped size is only 16.8kb! less than one 256x256 png icon.


USAGE

1. Default mixin

There are two ways to make a way to make an icon... the first is with the mixin.

Its basic form is this "@include do-icon(**$color**)".

You can specify a color that will be assigned to the icon if no the default color is used (in the Config Section of the scss sheet)

.ico-myico .ico:after {
      @include do-icon($color);
}

You can recall your newly generated icon whit this code

<div class="mime-icon">
  <div class="ico-myico"></div>
</div>

2. Mass generated icons with icon font

But to generate many icons at once? I prepared a @for loop that loops all the items in the $icon-list:

$icon-list:
...
(abc,  "", $music),
...;