Constructor
# new Theme(name)
A theme class
Parameters:
Name | Type | Description |
---|---|---|
name |
- Since:
- 1.7.0
- Copyright:
- schukai GmbH
Throws:
-
value is not a string
- Type
- TypeError
Example
import {getDocumentTheme} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.23.0/dist/modules/dom/theme.js';
const theme = getDocumentTheme();
console.log(theme.getName());
// ↦ monster
Methods
# getName() → {string}
Returns:
- Type
- string