We use bootstrap in a project. We bought a custom made theme for bootstrap that created a nice custom style around it and added a lot of useful styles we used in our project. This theme uses LESS.
Now each of our clients wanted a custom color scheme for their site. By simply changing some LESS variables, we can generate a completely different appearance.
For example:
@import "../../theme/style.less";
@import "../../shared.less";
// Basic Colors
@navy: #781d7e; // Primary color
@dark-gray: #c2c2c2; // Default color
@blue: #8dc63f; // Success color
@lazur: #00aedb; // Info color
@yellow: #f7941e; // Warrning color
@red: #ed1c24; // Danger color
This generate a complete css file with all the styles. Each client has it's own set of generate .css files. Our problem is that it takes a long time to compile those each time we make changes.
How could we, using LESS, have a base theme and generate only classes overrides that are needed to modify values where the modified variables are used?
For example if btn-primary background-color is @navy, then for a new color scheme all I need is a css file containing a class override for .btn-primary changing background-color to the new value of @navy. Is this even possible with LESS?
Thanks,