Represents a Theme definition available in the current installation of Drafts.
Find and assign the active light theme
let theme = Theme.find("builtIn", "dark");app.lightTheme = theme; Copy
let theme = Theme.find("builtIn", "dark");app.lightTheme = theme;
Readonly
URL which can be used to install this Theme in another installation of Drafts. Useful for sharing and backups.
The name of the theme definition.
The type (builtIn, custom, file) of the theme definition.
Static
Search for a theme definition matching the type and name passed and return it if found. Returns undefined if not found.
Get list of all available themees.
Represents a Theme definition available in the current installation of Drafts.
Example
Find and assign the active light theme