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.


                <base href="">
<script src="../webcomponentsjs/webcomponents-lite.js"></script>
<link rel="import" href="cosmoz-bottom-bar-view.html">
<link rel="import" href="../paper-button/paper-button.html">
  body {
    color: #DBDFAC;
    text-shadow: 1px 2px #3B1F2B;
    background: linear-gradient(red, yellow);
    font-family: sans-serif;
    margin: 0;
    height: 100vh;
    flex-direction: column;
    display: flex;
  .container {
    padding: 10px;
  p {
    line-height: 1.5rem;
  <div slot="scroller-content">
    <div class="container">
      <h3>SUNSET 🌞</h3>
      <p>Sunset is the time of day when our sky meets the outer space solar winds. There are blue, pink, and purple swirls, spinning and twisting, like clouds of balloons caught in a blender. The sun moves slowly to hide behind the line of horizon, while the moon races to take its place in prominence atop the night sky. People slow to a crawl, entranced, fully forgetting the deeds that still must be done. There is a coolness, a calmness, when the sun does set.</p>
  <div slot="info">5 dummy actions</div>
  <paper-button>Action 1</paper-button>
  <paper-button>Action 2</paper-button>
  <paper-button>Action 3</paper-button>
  <paper-button>Action 4</paper-button>
  <paper-button>Action 5</paper-button>