Skip to content

App.getTheme method

App › getTheme

Unofficial

Get the current color scheme of the application.

Signature:

getTheme(): 'moonstone' | 'obsidian'

Returns: 'moonstone' | 'obsidian' — The color scheme in effect: 'obsidian' when dark, 'moonstone' when light.

Remarks:

Resolved from app.customCss.isDarkMode(), so it never returns 'system', unlike app.vault.getConfig('theme').