• Stars
    star
    489
  • Rank 89,990 (Top 2 %)
  • Language SCSS
  • License
    Apache License 2.0
  • Created over 5 years ago
  • Updated 7 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Customize your Slack experience with tweaks and themes. Includes the famous Material Themes as well as other popular themes such as Monokai Pro, Dracula, Atom One, GitHub, Solarized, Night Owl...

mtslack (Material Themed Slack)

All Contributors

Beautify your Slack application from a list of popular themes!!!

IMPORTANT NOTICE

Since version 4.22.0, there is no longer a way to patch the Slack application as Slack has patched the option to add custom code.

This makes sense, as doing so would potentially allow people to inject malicious code into the application (this plugin isn't, of course).

Therefore, this great plugin will no longer patch the Slack application; instead, it will generate a code snippet that can be pasted into the Slack application to inject the themes manually.

Currently works only for Mac OS and Linux, as it uses pbcopy to handle the copy to clipboard. Contributions for Windows are welcome.

Theme List:

  • Material Oceanic oceanic.png
  • Material Darker darker.png
  • Material Palenight palenight.png
  • Material Lighter lighter.png
  • Material DeepOcean deepocean.png
  • Material Forest
  • Material Sky Blue
  • Material Sandy Beach
  • Material Volcano
  • Monokai Pro monokai.png
  • Arc Dark arcdark.png
  • Dracula dracula.png
  • GitHub github.png
  • GitHub Dark github_dark.png
  • Atom One Dark onedark.png
  • Atom One Light onelight.png
  • Solarized Dark solardark.png
  • Solarized Light solarlight.png
  • Night Owl nightowl.png
  • Light Owl lightowl.png
  • Moonlight moonlight.png
  • SynthWave '84
  • Catpuccin

Pledge

If you like this plugin, you can buy me a beer (or a coffee, or something else) using PayPal

You can also support this theme by subscribing to the OpenCollective. [Become a sponsor]

Backers

Thank you to all our backers! 🙏 [Become a backer]

Check also : https://www.material-theme.com/docs/support-us/

Sponsors

Support this project by becoming a sponsor. Your logo will show up here with a link to your website. [Become a sponsor]

Installation

Global installation (only for Unix based systems)

You will need node > 16 to use it.

  1. Run npm install -g mtslack in a terminal (or run sudo npx mtslack if you don't want to install it globally)

  2. Run the command sudo mtslack (in Windows, you need to open the Terminal in Administrator Mode)

  3. You will be prompted with a menu the following options:

    • Copy code to clipboard
    • Show plugin version
  4. Select Copy to clipboard to copy the code snippet to your clipboard.

  5. Open Slack in dev mode: export SLACK_DEVELOPER_MENU=true; open -a /Applications/Slack.app

  6. Go to View -> Developer -> Toggle Deve Tools

  7. In the Dev Tools Console tab, paste the code snippet

  8. ?????

  9. PROFIT!!!!!!!


Troubleshooting

  • I'm getting the following error after updating to version v25+:
internal/modules/run_main.js:54
    internalBinding('errors').triggerUncaughtException(
                              ^

Error [ERR_MODULE_NOT_FOUND]: Cannot find package '/usr/local/lib/node_modules/mtslack/node_modules/chalk/source/node_modules/' imported from /usr/local/lib/node_modules/mtslack/node_modules/chalk/source/index.js
    at packageMainResolve (internal/modules/esm/resolve.js:465:9)
    at packageResolve (internal/modules/esm/resolve.js:607:14)
    at moduleResolve (internal/modules/esm/resolve.js:659:14)
    at Loader.defaultResolve [as _resolve] (internal/modules/esm/resolve.js:752:11)
    at Loader.resolve (internal/modules/esm/loader.js:97:40)
    at Loader.getModuleJob (internal/modules/esm/loader.js:242:28)
    at ModuleWrap.<anonymous> (internal/modules/esm/module_job.js:50:40)
    at link (internal/modules/esm/module_job.js:49:36) {
  code: 'ERR_MODULE_NOT_FOUND'

-> That means you are using an older version of node. The plugin is now only compatible with ESM Modules, therefore older versions are not supported.

Please update to node v16 and reinstall mtslack.


Slack Tweaks

Since version 2.0 you can also profit from a bunch of Slack Tweaks to make the application more enjoyable. You can find a button to open the Slack Tweaks on the channels sidebar.

Slack Tweak Control Panel

Slack Tweaks

This panel controls which tweak toggles are available. This doesn't actually toggle the tweaks themselves!.

Once you've enabled a tweak, a new toggle button will appear on the Channel Header. Pressing on these buttons will activate the tweak.

You can also activate the toggle using a shortcut.

Tweaks

These settings are saved in the application's Local Storage.

Highlight Code [NEW!] (Ctrl+Alt+H)

Automatically detects code blocks and highlight then using highlight.js. You can annotate the code blocks by setting the language name as the first line.

Example: to annotate the code as a javascript code, write:

javascript
function foo() {
}

Modal Overlays (Ctrl+Alt+O)

This button will toggle an overlay to display whenever settings are open.

Dim Absent People (Ctrl+Alt+D)

This button will dim absent people from the sidebar, making the present ones more prominent.

Loop Over selected themes (Ctrl+Alt+T)

This button will loop over the available themes, allowing you to choose a theme in realtime.

Toggle Custom Font (Ctrl+Alt+F)

Switch the fonts used in the app with the font you've defined in the Slack Tweak Settings.

Toggle Custom Monospace Font (Ctrl+Alt+M)

Switch the monospace font size and family used in the app with the font you've defined in the Slack Tweak Settings.

Accent Color (Ctrl+Alt+A)

Switch the current theme's accent color with the one of your choice. You can set the desired color in the Slack Tweak Settings.

Links Color (Ctrl+Alt+L)

Switch the current theme's links color with the one of your choice. You can set the desired color in the Slack Tweak Settings.


Development

Building styles

This project consists in two parts:

  • The CLI, used for applying the styles
  • The Styles, written with Sass (Node-sass)

The cli is found in the lib directory while the styles are found in the styles directory.

Then run npm run styles or npm run debugStyles to compile the scss files in dist/slack.min.css or dist/slack.css

Apply the styles

Using the WebApp

Open Slack on the browser. It has the useful Developer Tools available to them so you can debug with ease.

To test your CSS, install a Stylish-like extension (https://chrome.google.com/webstore/detail/stylish-custom-themes-for/fjnbnpbmkenffdnngjfgmeleoegfcffe?hl=en) then create a new style for slack and paste the CSS inside and save.

You should already see all your styles applied. Please note that there are some differences between the web app and the native app.

Using the Electron app

  1. Run npm run server to run a local server
  2. Run watchStyles or watchScripts to watch for changes in styles or code
  3. Run npm run local to run apply with the styles pointing to localhost
  4. Run npm run debug

IMPORTANT: Please make sure to have enabled "Disable cache when devtools is open" in Chrome Settings.

Also don't forget to re-apply the production styles before quitting :)


Instead of launching Slack normally, you'll need to enable developer mode to be able to inspect things.

  • Mac: export SLACK_DEVELOPER_MENU=true; open -a /Applications/Slack.app

  • Windows: export SLACK_DEVELOPER_MENU=true; ~/AppData/Local/slack.exe

  • Linux: Same as the others, but for Linux (depends whether installed from the Marketplace or from the Web)

License

Apache 2.0

Acknowledgements

Thanks to https://github.com/widget-/slack-black-theme for the idea!

License

Apache 2.0

Contributors

Thanks goes to these wonderful people (emoji key):

``

Saghen

🐛🚇🎨

Danilo Resende

🐛

jlevier

🐛

Siddhesh Mhadnak

🐛

This project follows the all-contributors specification. Contributions of any kind welcome!

More Repositories

1

a-file-icon-idea

Atom Material Icons for JetBrains - Replace File and UI Icons for better visual grepping.
Kotlin
211
star
2

iconGenerator

Icon Collection used within the Atom Material Icons plugins (for JetBrains, Chrome and Firefox)
TypeScript
65
star
3

material-theme-issues

Issues Repository for the Material Theme UI plugin for JetBrains
54
star
4

material-theme-ui-lite

Material Theme Plugin for JetBrains IDEs (Lite version)
Kotlin
45
star
5

color-highlighter

JetBrains plugin to preview colors directly from within the code.
Kotlin
40
star
6

a-file-icon-web

Atom Material Icons plugin for Google Chrome and Firefox! Supports GitHub, GitLab, Gitee and BitBucket.
TypeScript
17
star
7

dracula-theme-jetbrains

Theme for Dracula (http://www.draculatheme.com) based on the Material Theme UI plugin
9
star
8

a-file-icon-vscode

Atom Material Icons for VSCode
TypeScript
7
star
9

Image-Icon-Viewer

Preview images and icons directly from the Project View in IntelliJ products
Kotlin
7
star
10

permify-jetbrains

Permify Language Support for JetBrains IDEs
Kotlin
5
star
11

focus-mode

Kotlin
4
star
12

eslint-config

Mallowigi's ESLint config. A mixup of eslint configs for JavaScript, React and TypeScript
JavaScript
3
star
13

bundledThemes

JavaScript
2
star
14

material.itermcolors

CSS
2
star
15

material-theme-docs

Documentation for the Material Theme UI plugin for JetBrains
SCSS
2
star
16

pfscript

PF Script
2
star
17

urss

A RSS viewer built with Angular JS and Semantic UI
JavaScript
2
star
18

mallowigi-userstyles

CSS
1
star
19

polymerization

Video Player in Polymer
HTML
1
star
20

gameCollection

An application to manage video game collections
JavaScript
1
star
21

ng-switch-when-expr

JavaScript
1
star
22

anchovy

Kotlin
1
star
23

mallowigi-keyboard

Mallowigi's JetBrains Keymap: A mix between Windows and Mac shortcuts \<_>/
Kotlin
1
star
24

super-duper-telegram

Nx/React-Query/Mantine/API playground
TypeScript
1
star
25

guesswhom

JavaScript
1
star
26

WixUiBundle

TODO
PHP
1
star
27

mallowigi

1
star
28

mailposter

JavaScript
1
star
29

webstorm-settings-colors

1
star