Laravel Metronic 8.1.5 Dark Mode not working.
Hi,
I have a base metronic 8.1.5 laravel.
I have added the option dark mode in settings
// Layout
'layout' => array(
'main' => [
'dark-mode-enabled' => true,
]
),
Als have read the following page : https://preview.keenthemes.com/metronic8/laravel/documentation/getting-started/dark-mode
have run
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?
Thanks
Replies (4)
i use Demo3.
The system option works, the dark option does not work.
i think i found the problem in resources/views/partials/theme-mode/_init.blade.php
Changed
const name = document.body.getAttribute("data-kt-name");
let themeMode = localStorage.getItem("kt_" + (name !== null ? name + "_" : "") + "theme_mode_value");
into
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.
Thanks