Namespace

theme

kiss.theme

Manage the application CSS theme (color and geometry)

View Source client/core/modules/theme.js, line 8

Methods

# static get() → {object}

Get the current theme parameters saved in the localStorage

View Source client/core/modules/theme.js, line 68

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"

View Source client/core/modules/theme.js, line 18

# static select()

Open a window to switch the theme manually

View Source client/core/modules/theme.js, line 168

# static set(config)

Update the theme (color and geometry)

Parameters:
Name Type Description
config object
color string
geometry string

View Source client/core/modules/theme.js, line 45

Example
kiss.theme.set({
 color: "dark",
 geometry: "sharp"
})