Scrum / postcss-at-rules-variables

PostCss plugin to use CSS Custom Properties in at-rule @each, @for, @if, @else and more...
MIT License
60 stars 4 forks source link

Compatibility with postcss-functions #208

Closed CKGrafico closed 3 years ago

CKGrafico commented 3 years ago

Is it possible to make this plugin compatible with postcss-functions ? Is there any alternative?

I have code like:

 @each $value, $i in values($map) {

where values is a function

Scrum commented 3 years ago

you tried use custom variables in function like as ?

@each $value, $i in values(var(--map)) {
CKGrafico commented 3 years ago

Yes, not working too because functions bust be evaluated before each :(

Scrum commented 3 years ago

put the plugin postcss-at-rules-variables above the plugin postcss-function in the plugins list postcss

CKGrafico commented 3 years ago

Yes that was the first approach but nothing, I've solved my issue ussing replace plugin but not the ebst scenario xD