Skip to content

webleedev/stylus-bem-evaluator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

stylus-bem-evaluator

About

replaces the / in /__child or /--mod with the first parent block selector

Installation

run npm i stylus-bem-evaluator in the terminal

How to use

var stylus = require('stylus'),
  str =
  `.parent 
    .block
      /__child
        color: blue`;

stylus(str)
  .use(require('stylus-bem-evaluator'))
  .render(function (err, css) {
    console.log(err || css);
    // .parent .block .block__child {
    //   color: #00f;
    // }
  });

About

Evaluator for Stylus that adds BEM-friendly syntax capabilities

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published