Skip to content

Instantly share code, notes, and snippets.

@puranjayjain
Created June 29, 2019 11:49
Show Gist options
  • Save puranjayjain/817daf49dd9e78a7be2e7dcd3675833d to your computer and use it in GitHub Desktop.
Save puranjayjain/817daf49dd9e78a7be2e7dcd3675833d to your computer and use it in GitHub Desktop.
Dark theme on slack

For Mac

  1. Go to the applications folder and right click Slack.app and click show packaged contents
  2. Now go to '/Contents/Resources/app.asar.unpacked/src/static/'
  3. Open ssb-interop.js file in your code editor.
  4. add the code section as mentioned at the bottom to it and save it
  5. Now restart the slack app

For Windows

  1. Go to %homepath%\AppData\Local\slack\
  2. Now go to '\Contents\Resources\app.asar.unpacked\src\static'
  3. Open ssb-interop.js file in your code editor.
  4. add the code section as mentioned at the bottom to it and save it
  5. Now restart the slack app

The code

document.addEventListener('DOMContentLoaded', function() {
 $.ajax({
   url: 'https://cdn.rawgit.com/laCour/slack-night-mode/master/css/raw/black.css',
   success: function(css) {
     $("<style></style>").appendTo('head').html(css);
   }
 });

});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment