<link href="//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">
<script src="//netdna.bootstrapcdn.com/bootstrap/3.0.0/js/bootstrap.min.js"></script>
<script src="//code.jquery.com/jquery-1.11.1.min.js"></script>
<!------ Include the above in your HEAD tag ---------->
<!DOCTYPE html><html class=''>
<head><script src='//production-assets.codepen.io/assets/editor/live/console_runner-079c09a0e3b9ff743e39ee2d5637b9216b3545af0de366d4b9aad9dc87e26bfd.js'></script><script src='//production-assets.codepen.io/assets/editor/live/events_runner-73716630c22bbc8cff4bd0f07b135f00a0bdc5d14629260c3ec49e5606f98fdd.js'></script><script src='//production-assets.codepen.io/assets/editor/live/css_live_reload_init-2c0dc5167d60a5af3ee189d570b1835129687ea2a61bee3513dee3a50c115a77.js'></script><meta charset='UTF-8'><meta name="robots" content="noindex"><link rel="shortcut icon" type="image/x-icon" href="//production-assets.codepen.io/assets/favicon/favicon-8ea04875e70c4b0bb41da869e81236e54394d63638a1ef12fa558a4a835f1164.ico" /><link rel="mask-icon" type="" href="//production-assets.codepen.io/assets/favicon/logo-pin-f2d2b6d2c61838f7e76325261b7195c27224080bc099486ddd6dccb469b8e8e6.svg" color="#111" /><link rel="canonical" href="https://codepen.io/jscottsmith/pen/VLzMLo?limit=all&page=4&q=color" />
<link rel='stylesheet prefetch' href='https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css'>
<style class="cp-pen-styles">html,
body {
height: 100%;
}
body {
background-color: #1B2B34;
font-family: "Lucida Grande", sans-serif;
font-size: 14px;
color: #65737E;
text-align: center;
display: -webkit-box;
display: -ms-flexbox;
display: flex;
}
.center {
margin: auto;
}
.console {
color: #CDD3DE;
font-family: "Lucida Console", Monaco, monospace;
}
.gray {
color: #1B2B34;
}
.red {
color: #EC5f67;
}
.orange {
color: #F99157;
}
.yellow {
color: #FAC863;
}
.green {
color: #99C794;
}
.teal {
color: #5FB3B3;
}
.blue {
color: #6699CC;
}
.purple {
color: #C594C5;
}
.brown {
color: #AB7967;
}
</style></head><body>
<div class="center">
<h1 class="console">console.log(<span class="red">R</span><span class="orange">O</span><span class="yellow">Y</span><span class="green">G</span><span class="teal">T</span><span class="blue">B</span><span class="purple">P</span>);</h1>
<p>Open the console for colorful logs</p>
</div>
<script src='//production-assets.codepen.io/assets/common/stopExecutionOnTimeout-b2a7b3fe212eaa732349046d8416e00a9dec26eb7fd347590fbced3ab38af52e.js'></script>
<script >/**
Colors from the Ocean Next Theme
https://github.com/voronianski/oceanic-next-color-scheme#color-palette
Post about console log styles:
http://jscottsmith.me/notes/styling-your-console-logs
**/
// Styles and Colors
var colors = {
"gray": "font-weight: bold; color: #1B2B34;",
"red": "font-weight: bold; color: #EC5f67;",
"orange": "font-weight: bold; color: #F99157;",
"yellow": "font-weight: bold; color: #FAC863;",
"green": "font-weight: bold; color: #99C794;",
"teal": "font-weight: bold; color: #5FB3B3;",
"blue": "font-weight: bold; color: #6699CC;",
"purple": "font-weight: bold; color: #C594C5;",
"brown": "font-weight: bold; color: #AB7967;"
}
// All the colors
console.log('%cHello', colors.gray);
console.log('%cHello', colors.red);
console.log('%cHello', colors.orange);
console.log('%cHello', colors.yellow);
console.log('%cHello', colors.teal);
console.log('%cHello', colors.blue);
console.log('%cHello', colors.purple);
console.log('%cHello', colors.brown);
// Log with multiple colors
console.log('%cGray %cRed %cOrange %cYellow %cGreen %cTeal %cBlue %cPurple %cBrown', colors.gray, colors.red, colors.orange, colors.yellow, colors.green, colors.teal, colors.blue, colors.purple, colors.brown);
// Log that's partially colored and the rest is default styling
console.log('%cWarning: %cThe cake is a lie', colors.red, '');
//# sourceURL=pen.js
</script>
</body></html>