feat(web): save theme to localStorage

This commit is contained in:
2025-11-26 18:59:55 +02:00
parent 3dc7187910
commit 01eac0bc85
3 changed files with 52 additions and 15 deletions

View File

@@ -21,7 +21,12 @@ leptos_router = { version = "0.8", features = ["nightly"] }
strum.workspace = true
tokio = { version = "1", features = ["rt-multi-thread"], optional = true }
wasm-bindgen = { version = "=0.2.104", optional = true }
web-sys = { version = "0.3", features = ["Navigator", "Window", "Clipboard"] }
web-sys = { version = "0.3", features = [
"Navigator",
"Window",
"Clipboard",
"Storage",
] }
[features]
hydrate = ["leptos/hydrate", "dep:console_error_panic_hook", "dep:wasm-bindgen"]