Sorry, was my bad!! it worked now. I did see that in the dashboard config screen but totally forgot about that.
But what is happening is, when using custom theme, it’s using id then the name. So in the code, it says: "theme": "12nyulywxx94m1qpp4kg0o0tli", and that’s why it wasn’t working, when I was trying to change the theme from remote editor.