Monster.DOM. Theme

The Theme class provides the functionality for the theme.

Constructor

new Theme(name)

A theme class

Parameters:
NameTypeDescription
name
Since
  • 1.7.0
License
  • AGPLv3
Throws:

value is not a string

Type
TypeError
Example
import {getDocumentTheme} from '@schukai/monster/source/dom/theme.mjs';

const theme = getDocumentTheme();
console.log(theme.getName());
// ↦ monster

Methods

getName() → {string}

Returns:
Type: 
string