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.


                <button class="bx--btn bx--btn--danger--primary" type="button" data-modal-target="#modal-qokxmgdrnoiwwrz9l1sda38fr">Show modal</button>

<div data-modal id="modal-qokxmgdrnoiwwrz9l1sda38fr" class="bx--modal bx--modal--danger" tabindex="-1">
  <div class="bx--modal-container">
    <div class="bx--modal-header">
      <p class="bx--modal-header__label bx--type-delta">Optional label</p>
      <p class="bx--modal-header__heading bx--type-beta">Modal heading</p>
      <button class="bx--modal-close" type="button" data-modal-close aria-label="close modal">
        <svg class="bx--modal-close__icon" width="10" height="10" viewBox="0 0 10 10" xmlns="">
          <title>Close Modal</title>
          <path d="M6.32 5L10 8.68 8.68 10 5 6.32 1.32 10 0 8.68 3.68 5 0 1.32 1.32 0 5 3.68 8.68 0 10 1.32 6.32 5z" fill-rule="nonzero"></path>

    <div class="bx--modal-content">
      <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean id accumsan augue. Phasellus consequat augue vitae tellus tincidunt posuere. Curabitur justo urna, consectetur vel elit iaculis, ultrices condimentum risus. Nulla facilisi. Etiam venenatis molestie tellus. Quisque consectetur non risus eu rutrum. </p>

      <div class="bx--modal-footer">
        <button class="bx--btn bx--btn--tertiary" type="button" data-modal-close>Secondary button</button>
        <button class="bx--btn bx--btn--danger--primary" type="button" aria-label="Danger" data-modal-primary-focus>Primary button</button>


                body {
  padding: 2rem 3%;