Did the widget ever receive the setting?
A saved option can disappear inside an integration, leaving you debugging the widget for an instruction it never received.
An embedded calendar had a dark-theme setting, yet it turned light with the computer’s appearance preference. The instruction was there in the page configuration. The integration connecting the page to the calendar wasn’t forwarding the option in the form the calendar expected.
That changes where to look. Before changing more colors, follow the setting across the handoff: what was saved, what the integration sent, and what the embedded component actually received. Repeating the same instruction in the editor won’t repair a missing step between them.
In this case, explicitly delivering the theme option made the calendar stay dark while the browser reported a light system preference. That opposite-preference check was useful: testing only on a computer already in dark mode could have hidden the missing instruction.