Around features Light and Dark theme modes. The user can easily switch between the modes via theme mode toggle (switch). Sometimes there is a situation when:
Let's look closer at these cases and find out how to deal with them.
<head> section of you HTML document (see the screenshot below). Or if you use Pug you can simply set isThemeModeSwitch varibale to false. The variable can be found inside Around/src/templates/helpers/config.pug file.
navbar (see the screenshot below). Again if you use Pug and set isThemeModeSwitch varibale to false it will be removed automatically on the next compilation.
Around/src/js/components/theme-mode-switch.jsimport themeModeSwitch from './components/theme-mode-switch'; from Around/src/js/theme.js$enable-dark-mode variable to false inside Around/src/scss/_variables.scss. Compiled CSS will no longer contains dark mode styles.dark-mode class to <html> tag so the webpage loads in dark mode by default.
<head> section of you HTML document (see the screenshot below). Or if you use Pug you can simply set isThemeModeSwitch varibale to false. The variable can be found inside Around/src/templates/helpers/config.pug file.
navbar (see the screenshot below). Again if you use Pug and set isThemeModeSwitch varibale to false it will be removed automatically on the next compilation.
Around/src/js/components/theme-mode-switch.jsimport themeModeSwitch from './components/theme-mode-switch'; from Around/src/js/theme.jsmode variable. In Chrome browser it can be done via Application panel:
dark-mode class to <html> tag so the webpage loads in dark mode by default.
<head> section of you HTML document change the Theme mode js code to be identical to the screenshot below. If you use Pug you can find this code inside Around/src/templates/partials/head.pug file.
checked by default. If you use Pug you'll find the switch code inside Around/src/templates/partials/navbar.pug file.
Around/src/js/components/theme-mode-switch.js to look like in the screenshot below. Make sure to compile theme.min.js with these changes. If you use Gulp setup comes with the theme it will be compiled automatically once Around/src/js/theme.js is saved.