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.button(href='#') Join now!

    h2 Puppies are cute!
    p Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Consequat semper viverra nam libero justo laoreet sit. Integer enim neque volutpat ac tincidunt. Justo donec enim diam vulputate ut pharetra sit amet. Volutpat consequat mauris nunc congue nisi vitae. Vitae tortor condimentum lacinia quis vel. Lacinia quis vel eros donec ac odio. Vehicula ipsum a arcu cursus vitae congue mauris rhoncus. Egestas purus viverra accumsan in. Etiam dignissim diam quis enim lobortis scelerisque fermentum dui faucibus. Aliquet enim tortor at auctor urna nunc id cursus metus. Lacus vestibulum sed arcu non odio euismod lacinia at.

    p Augue neque gravida in fermentum et sollicitudin ac. Mauris pharetra et ultrices neque. Tellus in metus vulputate eu scelerisque felis imperdiet proin fermentum. Non quam lacus suspendisse faucibus. Nisi quis eleifend quam adipiscing vitae proin sagittis. Nunc faucibus a pellentesque sit amet. Semper eget duis at tellus at urna condimentum mattis pellentesque. Turpis cursus in hac habitasse platea dictumst quisque. Nullam non nisi est sit amet facilisis. Purus faucibus ornare suspendisse sed nisi lacus sed viverra. Aliquam id diam maecenas ultricies. Eget nunc lobortis mattis aliquam faucibus.



                /* other-component component file */
.other-component {
  display: grid;
  grid-template-columns: 300px 1fr;
  grid-template-rows: auto 1fr;

  &__content {
    margin-left: 20px;
    grid-column: 2;
    grid-row: 1 / span 2; 
  &__image {
    grid-row: 2;

/* button component file */
.button {
  /* styles that we want to appear on every button by default */
  padding: 10px;
  background: darkgreen;
  color: #fff;
  border: 0;
  text-decoration: none;
  text-align: center;
  display: inline-block;
  /* Oh... this is a problem now :( */
  grid-column: 3;

/* resets file */
img { width: 100%; }
h2 { margin-top: 0; }