Obsidian themes keep resetting to default on Mac

Regardless of the theme I use on Mac, it keeps resetting to default after a while.

For instance: Say I choose “Primary” theme. It works for a while. After switching to other applications like safari etc and going back to obsidian to take notes, the theme resets to the default one.

I don’t have this issue on the iphone or iPad.

More info:
This happens on my m1 MacBook Air
Am using the latest version of obsidian
Using iCloud for syncing

Would really appreciate if someone could help me out.

The solution here should stop this problem from happening, since iCloud is moving your .obsidian folder to the cloud and removing it from local storage — hence themes defaulting to the default theme (as the relevant css file has been removed)

Thanks a ton. Will give this a shot.