From 1b6e6b9d9a98a6950cc3693786ccb0a650ff8dd4 Mon Sep 17 00:00:00 2001 From: def670 Date: Sun, 22 Mar 2026 18:16:14 -0400 Subject: [PATCH] brand.js: sync shared toggle with legacy body otb-dark class --- brand.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/brand.js b/brand.js index 728dc30..e319ef4 100644 --- a/brand.js +++ b/brand.js @@ -1,6 +1,13 @@ (function () { function applyTheme(theme) { document.documentElement.setAttribute("data-theme", theme); + + if (theme === "dark") { + document.body.classList.add("otb-dark"); + } else { + document.body.classList.remove("otb-dark"); + } + const toggle = document.getElementById("otbThemeToggle"); if (toggle) toggle.checked = theme === "light"; }