I am importing a less file inside Mixins but it is not compiled into the output. I am running command as lessc client.less > client.css
. Below is my code.
client.less:
@color: #000;
@import "theme.less";
@import "dark-theme.less";
.themeDefs(1);
theme.less:
body {
color: @color;
}
dark-theme.less:
.themeDefs(1) {
@color: #fff;
.darkTheme {
@import "theme.less";
}
}
Output:
body {
color: #000;
}
Expected Output:
body {
color: #000;
}
.darkTheme body {
color: #fff;
}