I just started using Less. Now I want to change the background color according to the value passed from the HTML file. For example, in the HTML file, select a blue color than the entire blue background, and select yellow so that the entire background is set to Yellow.
The mechanism is to change the color for appearance and filling. The user can change his theme in accordance with his requirement. Therefore, when the user changes color, the whole theme of the color of the site must be changed. Below I talk about the transmission of the selected color

And this is how I expect the value to be assigned in the less.css file.

So how can I achieve this scenario?
source
share