Skip to content

loadTheme

loadTheme(name): Promise<undefined | string>

Defined in: themes/index.ts:37

Asynchronously loads the theme with the specified name. The promise returned resolves with the CSS string for the theme. This CSS can then be added to a <style> element on the page.

EditorTheme

Name of the theme.

Promise<undefined | string>