Skip to content


Defines the theme to use for application.

The properties defined in Action are also applicable to this action.

SetTheme Properties

Property Type Required
Theme string Required
_Type const Required


The theme name to be set. No need to specify .dark or .light if appearance specific theme file is provided.

  • type: string

Theme Examples



  • type: const

The value of this property must be equal to:


Action Result

Refer to the MDK Guide to understand what an action result is.

The success ActionResult of this action is the theme name applied. The failure ActionResult is an error message.


    "_Type": "Action.Type.SetTheme",
        "_Name": "_setTheme"
function setAppTheme(context) {
  try {
  } catch (error) {
    let message = error.message;
    let title = 'SetTheme Failed';