Skip to content

Instantly share code, notes, and snippets.

@dannyweilai
Created February 2, 2018 02:47
Show Gist options
  • Save dannyweilai/b1a1b2e721bb57e3ec9527d3d5107af5 to your computer and use it in GitHub Desktop.
Save dannyweilai/b1a1b2e721bb57e3ec9527d3d5107af5 to your computer and use it in GitHub Desktop.
Midnight - get theme id
if(NSClassFromString("DLMidnightTheme")) {
const current = DLMidnightTheme.currentTheme()
const themeID = current.themeID()
log("Current theme ID: " + themeID)
// if themeID == "original" means it is Sketch default theme
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment