Toggle switch to control global variant.

Hi,

Basically our website is dark and we’re working on a light mode. There’s a toggle switch on the page, and we made a light global variant. How can we set the switch to toggle the global variant on/off?

Hi @fiscal_mastodon! At the moment you will need to write code to manage that global variant state when the switch is toggled. That is something that we have plans to improve in the future.

@tiago Can you provide an ETA on being able to do light/dark theme switching without custom code, please?

@benign_condor we don’t have an exact timeline on this, but we are hoping to get to it in the following quarter or so

Thank you for letting us know!