postcss / postcss-mixins

PostCSS plugin for mixins
MIT License
466 stars 47 forks source link

Is it possible to use arguments in mixins? #156

Closed lelukas closed 1 year ago

lelukas commented 1 year ago

Default sass implementation for mixins shows that you can set arguments like this:

@mixin rtl($property, $ltr-value, $rtl-value) {
  #{$property}: $ltr-value;

  [dir=rtl] & {
    #{$property}: $rtl-value;
  }
}

is it possible to achieve something similar with this plugin? I didn't quite understand the example in README