static-dev / axis

terse, modular & powerful css library
http://axis.netlify.com
Other
320 stars 45 forks source link

Conflicts with PostCSS processor #263

Closed MortenHofft closed 8 years ago

MortenHofft commented 8 years ago

I'm not exactly sure that there is much to do about this. Maybe the option to add a prefix?

I'm using Lost grid as a postprocessor. There is a utility function lost-utility: clearfix;. I could of course use the Axis group/clearfix (which i by the way do not see in the documentation), but that would scatter my grid handling across multiple libraries - and I do not like the idea of that. And they aren't alike either.

Replacing clearfixwith group seems a bit too invasive to me. Would it be an option to only apply the alias when the method is actually called. That is to replace clearfix() with group() but leave clearfix as it is? This to me seems the most reasonable. Currently Axis rewrites my clearfix to group and then leaves group be.

section {
  lost-utility: clearfix;
}
//compiles to
section {
  lost-utility: group;
}
//which is discarded since it isn't Lost syntax

Thanks