postcss-apply-class
v0.1.6
Published
PostCSS plugin to apply CSS classes in a similar fashion to LESS
Downloads
46
Readme
PostCSS Apply Class
PostCSS plugin to apply CSS classes in a similar fashion to LESS.
Using this input.css:
.bold {
font-weight: bold;
}
.text-small {
font-size: .75rem;
}
.foo {
@apply .bold, .text-small;
}
you will get:
.bold {
font-weight: bold;
}
.text-small {
font-size: .75rem;
}
.foo {
font-weight: bold;
font-size: .75rem;
}
Usage
postcss([ require('postcss-apply-class') ])
See PostCSS docs for examples for your environment.