Documentation

cloneTheme()

Creates a copy of this theme’s current state.

cloneTheme(): WebTheme;

Notes

Return value

A new WebTheme with the same configuration.

Examples

const baseTheme = new WebTheme().colors({ accent: "#6200EE" });
const highContrastTheme = baseTheme.cloneTheme().colors({ text: "#000000" });

Related