Created
April 5, 2018 21:32
-
-
Save jjsub/df94e67e104fe48f82d22e8a193aaf25 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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