I\'m working on WordPress theme that needs to have color schemes functionality. I am forced to use less on this project. I have file called schemes.less, that contains code
Isolate themes from each other with "unnamed" namespaces:
& {
@import (multiple) "schemes.less"
@import "dark.less";
}
& {
@import (multiple) "schemes.less"
@import "light.less";
}
// etc.
(Assuming you're using an up-to-date Less compiler, not lessphp
- for that one you need minor modifications - e.g. remove (multiple)
etc.).