Setting global variants from code not working?

Having an issue with Global Variants - I’ve set a dark mode option and changed the style tokens and PlasmicRootProvider:
globalVariants={[{ name: "theme", value: "dark" }]}

can’t seem to get it to work am I missing something?

can you try it with name: "Theme" :pensive:

any tricks on bubbling up a background color to the body tag?

@chungwu this would be great to know!

hmm there’s no way to style the body tag from within Plasmic right now…

@chungwu do you have any suggestions on how to implement this?

Hmm not with loader, no… There’s no way right now even for code components to read the currently active global variants. We should make this possible.

@chungwu any chance we will have that soon?