-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Odyssey light/dark theme has traditionally been a content producer-controlled option. With Presentation Layer introducing user-controlled light/dark mode switching, we should consider building that behaviour into Odyssey (possibly an optional setting that can be overridden).
Here's a proof of concept that seems to work:
Screen.Recording.2026-02-04.at.5.52.30.pm.mp4
There may be additional classes and datasets that need to be changed and checked on elements other than these (maybe blocks or something), but this should be enough to get started.
const main = document.querySelector(".Main") as HTMLElement;
const header = document.querySelector(".Header") as HTMLElement;
header?.classList.remove("is-dark");
header.dataset.scheme = "light";
main.dataset.scheme = "light";Reactions are currently unavailable
Metadata
Metadata
Labels
enhancementNew feature or requestNew feature or request