Skip to content

setTheme ​

Overview ​

Replace the base theme, including previous base patches. Project overrides remain in effect; use clearThemeOverrides to remove them.

Signature ​

setTheme(newTheme)

Parameters ​

NameTypeRequiredDescription
newThemeThemeObjectyesThe new default theme.

Returns ​

void

Source ​

client/lib/use/themeRegistry.js:191