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.


        <input type="radio" id="apple" name="wpskin" value="apple" />
        <label for="apple">Apple</label>
        <input type="radio" id="banana" name="wpskin" value="banana" checked />
        <label for="banana">Banana</label>
        <input type="radio" id="vector2" name="wpskin" value="vector2" />
        <label for="vector2">Vector</label>
        <div class="vectorOptions">
            We are releasing updates to Vector gradually over the next few
            years. If Legacy Vector is enabled you will not see new features. We
            would love your feedback. <a href="#">Learn more</a>.
          <label class="vectorLabel" for="vector"
            >Enable Legacy Vector (frozen on December 2019)</label
        <input type="radio" id="carrot" name="wpskin" value="carrot" />
        <label for="carrot">Carrot</label>
  <input id="wpEditToken" type="hidden" value="token+\" name="wpEditToken" />
  <input type="hidden" value="Special:Preferences" name="title" />
  <button type="submit" value="Save">Save</button>



                li {
  list-style: none;

.vectorOptions {
  padding: 0.5rem 2rem;
  background: #eaf3ff;

#vector2:not(:checked) ~ .vectorOptions {
  background: #eaecf080;

#vector2:not(:checked) ~ .vectorOptions > #vector,
#vector2:not(:checked) ~ .vectorOptions > .vectorLabel {
  /* Disable checkbox state changes. */
  pointer-events: none;

  /* Make the checkbox appear disabled. */
  opacity: 0.5;