Hello!
The task appeared to make a function with which you can change the color scheme of the site. Those. color of buttons, logo, background places, etc.
That is, purely changing the color code in CSS style. And I think, how can this be realized?
So far, as an option, I see creating several classes that will be rendered, in accordance with the configurations, inserted into the HTML code.
For example, when setting up:
$config["button_color"] = "green"; A class that stylizes the button in green will be substituted:
<button class = "bt-green">Submit</button> But the disadvantage of this method is that you have to create a bunch of color schemes and implement a lot of CSS code.
Perhaps there are some better options?
bodytag. In the css itself, all the other settings are preceded by this class. Essno for each class has its own set - rjhdby