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.


                <a href="#" ui="button border small">Button</a>

<button ui="button big round border primary">

<input type="submit" value="Button" ui="button danger invert pill">


                @import "nib"

color = {
  primary: #0ca1dd,
  success: #48e25b,
  info:    #59c9f6,
  warning: #ff8329,
  danger:  #ff3229

  // [small, big]
  // [round, pill]
  // [border]
  // [primary, success, info, warning, danger]
  // [invert]
  // [stretch]

  cursor: pointer
  transition: all 200ms ease
  border: 0
  background: darken(white, 5%)
  color: lighten(black, 20%)
  padding: .5em 1.75em
  text-decoration: none
    background: darken(white, 10%)

    padding: .25em 1em
    font-size: .75em
    padding: 1em 3em
    font-size: 1.25em

    border-radius: 5px

    border-radius: 999em

    border: 1px solid darken(white, 10%)
      border-color: darken(white, 15%)

    background: color.primary
    color: white
      background: darken(color.primary, 5%)
    border-color: darken(color.primary, 5%)
      border-color: darken(color.primary, 10%)

    background: color.success
    color: white
      background: darken(color.success, 5%)
    border-color: darken(color.success, 5%)
      border-color: darken(color.success, 10%)

    color: white
      background: darken(, 5%)
    border-color: darken(, 5%)
      border-color: darken(, 10%)

    background: color.warning
    color: white
      background: darken(color.warning, 5%)
    border-color: darken(color.warning, 5%)
      border-color: darken(color.warning, 10%)

    background: color.danger
    color: white
      background: darken(color.danger, 5%)
    border-color: darken(color.danger, 5%)
      border-color: darken(color.danger, 10%)
    border: 2px solid darken(white, 5%)
    background: none
      background: darken(white, 5%)

    color: color.primary
    border-color: color.primary
      color: white
      background: color.primary

    color: color.success
    border-color: color.success
      color: white
      background: color.success

      color: white

    color: color.warning
    border-color: color.warning
      color: white
      background: color.warning

    color: color.danger
    border-color: color.danger
      color: white
      background: color.danger

    width: 100%

  padding: 3rem

  margin-bottom: 1rem