Skip to content

tadatuta/bem-font-awesome

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
fa
 
 
 
 
 
 
 
 
 
 
 
 

bem-font-awesome

BEM port of Font Awesome.

See also bem-font-awesome-icons — Font Awesome icons extracted as SVG and provided via backgrounds or BEMHTML/BH tempaltes so no font required and only needed icons will be used.

Content

fa/
    fa.css # common styles
    _icon/
        fa_icon_500px.css
        fa_icon_address-book-o.css
        fa_icon_address-book.css
        fa_icon_adjust.css
        fa_icon_adn.css
        # and so on

Installation

  1. Add the library to project dependencies:
    npm i bem-font-awesome --save
    
  2. Add it as redefinition level

You're done :)

Usage

BEMJSON

{ block: 'fa', mods: { icon: '500px' } }

HTML

<span class="fa fa_icon_500px"></span>

About

BEM port of Font Awesome

Resources

Stars

Watchers

Forks

Packages

No packages published