Skip to content

Instantly share code, notes, and snippets.

@tsbits
Last active August 29, 2015 14:08
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 tsbits/72c4e03f060d50f2f266 to your computer and use it in GitHub Desktop.
Save tsbits/72c4e03f060d50f2f266 to your computer and use it in GitHub Desktop.
Colored console.log
// Pour les retours à la ligne mettre \n
// %c applique du css. A chaque %c, ca applique le css suivant,
// donc de 'Made by Creaktif' a '\n' ca applique 'background: #cdcdcd; color: #fff'
// et après celui ci 'background: #8a8a8a; color: #fff', car il y a de nouveau un %c après le \n
console.log('%c MADE BY CREAKTIF \n%c www.creaktif.com ', 'background: #cdcdcd; color: #fff', 'background: #8a8a8a; color: #fff');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment