Static
addName for the new theme
Theme variables
Static
applyApply a theme by name (must match folder name in /themes/)
Theme name (e.g., 'default', 'dark')
Optional base path for themes
Promise that resolves when theme is applied
Static
getGet all available theme names
Array of available theme names
Static
getGet the currently applied theme name
Current theme name or null if none applied
Static
getGet theme variables for a specific theme
Theme name
Theme variables object or undefined if theme doesn't exist
Static
getGet a CSS variable's current value
Variable name (e.g., '--primary-color')
CSS variable value
Static
hasCheck if a theme exists in the predefined themes
Theme name to check
True if theme exists
Static
removeRemove a custom theme
Name of the theme to remove
True if theme was removed, false if it didn't exist
Static
setAlias for applyTheme method
Theme name to apply
Optional base path for themes
Promise that resolves when theme is applied
Static
setSet theme variables from predefined themes
Theme name to apply variables from
Static
setUpdate a single CSS variable globally
Variable name (e.g., '--primary-color')
CSS value (e.g., '#00aaff')
Static
setSet multiple CSS variables at once
Object of variable name-value pairs
Add or update a custom theme