cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

Pen Settings

CSS Base

Vendor Prefixing

Add External CSS

These stylesheets will be added in this order and before the code you write in the CSS editor. You can also add another Pen here, and it will pull the CSS from it. Try typing "font" or "ribbon" below.

Quick-add: + add another resource

Add External JavaScript

These scripts will run in this order and before the code in the JavaScript editor. You can also link to another Pen here, and it will run the JavaScript from it. Also try typing the name of any popular library.

Quick-add: + add another resource

Code Indentation


Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

              <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>
body {
  height: 100%;

body {
  background-color: #1B2B34;
  font-family: "Lucida Grande", sans-serif;
  font-size: 14px;
  color: #65737E;
  text-align: center;
  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;

Colors from the Ocean Next Theme

Post about console log styles:

// 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, '');
Loading ..................