Change settings in runtime
To change theme settings in runtime use setTheme()
method anywhere in you app.
You can set the only params you need and the rest of them will be taken from vueless.config.js
(if it defined there) or from Vueless defaults.
When you set the dark mode in runtime, selected value will be saved into localStorage
to keep user preferred setting after the page reload.
Last updated