We use bootstrap in the project. We bought a special bootstrap theme that created a nice custom style around it and added a lot of useful styles that we used in our project. This topic uses LESS.
Now, each of our customers needs a custom color scheme for their site. Just by changing some LESS variables, we can create a completely different view.
For instance:
@import "../../theme/style.less"; @import "../../shared.less"; // Basic Colors @navy:
This generates a complete css file with all styles. Each client has its own set of .css files. Our problem is that every time we make changes, it takes a long time to compile them.
How can we use LESS, have a basic theme and only generate class overrides that are needed to change the values ββin which the changed variables are used?
For example, if btn-primary background-color @navy, then for the new color scheme, I only need a css file containing a class override for .btn-primary, changing the background color to the new @navy value. Is this possible with LESS?
Thanks,
source share