Skip to content

Two SASS mixins to make working with IcoMoon a little bit easier

Notifications You must be signed in to change notification settings

fredrikekelund/icomoon-sassy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

icomoon-sassy

Two SASS mixins to make working with IcoMoon a little bit easer

Available via Bower:

$ bower install icomoon-sassy

Get set up by including the main file in your SCSS with a simple:

@import "/path/to/bower_components/icomoon-sassy/icomoon";

@include includeIcomoon("path")

Includes the IcoMoon fonts with the necessary @font-face rules. Takes an optional full path minus the file extension.

@include icomoonInclude("/path/to/icomoon");

@include icomoonIcons((checkmark: "\e600"))

Creates classes for the class names and unicode points passed in a map. This is where you get the best of two worlds by combining the performance advantage of not using an attribute selector (like IcoMoon does by default) and the simplified development experience of not having to write out every class name manually.

@include icomoonIcons((
    checkmark: "\e600",
    close: "\e602",
    copy: "\e601"
));

About

Two SASS mixins to make working with IcoMoon a little bit easier

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages