postcss-traits

Plugin for trait-based AMCSS development


Keywords
postcss, amcss, traits, plugin
License
MIT
Install
npm install postcss-traits@0.1.0

Documentation

postcss-traits

When you want code like this:

[ui-SomeObject] {
  @trait(b: one 2 three-and-a-half, c: 4 4½);
}

to generate the following for postcss-mixins:

[ui-SomeObject] {
  @mixin b;
  @mixin b:one;
  @mixin b:2;
  @mixin b:three-and-a-half;
  @mixin c;
  @mixin c:4;
  @mixin c:4½;
}