Dynamic theme change

05-05-2022 06:40 AM
New Contributor

Hello 🙂

I want to create a widget that, when clicked, will change some theme's colors. I tried to do this with CSS variables but some theme's values are hardcoded. I suppose to get the desired effect I need to replace the "theme" object which is passed to the ThemeProvider. Does the Expierience Builder's API provide any function to change the theme? Maybe it can be achieved in some other way?

0 Replies