postcss-composes-shorthand

1.0.0 • Public • Published

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.

Dependents (0)

Package Sidebar

Install

npm i postcss-composes-shorthand

Weekly Downloads

2

Version

1.0.0

License

MIT

Last publish

Collaborators

  • rtsao