0.0.1 • Published 6 years ago

postcss-at-rules-bem v0.0.1

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

PostCSS At Rules Bem Build Status

PostCSS plugin for BEM name convention.

/* Input example */
@block foo {
    width: 1px;

    @mod bar {
        width: 2px;
    }

    @el baz {
        width: 3px;

        @mod qux {
            width: 4px;
        }
    }
}
/* Output example */
.foo {
    width: 1px;
}

.foo_bar {
    width: 2px;
}

.foo__baz {
    width: 3px;
}

.foo__baz_qux {
    width: 4px;
}

Usage

postcss([ require('postcss-at-rules-bem') ])

See PostCSS docs for examples for your environment.