1
Install mode-watcher
Start by installing
mode-watcher:2
Add the ModeWatcher component
Import the
ModeWatcher component and use it in your root layout:src/routes/+layout.svelte
3
Add a mode toggle