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,
]
),
npm run dev
Hi Tieme Alberts
Sorry for the delay. Glad you found the solution. We will check it.
Thanks
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");
let themeMode = localStorage.getItem("data-theme-mode");
Hello, Tieme Alberts!
Thanks for posting your solution, it worked for me too
Have a nice day.
i use Demo3.
The system option works, the dark option does not work.