Skip to content

Instantly share code, notes, and snippets.

@jjsub
Created April 5, 2018 21:32
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 jjsub/df94e67e104fe48f82d22e8a193aaf25 to your computer and use it in GitHub Desktop.
Save jjsub/df94e67e104fe48f82d22e8a193aaf25 to your computer and use it in GitHub Desktop.
console.log('%c Oh my heavens Amigos! ', 'background: #222; color: #bada55');
console.log('%c a colorful message', 'background: green; color: white; display: block;');
var styles = [
'background: linear-gradient(#D33106, #571402)'
, 'border: 1px solid #3E0E02'
, 'color: white'
, 'display: block'
, 'text-shadow: 0 1px 0 rgba(0, 0, 0, 0.3)'
, 'box-shadow: 0 1px 0 rgba(255, 255, 255, 0.4) inset, 0 5px 3px -5px rgba(0, 0, 0, 0.5), 0 -13px 5px -10px rgba(255, 255, 255, 0.4) inset'
, 'line-height: 40px'
, 'text-align: center'
, 'font-weight: bold'
].join(';');
console.log('%c a spicy log message ?', styles);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment