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 1

    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"; 
    • one
      I will add a little bit, usually this is done in the main (less, sass) file via the @import file with variables, mixins, extensions, the normalization table and already behind them files describing the components. And in scss , I don’t know how the extension can be omitted in less , for example @import "base/variables"; - pepel_xD
    • @pepel_xD, in less it works the same way. - BwehaaFox