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.


                <aside class="s-modal s-modal__celebration z-base" id="modal-base" aria-hidden="false">
    <div class="s-modal--dialog wmx4" role="document">
        <h1 class="s-modal--header" id="modal-title">You’re published!</h1>
        <p class="s-modal--body" id="modal-description">Sometimes it’s appropriate to confirm a user’s action with some confetti in celebration. You can combine our confetti background utility with some extra spacing by adding the <code>.s-modal__celebration</code> modifier.</p>
        <div class="s-modal--footer">
            <button class="grid--cell s-btn s-btn__primary" type="button">Got it!</button>
        <button class="s-modal--close s-btn s-btn__muted" aria-label="Close">
            <svg aria-hidden="true" class="svg-icon iconClearSm" width="14" height="14" viewBox="0 0 14 14"><path d="M12 3.41L10.59 2 7 5.59 3.41 2 2 3.41 5.59 7 2 10.59 3.41 12 7 8.41 10.59 12 12 10.59 8.41 7 12 3.41z"></path></svg>
<button class="s-btn s-btn__muted s-btn__filled ps-fixed r12 t12" onclick="document.getElementsByTagName('body')[0].classList.toggle('theme-dark');">Toggle dark mode</button>