Pen Settings



CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ 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.


                - for i in 1..10 do
  div class=(i > 5 ? 'out squished' : 'out')
    - for j in 1..3 do
        button -


                @import compass

@function rgb-bind($num)
  @return min(max($num, 0), 255)
$colors: #e54550, #eb783b, #eba43b, #ebcd0c, #8bd90d, #09de62, #00d486, #06c9b6, #0bc0d4, #3ba7eb, #7377eb, #8e63eb, #c344e3, #db42db, #eb4293

$lightColors: #f24954, #f77f3e, #f7ad3e, #f7d80c, #93e50e, #09eb67, #00e08e, #06d6c1, #0bcbe0, #3eb0f7, #797df7, #9568f7, #ce48f0, #e846e8, #f7459b
  margin: 0
  background: #333
  float: left
  width: 20%
  box-sizing: border-box
  margin: 66px 0
  @for $i from 1 through 5
    &:nth-child(#{$i}), &:nth-child(#{$i + 5})
      @for $j from 1 through 3
        & :nth-child(#{$j})
          background-color: nth($colors, ($i - 1)*3+$j)
            background-color: nth($lightColors, ($i - 1)*3+$j)
    width: 100%
    height: 66px
    position: relative
  width: 100%
  margin: 0
  border: 0
  height: 30px
  width: 30px
  position: absolute
  top: 50%
  left: 50%
  margin: -15px
  outline: 0
  border-radius: 15px
  font: bold 24px 'Josefin Sans', sans-serif
  text-align: center
  color: white



                // add the remove buttons
[]'button'), function (el) {
  el.addEventListener('click', function () { = 'none';
  }, false);
// ...and print the color list
console.log([]'.squished button', ':before'), function (el) {
  return document.defaultView.getComputedStyle(el, null).getPropertyValue('background-color');