Constructor
new Theme(name)
A theme class
Parameters:
Name | Type | Description |
---|---|---|
name |
- Since
- 1.7.0
- Copyright
- schukai GmbH
- 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