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

  1. defaultTheme*-String

    The default theme to return if no theme has been set

  2. settings{}TGetThemeSettings

    Some settings to configure your theme getter

Return

  1. -String

    The theme name

Example

import { getTheme } from '@blackbyte/sugar/theme';
getTheme('dark');

Settings

  1. cookieName’theme’String

    The cookie name to use to store the theme

Todo

  • testsnormal