Skip to content

Instantly share code, notes, and snippets.

@bnoden
Created June 4, 2016 04:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bnoden/59cceb852db8443c6bd099b295901280 to your computer and use it in GitHub Desktop.
Save bnoden/59cceb852db8443c6bd099b295901280 to your computer and use it in GitHub Desktop.
(function bnoden() {
var body = document.querySelector('body'), cmLine = document.querySelectorAll('.CodeMirror-lines'),
cmVar = document.querySelectorAll('.cm-variable'), terminal = document.querySelectorAll('.CodeMirror-code'),
cmKey = document.querySelectorAll('.cm-keyword'), cmStr = document.querySelectorAll('.cm-string'),
c0de = document.querySelectorAll('code');
(function paint(){
body.style.background = '#CEF5D0'
for (var i = 0; i < cmVar.length; i++)
cmVar[i].style.color = '#FF7575'
for (var j = 0; j < cmLine.length; j++){
cmLine[j].style.background = '#FFFFEB'
cmLine[j].style.color = '#3B3B2B'
}
for (var k = 0; k < cmKey.length; k++)
cmKey[k].style.color = '#18BABA'
for (var l = 0; l < cmStr.length; l++)
cmStr[l].style.color = '#0086CF'
for (var m = 0; m < c0de.length; m++){
c0de[m].style.background = '#1C401E'
c0de[m].style.color = '#FFD2A6'
}
}());
} () );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment