restoreTheme

Type:Function
Status:stable
Since:1.0.0
Platform:js
@blackbyte.sugar.js.theme

This function allows you to restore the theme set on the website/application through the setTheme function.

Params

  1. defaultTheme*-String

    The default theme to set if no theme has been set

  2. settings{}TRestoreThemeSettings

    Some settings to configure your theme restoration

Example

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

Settings

  1. cookieName’theme’String

    The cookie name to use to store the theme

Todo

  • testsnormal