Theme

Monster.DOM. Theme

You can call the method via the monster namespace new Monster.DOM.Theme().

<script type="module">
import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.0/dist/monster.js';
console.log(new Monster.DOM.Theme())
</script>

Alternatively, you can also integrate this function individually.

<script type="module">
import {Theme} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.0/dist/modules/dom/theme.js';
console.log(new Theme())
</script>

Constructor

# new Theme(name)

A theme class

Parameters:
Name Type Description
name
Since:
  • 1.7.0
Throws:

value is not a string

Type
TypeError
Example
import {getDocumentTheme} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.0/dist/modules/dom/theme.js';

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

Methods

# getName() → {string}

Returns:
Type
string