Replacement for deprecated theme object in Liquid

We often use the theme object in Liquid to determine when a theme is running locally or get other info about the theme. Now that it’s deprecated, what’s the best way to do this?

Hi @Sonya_Yuan , thanks for that. But I’m looking for a way to get theme information from within a theme, in a Liquid template. I believe the Admin API can only be used in apps.