postcss-composes-shorthand
v1.0.0
Published
PostCSS plugin to add shorthand for composing classes from modules
Downloads
4
Maintainers
Readme
PostCSS Composes Shorthand
PostCSS plugin adds shorthand for composing classes from modules. Works in conjunction with css-modules.
Usage
postcss([ require('postcss-composes-shorthand')(['bar', {shorthand: 'hi', name: 'hello'}]) ])
Input CSS
.foo {
bar: a b c;
hi: y z;
}
Output CSS
.foo {
composes: a b c from "bar";
composes: y z from "hello";
}
See PostCSS docs for examples for your environment.