Font Awesome Stylus
v4.7.1
Porta de caneta para a fonte incrível
Importar a fonte do seu projeto e configurar o caminho das fontes corretamente ($ fa-font-path)
bower install font-awesome-stylus
npm install font-awesome-stylus
Defina o caminho da fonte
$fa-font-path = "../fonts"
// OR
$fa-font-path = "http://netdna.bootstrapcdn.com/font-awesome/4.7.0/fonts"Exemplo de exigir e usar o middleware de fontes para criar função de compilação para utilizar em outras estruturas.
var fontAwesome = require ( 'font-awesome-stylus' ) ,
stylus = require ( 'stylus' ) ;
function compile ( str ) {
return stylus ( str )
. use ( fontAwesome ( ) ) ;
}Para importar a fonte inteira no seu arquivo STYLUS:
@import "font-awesome-stylus"Inclua o ícone usando o mixin
.my-icon
fa(user)
http://fortawesome.github.io/font-awesome