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.


  Lorem, ipsum dolor sit amet consectetur adipisicing elit. Accusantium iusto eos laborum, reiciendis amet culpa doloremque, maxime beatae tempore dolorum at qui corporis ad, recusandae eveniet laboriosam quia molestias cumque?

  <svg style="position: absolute;" width="24" height="24" viewBox="0 0 24 24">
    <path d="M21,9H15V22H13V16H11V22H9V9H3V7H21M12,2A2,2 0 0,1 14,4A2,2 0 0,1 12,6C10.89,6 10,5.1 10,4C10,2.89 10.89,2 12,2Z" />

  Lorem ipsum dolor sit amet consectetur, adipisicing elit. Aperiam repellat numquam asperiores mollitia nulla et voluptatum nisi aspernatur nostrum veniam sint rem alias ipsam iusto, quibusdam eveniet pariatur ex delectus.


                svg {
  background: red;
  border-radius: 50%;
  fill: white;
  border: 2px solid red;

body {
  max-width: 450px;
  margin: 0 auto;
  padding: 2rem;
  font: 300 18px/1.6 system-ui;