1.0.0 • Published 9 years ago

postcss-composes-shorthand v1.0.0

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

PostCSS Composes Shorthand Build Status

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.