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.


                <base href="">
<script src="../webcomponentsjs/webcomponents-lite.js"></script>

<link rel="icon" href="demo/favicon.ico" type="image/x-icon" />
<link rel="shortcut icon" href="demo/favicon.ico" type="image/x-icon" />

  // setup Polymer options
  window.Polymer = { lazyRegister: true, dom: "shadow" };
  // load webcomponents polyfills
  (function() {
    if (
      "registerElement" in document &&
      "import" in document.createElement("link") &&
      "content" in document.createElement("template")
    ) {
      // browser has web components
    } else {
      // polyfill web components
      var e = document.createElement("script");
      e.src = "../../webcomponentsjs/webcomponents-lite.js";

<link rel="import" href="../polymer/polymer-element.html">
<link rel="import" href="../iron-demo-helpers/demo-snippet.html">
<link rel="import" href="../iron-demo-helpers/demo-pages-shared-styles.html">
<link rel="import" href="slate-font-awesome.html">

  <style is="custom-style" include="demo-pages-shared-styles slate-font-awesome">
    .centered {
      max-width: 50vw;

<body unresolved>
  <div class="centered">
        <dom-module id="slate-font-awesome-example">
            <style include="slate-font-awesome"></style>
            <i class="fa fa-camera-retro lg"></i> fa-lg <br>
            <i class="fa fa-camera-retro fa-2x"></i> fa-2x <br>
            <i class="fa fa-camera-retro fa-3x"></i> fa-3x <br>
            <i class="fa fa-fighter-jet fa-spin fa-3x fa-fw"></i> Top Gun Style :) <br>
            <span class="fa-stack fa-lg">
              <i class="fa fa-camera fa-stack-1x"></i>
              <i class="fa fa-ban fa-stack-2x" style="color: red;"></i>
            </span> fa-ban on fa-camera

            HTMLImports.whenReady( function() {
              class SlateFontAwesomeExample extends Polymer.Element {
                static get is() {
                  return "slate-font-awesome-example";