In the Bootstrap sub theme, we have a custom variables.less.

My suggestion is to include in that file, the variables for the Bootstrap library it self as well. I just came across the issue which i was thinking of that could happen when i started with a new Bootstrap subtheme. Which is that when you grab a latest version of the Bootstrap library, there might be variables called which are not yet defined in the Drupal Bootstrap theme, which ships with a variables.less copied from the Bootstrap Library, so which doesn't always have to be the most recent version of all the variables.

Personally, i would just drop the whole contents of the variables.less file, which is in it now, and just include the Bootstrap Libraries variables in that file, and add a comment that people can copy variables if they want to override stuff.

I have my Bootstrap Library in the sites/all/libraries folder so the following include won't work for those who haven't, but this is the idea. My subtheme has at the first line of my custom variables.less

// Import the Bootstrap library variables first
// That way we know for sure we can compile our less
@import "../../../libraries/bootstrap/less/variables.less";

This way i am sure i can process the less files.

Comments

Michsk’s picture

Issue summary: View changes