Import less files within the scope of a mixin -


im researching while now, cant figure out.

@theme: 'example';  // works @import (reference) "../themes/@{theme}";  .import(@theme) {     // doesn't work     @import (reference) "../themes/@{theme}"; } 

i guess mixins called @ "end" of compiling process, cant import there because needs variables earlier.

is there known hidden secret workaround this?

this code

.import(@theme) {     // doesn't work     @import (reference) "../themes/@{theme}"; } .import(hello); 

failed because of

syntaxerror: variable @theme undefined in less/capsule.less on line 33,


Popular posts from this blog