Actually the question is simple. Is it possible, for example, to render a file with global variables, for example, to a vars.less file and use them with other small .less files? That is to make something like a config file?
1 answer
In the ru-location of the site there is no answer (or I just did not find it), so we will create our own.
You can connect the file with variables via @import in each required table:
@import "vars.less"; - oneI will add a little bit, usually this is done in the main (less, sass) file via the
@importfile with variables, mixins, extensions, the normalization table and already behind them files describing the components. And inscss, I don’t know how the extension can be omitted inless, for example@import "base/variables";- pepel_xD - @pepel_xD, in less it works the same way. - BwehaaFox
|