How to add a CSS which we can change. like if we change in one place, the color of the whole website should get changed.
Screenshot : screenshot for Sample
Sample website : https://themezhub.net/rikada-demo-05/rikada/index.html#
as you can see in above website, they have a slider in left side and which contain a list of color, if you choose any color the whole website color will change.
How to make like this?.
Example :
I define the color code in one place of CSS or website and then the whole website should get changed according to it.
CodePudding user response:
You have to add the class with the body
tag on click left side colors. Then add CSS of color for each element that you'd like to update.
how the change color works on reference site
CodePudding user response:
Set the elements you need to change color as transparent and change body background color on click