Skip to content

Instantly share code, notes, and snippets.

@eadz
Created April 9, 2014 02:27
Show Gist options
  • Save eadz/10220496 to your computer and use it in GitHub Desktop.
Save eadz/10220496 to your computer and use it in GitHub Desktop.
slack custom css
/*
User Stylesheet for Slack.
Use with http://www.squarefree.com/userstyles/make-bookmarklet.html
to make a custom css Bookmarket
*/
.light_theme .message {
color: #fff;
font-size: 16px;
}
#msgs_div {
background-color: #000;
}
.light_theme .message_sender {
color: #fff !important;
background-color: #333;
}
.message .mention {
background: #333;
color: #f60;
font-weight: bold;
}
.member_preview_link {
display: none;
}
@christydennison
Copy link

How did you load this into slack?

@christydennison
Copy link

I guess you didn't use the mac app. Nvm.

@zlx
Copy link

zlx commented Oct 28, 2014

can I use it for mac app?

@beaugunderson
Copy link

The Mac app stores everything in /Applications/Slack.app/Contents/Resources/public/index.html, I think you could add something like <link ref="stylesheet" type="text/css" href="file:///somewhere.css"> there.

@igreg
Copy link

igreg commented Jun 8, 2015

@beaugunderson tried editing Slack's index.html to alter styles but doesn't seem to have any effect on Slack UI beyond the loading screen.

@itsbrex
Copy link

itsbrex commented Jun 10, 2015

Any way we can force the mac app to use custom styles past the loading screen?

@MRurka
Copy link

MRurka commented Jun 19, 2015

Playing with the CSS would be so helpful. Would like to disable giphy in certain channels only.

@kolodny
Copy link

kolodny commented Nov 19, 2015

The problem with editing the mac app is that when slack is "ready" it just redirects to the slack page so all the stylesheets are lost. Search for document.location.replace(url);
image

@smeevil
Copy link

smeevil commented Jan 26, 2016

Hi,

I was just wondering if any of you found a solution in the mean time to apply/inject a user-style ?

@aymen-mouelhi
Copy link

@mellertson
Copy link

Personally I prefer an install-able client over the web-client. That being said, has anyone tried using something like Stylish with a web-client? Although I'm not keen on using a web-client for Slack, it would have the advantage of retaining any CSS mods put in by the user.

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