blockly > Theme > defineTheme

Theme.defineTheme() method

Define a new Blockly theme.

Signature:

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

Parameters

Parameter Type Description
name string The name of the theme.
themeObj ITheme An object containing theme properties.

Returns:

Theme

A new Blockly theme.