Pen Settings



CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ add another resource


Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource


Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.


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.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.


                <div id="header">
	<h1>This is a H1 within the header.</h1>
  <p>This is a paragraph within the header.</p>
  <small>LESS Variables documentation: <a href="" title="LESS Variables documentation"></a></small>


                /* LESS docs: */
@nice-blue: #5B83AD;
@light-blue: @nice-blue + #111;

#header { 
  color: @light-blue; /* compiles to #6c94be */ 
  margin: 2em;

h1:before {
  @fnord: "I am fnord. ";
  @var: 'fnord'; /* It is also possible to define variables with a variable name. */
  content: @@var; /* compiles to content: "I am fnord."; */
  color: purple;

/* STOP HERE. The rest of this CSS is for style purposes only and is not needed for the demo to function.
              (but be sure to substitue out the LESS variables and mixins I used above)
   ---------------------------------------------------------------------------------------------------- */

/* =VARIABLES (LESS @variables do not get compiled into the final CSS file)
   ---------------------------------------------------------------------------------------------------- */
@base-background:      #fffaef; /*cream*/
@base-text:            #4f4351; /*purple/grey*/

@color-subtitles:      #9a8864; /*mud*/
@color-highlight:      #e9e59b; /*lime*/

@color-button:         #f2f2f0; /*grey*/
@color-button-text:    darken(@color-button, 20%); /*grey*/
@color-button-border:  darken(@color-button, 10%); /*grey*/
@color-button-on:      #ffa640; /*orange*/

   ---------------------------------------------------------------------------------------------------- */
// Border Radius
.border-radius(@radius) {
  -webkit-border-radius: @radius;
     -moz-border-radius: @radius;
          border-radius: @radius;

// Drop shadows
.box-shadow(@shadow) {
  -webkit-box-shadow: @shadow;
     -moz-box-shadow: @shadow;
          box-shadow: @shadow;

// Opacity
.opacity(@opacity) {
  opacity: @opacity / 100;
  filter: ~"alpha([email protected]{opacity})";

   ---------------------------------------------------------------------------------------------------- */
body {
    background: @base-background;
    color: @base-text;
    font-family: Arial, Helvetica, sans-serif;
    margin: 2em;

h1, h2 { color: #4f4351; }
h3, h4, h5 { color: #4f4351; }

small, hr { 
    border-top: 1px solid fade(@light-blue, 20%);
    color: fade(@light-blue, 50%);
    display: block;
    margin: 1em 0;
    padding: 1em 0;
    a {
        &:link, &:visited {
            color: fade(@light-blue, 75%);

        &:hover, &:focus, &:active {
            color: fade(@light-blue, 90%);