Need global variants programmatically switchable in studio

Please add the ability to switch to different global variants from Plasmic studio itself, for example in the nav header I dragged in a button, called light dark toggle; when clicked, I want it to toggle the light and dark theme, currently, I have to download the project locally and do that ThemeContext.Provider change in my IDE, It would be super benificial to Plasmic Studio users to have these global variants toggle-able in Plasmic Studio itself without ever touching IDE and without having anyone else touching the IDE and register something hacky for them, this will make the tokens in Plasmic, more usable

@mr_biscuit Hi! Thanks for the idea — we’ve added it to our swimlane and will evaluate internally how to implement it. Since planning, implementing, and releasing could take some time, we’ve updated our docs and examples with clear instructions on how to implement global context switching: Global variants | Learn Plasmic.
Let us know if you have any questions or feedback!

1 Like