This tool writes a dark theme to the Slack desktop application. Dark theme was taken from the generated Dark Reader theme that was applied when I visited the web version of slack, like so:
Array.from(document.querySelectorAll('.darkreader')).map((n) => n.textContent).join('\n');
Sample screenshot:
Install python
You really should take the css file from this site, and host it somewhere you control. It's not a great idea to have a script inject an arbitrary CSS file from a domain outside of your control, into an application like Slack that could have sensitive data.
Don't trust me - fork the repo.
Unix
sudo chmod o+w /Applications/Slack.app/Contents/Resources/app.asar.unpacked/src/static/ssb-interop.js
python makeitdark.py
sudo chmod o-w /Applications/Slack.app/Contents/Resources/app.asar.unpacked/src/static/ssb-interop.jssudo chmod o+w /Applications/Slack.app/Contents/Resources/app.asar.unpacked/src/static/ssb-interop.js
python3 makeitdark.py
sudo chmod o-w /Applications/Slack.app/Contents/Resources/app.asar.unpacked/src/static/ssb-interop.jsWindows
python makeitdark.pyAdd this sidebar theme for consistency which kinda makes it look like Mojave dark mode, from slackthemes.net:
#17181c,#252525,#A36B31,#D2D6D6,#5C6380,#DEDEDE,#ADBA4E,#DB6668
If you want to uninstall the dark Slack theme you can run with the makeitlight option:
makeitdark.py makeitlight
When Slack updates it will overwrite the installed dark theme. When this happens just re-run the tool to make it dark again.
