pascalduez / postcss-apply

PostCSS plugin enabling custom properties sets references
The Unlicense
164 stars 12 forks source link

Option to import globals #46

Open tameraydin opened 5 years ago

tameraydin commented 5 years ago

Hey @pascalduez , thanks for the plugin!

What do you think of introducing an option to import globals? (just like the importFrom of https://github.com/postcss/postcss-custom-properties#importfrom)

I am aware of sets which already does a similar job, but having this new option would make things even easier, as it would allow us passing global mixins files directly, without having them converted into JS objects / JSON.

I can -try to- create a PR soon - if you are ok with it.

pascalduez commented 5 years ago

Hi @tameraydin,

I'm not 100% against, although worried by introducing complexity. So if your willing to do so, why not.

Important note: did you see the @apply rule and custom property sets are abandoned? Which means it will never get implemented in any browser, at least in this form.

conor-darcy commented 4 years ago

@tameraydin Did you get any further on this?

tameraydin commented 4 years ago

@conor-darcy nope, unfortunately