Dark mode in Editor X

Hello everyone,

It seems that in editor X we can save the default style. Even using the function saveDefaultColorScheme.
I tried to convert the following exemple : https://www.wix.com/velo/example/dark-mode
made in WIX.

Someone have some clue to adapt this function in Editor X ?

Thanks in advance