Manage the application CSS theme (color and geometry)
Methods
# static createThemeBuilderWindow()
Build the window to create a custom theme
# static get() → {object}
Get the current theme parameters saved in the localStorage
Theme parameters like: {color: "light", geometry: "default"}
object
# static init()
Init the theme at startup. It will also observe CSS theme passed in the URL hash parameter "themeColor" / "themeGeometry" and switch theme accordingly. The default theme color is "light", and theme geometry is "default"
# static select()
Open a window to switch the theme manually
# static set(config)
Update the theme (color and geometry)
Parameters:
Name | Type | Description |
---|---|---|
config |
object
|
|
color |
string
|
|
geometry |
string
|
Example
kiss.theme.set({
color: "dark",
geometry: "sharp"
})