Laravel Metronic 8.1.5 Dark Mode not working.
I have a base metronic 8.1.5 laravel.
I have added the option dark mode in settings
'layout' => array(
'main' => [
'dark-mode-enabled' => true,
Als have read the following page : https://preview.keenthemes.com/metronic8/laravel/documentation/getting-started/dark-mode
npm run dev
But nothing changed if i switch to dark mode.
Nothing is dark, everything stays "light".
Is there a step i'm missing?
i use Demo3.
The system option works, the dark option does not work.
i think i found the problem in
const name = document.body.getAttribute("data-kt-name");
let themeMode = localStorage.getItem("kt_" + (name !== null ? name + "_" : "") + "theme_mode_value");
let themeMode = localStorage.getItem("data-theme-mode");
Hello, Tieme Alberts!
Thanks for posting your solution, it worked for me too
Have a nice day.
Hi Tieme Alberts
Sorry for the delay. Glad you found the solution. We will check it.