How to control all component visuals globally while switching from Dark to Light theme?

Hi,

So, I was wondering whether if it is possible to change the visual (Dark theme/ Light theme) for all components with an event trigger?