There many discussions here about dynamic updating of color using LESS, e.g.: dynamically change LESS variables in page with JavaScript. But I have yet to see something that specifically addresses my challenge.
Our firm provides web software that gives users wide flexibility over the UI, including overall background color. But there are a number of elements that they can't change that need to have a background color in order to provide the proper user experience (cf. my Bootstrap Glyphicon question here -- sure would welcome an answer there, as well). I want to find a solution that takes whatever the user sets as a background color at any given time and applies it to other elements dynamically. I could do this via Javascript, but it seems like I should be able to leverage our use of LESS in our application stack to effectively create an unset mixin that is dynamically updated based on the user's UI choices. I tried many attempts to formularize a LESS solution, to no avail.
Am I barking up the wrong tree? Before I go the JS route, I'd like to see if anyone can suggest a LESS-based solution for this challenge. As always, thanks in advance for any help you could provide here.