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.


Auto Save

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 class="dev-box">Example
  <div class="dev-box">Nested Example</div>

<ul class="parent-box">
  <li>Lorem ipsum dolor sit amet consectetur adipisicing elit. Iusto accusantium magni aut nulla numquam placeat, in, ut eos voluptas molestiae praesentium, provident nam! Perferendis, <strong>mollitia maxime incidunt</strong> culpa quae quo!</li>
  <li>Culpa officia, rerum adipisci optio obcaecati dicta recusandae cupiditate et iste aliquid ipsum molestias ad ipsa quaerat corporis ducimus similique veritatis provident accusantium sed praesentium illum amet magni! Perspiciatis, illo.</li>
  <li>Rem iusto repudiandae commodi explicabo qui tempora nisi ad eligendi minima corrupti, tenetur eaque, <a href="#">velit quo autem</a>! Distinctio, labore! Magnam aliquid, possimus consequuntur fugiat iste id asperiores voluptas doloribus expedita?</li>
  <li>Molestiae error cumque aliquid earum, iure <em><strong>reprehenderit laudantium</strong></em> adipisci eligendi quo molestias quidem dolores, repudiandae dolor temporibus ratione doloremque sequi. Repudiandae recusandae maiores esse nulla. Vero quod aut reiciendis velit!</li>
<figure class="custom-box">
  <img src="" alt="A nice nature photo from unsplash" />
  <figcaption>Lorem ipsum dolor sit amet consectetur adipisicing elit. Mollitia quos necessitatibus debitis nobis voluptates maxime.</figcaption>


                /* Dev Box Inspector
 * Adds a high contrast outline to the specified element to highlight
 * the box edge and layout.
 * @param {string} $color (red) - outline color
 * @param {string} $background (yellow) - background highlight
 * @param {string} $size (1) - unitless outline size in px
 * @param {string} $outline (dotted) - outline style

@mixin dev-box($color: red, $background: yellow, $size: 1, $style: dotted) {
	background: fade-out($background, 0.95);
  outline: calc(#{$size} * 1px) $style $color;

	&:hover {
		background: fade-out($background, 0.75);
    outline: calc(#{$size} * 2px) $style $color;

/* Example Dev Boxes

// Basic Example
.dev-box {
  @include dev-box;

// Change Box Colors
.parent-box {
  @include dev-box(orange, green);

  // Highlight All Child Elements
  * {
    @include dev-box(#FF00FF, purple, 2);

// Customize All Options
.custom-box {
  @include dev-box(blue, yellow, 3, dashed);

/* IGNORE ME! */
figure {
  margin: 3em auto;
  max-width: 480px;
  width: 100%;

div {
  padding: 1.5em;
  text-align: center;

  div {
    margin: 1em auto 0;

ul {
  padding: 1em 2em;

  li {
    margin-bottom: 1em;

    &:last-child {
      margin-bottom: 0;

figure {
  padding-bottom: 1em;

  img {
    display: block;
    margin-bottom: 1em;

  figcaption {
    padding: 0 1em;

html {
  box-sizing: border-box;

  *,::after,::before {
    box-sizing: inherit;