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

Members

(static) instanceSymbol

This method is called by the instanceof operator.

This method is called by the instanceof operator.

Since
  • 2.1.0

Methods

getName() → {string}

Returns:
Type: 
string