How to use variables in different less files? -
let's separate less files many less files easy organize. here repository:
/reset.less /variables.less /mixins.less /main.less /styles.less
the styles.less importing other files:
@import "reset.less"; @import "mixins.less"; @import "variables.less"; @import "main.less";
however, when add codes main.less , use @line-color defined in variables.less. shows name error: variable @line-color undefined
, cannot compile it- use phpstorm less plugin.
could pleas suggest me?
you have import variables.less files use variables.
edit:
you have compile style.less. cannot compile main.less because doesn't know variables.less don't want main.css anyway, you?
should correct style.css (i guess) css file you'll need.
Comments
Post a Comment