Using a mixin/function to poplulate @import paths in Stylus -
i hoping able following in stylus:
variables (spec) "../" + spec + "/css/variables.styl" @import variables(button); @import variables(form); ..
there reasoning file structure trying make easier manage repetition in file rather having write:
@import "../button/css/variables.styl" @import "../form/css/variables.styl" ..
but when try stylus compiler errors "@import string expected"
well, need remove space before ()
, otherwise declaration parsed selector:
variables(spec) "../" + spec + "/css/variables.styl" @import variables(button); @import variables(form);
Comments
Post a Comment