← Twitch UserVoice Settings and activity 2 results found Extensions cause the stream to turn black 1 vote Vote Vote Vote We're glad you're herePlease sign in to leave feedback Signed in as (Sign out) Close Close Vote We’ll send you updates on this idea 0 comments · Extensions » Bugs · Delete… · Admin → How important is this to you? Not at all You must login first! Important You must login first! Critical You must login first! We're glad you're herePlease sign in to leave feedback Signed in as (Sign out) Close Close avi12 shared this idea · Nov 23, 2022 Dark mode by default 129 votes Vote Vote Vote We're glad you're herePlease sign in to leave feedback Signed in as (Sign out) Close Close Vote We’ll send you updates on this idea 6 comments · User Accessibility » Feature Request · Delete… · Admin → How important is this to you? Not at all You must login first! Important You must login first! Critical You must login first! We're glad you're herePlease sign in to leave feedback Signed in as (Sign out) Close Close An error occurred while saving the comment avi12 commented · Jan 28, 2021 · Edit… · Delete… It's easy to implement as these 3 lines of JavaScript: const instanceDarkMode = matchMedia("(prefers-color-scheme: dark)"); let isDark = instanceDarkMode.matches; instanceDarkMode.onchange = ({ matches }) => { isDark = matches; }; Save Submitting... avi12 supported this idea · Jan 28, 2021
It's easy to implement as these 3 lines of JavaScript:
const instanceDarkMode = matchMedia("(prefers-color-scheme: dark)");
let isDark = instanceDarkMode.matches;
instanceDarkMode.onchange = ({ matches }) => {
isDark = matches;
};