Use light mode chat in Twitch Theatre Mode

software developer && gamer passionate about software development && games ... catch my twitch streams on twitch where I stream: https://twitch.tv/techygrrrl
Search for a command to run...

software developer && gamer passionate about software development && games ... catch my twitch streams on twitch where I stream: https://twitch.tv/techygrrrl
No comments yet. Be the first to comment.
About 2 days ago, I learned that you can use web APIs to edit video. In the past, I've used ffmpeg, which is an amazing open-source cross-platform command line tool that pretty much every company uses

If you’ve been reading my blog or watching my Twitch streams you may have already seen me talk about text-to-speech apps. If not, a quick overview: I built a text-to-speech app for Windows using C# and Windows Presentation Framework. You can read ab...

sf6vid is a command line tool that allows you to censor player data in a Street Fighter 6 game play video. How it works sf6vid is a command line tool. In order to use it you need to install it and execute the file from your terminal. In the future th...

I made a user script as a gist for making the Twitch Dev site use dark mode. It should work on all dev.twitch.tv and dev.twitch.com pages at the /docs path. If you find a bug, let me know in the blog or gist comments. https://gist.github.com/techygrr...

techygrrrl's blog
9 posts
Twitch streamer from Canada. If I'm not playing video games 🕹 I'm probably coding and developing websites or apps 👩🏻💻
Currently, Twitch has both dark and light modes for the UI, but when you go into Theatre Mode, your preference for light mode is ignored and you're forced to use dark mode.
Many users find it easier to read in light mode, but the option to view chat in light mode while in theatre mode is not currently available natively.
Given that this has been an open issue on Twitch's UserVoice since 2017, and given that, unfortunately, Twitch hasn't addressed this accessibility concern yet, I decided to write a script to solve this problem. I was browsing through the Accessibility topic in Twitch's UserVoice and found this issue and thought "this is relatively easy to fix" and decided to write a fix.
I wrote a user script, which can be installed via any user script manager that listens for presses of Alt + T and assigns your preferred theme.

Here's a preview of it working in action.

In order to toggle it, you must press Alt+T outside of the chat input box. It doesn't currently work when clicking the icon in the video frame.
It works by toggling the global theme on the html element.
Normally, with light mode enabled, the classes on the html element are tw-root--hover js-focus-visible tw-root--theme-light, the important one being tw-root--theme-light.

For some reason, when you toggle into theatre mode, this class changes to tw-root--theme-dark even if your desired theme is light. This is probably because Twitch makes the assumption that you will want it to be dark for theatre mode.

My script changes it to tw-root--theme-light if the page loaded with the light theme as the preference.
Currently, there are a couple of limitations.
If you're comfortable with these limitations, you might find this helpful.
Tested in a Chromium browser on both Windows and macOS with external and built-in keyboards.
If you have a user script manager installed, you can install the script into it by clicking on the "Raw" button on the Github gist.

After you press the "Raw" button, your user script manager should open on the installation screen. In the below screenshot it says "Confirm re-installation" but if you've never installed it, it should show "Install" or similar. I'm using ViolentMonkey but you can use any user script manager you like (there are lots to choose from).

Visit the below embed to View and install the user script.