Skip to main content

Home > blockly > Theme > defineTheme

Theme.defineTheme() method

Define a new Blockly theme.

Signature:

static defineTheme(name: string, themeObj: ITheme): Theme;

Parameters

ParameterTypeDescription
namestringThe name of the theme.
themeObjIThemeAn object containing theme properties.

Returns:

Theme

A new Blockly theme.