Skip to content

Python tool to inject a dark theme into the Slack desktop application

License

Notifications You must be signed in to change notification settings

LostConnection/makeitdark

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Slack dark theme injector tool

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');

Preview:

Sample screenshot of dark Slack theme

Prerequisites

Install nodejs

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.

Running

Unix

sudo python makeitdark.py
sudo python3 makeitdark.py

Windows

Make sure Slack is NOT running, then execute:

python makeitdark.py

Sidebar

Add this sidebar theme which kinda makes it look like Mojave dark mode:

#333336,#2e2e31,#666668,#ffffff,#277df6,#d7d5d4,#277df6,#277df6

Or add this sidebar theme for more consistency:

#17181c,#252525,#A36B31,#D2D6D6,#5C6380,#DEDEDE,#ADBA4E,#DB6668

Or this one, to make the colors match exactly:

#1b1c21,#2a323e,#0576b9,#FFFFFF,#2a323e,#FFFFFF,#62c462,#ff9000

You can fiddle around with custom sidebar themes at https://slackthemes.net

Slack Updates

When Slack updates it will overwrite the installed dark theme. When this happens just re-run the tool to make it dark again.

Authors

See also the list of contributors who participated in this project.

License

This project is licensed under the MIT License - see the LICENSE file for details

Acknowledgments

About

Python tool to inject a dark theme into the Slack desktop application

Resources

License

Stars

Watchers

Forks

Packages

No packages published