update: change theme

This commit is contained in:
Nathan FONTEYNE 2026-07-08 14:24:23 +02:00
parent aca521b54f
commit 9426b73940
17 changed files with 326 additions and 21 deletions

10
public/js/theme-init.js Normal file
View file

@ -0,0 +1,10 @@
(function () {
try {
var saved = localStorage.getItem('octane-theme');
if (saved === 'light' || saved === 'dark') {
document.documentElement.setAttribute('data-theme', saved);
}
} catch (e) {
/* localStorage unavailable (private mode etc.) — fall back to OS theme */
}
})();