shared
utils
string
object
is
extension
js
tracking
string
dom
when
selection
position
iframe
event
scroll
console
node
string
project
fs
console
getTheme
Type:Function
Status:stable
Since:1.0.0
Platform:js
@blackbyte.sugar.js.theme
This function allows you to get the theme set on the website/application through
the setTheme function.
Params
- defaultTheme*-String
The default theme to return if no theme has been set
- settings{}TGetThemeSettings
Some settings to configure your theme getter
Return
- -String
The theme name
Example
import { getTheme } from '@blackbyte/sugar/theme';
getTheme('dark');Settings
- cookieName’theme’String
The cookie name to use to store the theme
Todo
- testsnormal
Author
- Olivier Bosselolivier.bossel@gmail.comhttps://blackbyte.space