postcss / postcss-custom-properties

Use Custom Properties in CSS
https://postcss.github.io/postcss-custom-properties
MIT License
596 stars 77 forks source link

use with postcss-mixins #83

Closed Memoyr closed 6 years ago

Memoyr commented 6 years ago

Hi , Is it normal that this isn't working while using with postcss-mixins ? It strips out everything from the rule value but not the actual argument.

@define-mixin generate $size {
    font-size: var(--text$(size);
}
.test {
  @mixin generate sm;
}

output :

.test { font-size: sm; }

thanks

Semigradsky commented 6 years ago

Use postcss-mixins before postcss-custom-properties

Memoyr commented 6 years ago

thanks! Actually, that was the correct fix for my config : https://github.com/postcss/postcss-mixins/issues/82#issuecomment-355792125