bemix

1.3.1 • Public • Published

Bemix

BEM style mixins for Sass

Installation

via NPM: npm i bemix

In your SCSS:

@import "~bemix";

Usage

@include b('block') {
    ...
    
    @include e('element') {
        ...
    }
    
    @include m('modifier') {
        ...
    }
    
    @include s('active') {
        ...
    }
}

Outputs

.block {
  ...
}
.block .__element {
  ...
}
.block.--modifier {
  ...
}
.block.is-active {
  ...
}

Readme

Keywords

Package Sidebar

Install

npm i bemix

Weekly Downloads

5

Version

1.3.1

License

GPL-3.0

Unpacked Size

44.1 kB

Total Files

12

Last publish

Collaborators

  • spriggsey