Skip to content

Instantly share code, notes, and snippets.

Avatar
🔗
linqapp.com/patrick

Patrick Sullivan pdsullivan

🔗
linqapp.com/patrick
View GitHub Profile
@pdsullivan
pdsullivan / slack dark desktop.md
Created Feb 27, 2017
turn on slack desktop dark theme
View slack dark desktop.md
  1. set export SLACK_DEVELOPER_MENU="true"
  2. open -a "slack"
  3. view -> developer -> toggle developer tools
  4. Paste the below code into the console and run it.
var cobaltUrl = 'https://gist.githubusercontent.com/pdsullivan/32bad68541ccb66ae6d4948f7c9e88bb/raw/f22e0f5de5ff25d2c06337e8a0ea1ce25885b0e4/cobalt.css';
$.get(cobaltUrl).then(function(css) {
 $('').text(css).appendTo('body')
View cobalt.css
.cm-s-cobalt.CodeMirror { background: #002240; color: white; }
.cm-s-cobalt div.CodeMirror-selected { background: #b36539; }
.cm-s-cobalt .CodeMirror-line::selection, .cm-s-cobalt .CodeMirror-line > span::selection, .cm-s-cobalt .CodeMirror-line > span > span::selection { background: rgba(179, 101, 57, .99); }
.cm-s-cobalt .CodeMirror-line::-moz-selection, .cm-s-cobalt .CodeMirror-line > span::-moz-selection, .cm-s-cobalt .CodeMirror-line > span > span::-moz-selection { background: rgba(179, 101, 57, .99); }
.cm-s-cobalt .CodeMirror-gutters { background: #002240; border-right: 1px solid #aaa; }
.cm-s-cobalt .CodeMirror-guttermarker { color: #ffee80; }
.cm-s-cobalt .CodeMirror-guttermarker-subtle { color: #d0d0d0; }
.cm-s-cobalt .CodeMirror-linenumber { color: #d0d0d0; }
.cm-s-cobalt .CodeMirror-cursor { border-left: 1px solid white; }