Skip to content

alexpkarlsson/makeitdark

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 

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

Prerequisites

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

python makeitdark.py

Sidebar

Use the following custom Slack sidebar theme to make it consistent:

#000000,#000000,#00ff00,#00ff00,#00ff00,#00ff00,#31f700,#ff0000

Or use this one which kinda makes it look like Mojave dark mode, from slackthemes.net:

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

Reverting

If you want to uninstall the dark Slack theme you can run with the makeitlight option:

makeitdark.py makeitlight

About

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

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages