Hi, I want to build a vue3 based project with vite, i18n and css dark mode. Is that work?
It seems the dark mode in the demo links to another url?
'https://preview.keenthemes.com/metronic8/demo1/dark/index.html' and 'https://preview.keenthemes.com/metronic8/demo1/index.html'.
Yes, dark and light preview pages are located in different URLs.
Hi Lauris ,
thanks for your reply. Different urls can not apply a transition effect when switch to another theme.
Is that possible to switch dark and night in just css ? (Like put a class called 'is-dark' in the body element and apply a transition animation when switch)
We haven't tried our theme with Vite yet, we will consider trying it in upcoming releases.
For now please refer to the Vite official doc: https://vitejs.dev/
i18n is implemented by default, check our i18n doc for more info:
Dark mode styles are included in the Vue version too.