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.


                <p class="my-class">Lorem ipsum, dolor sit amet consectetur adipisicing elit. Facilis saepe sapiente optio commodi at enim, voluptatibus asperiores assumenda aspernatur accusantium nam. Assumenda modi dolorem quo aliquid nam exercitationem sint accusantium?</p>
<p class="my-class">Fugit ad nisi, aliquam perferendis impedit laudantium distinctio sed, eum vel nam voluptate, neque placeat eveniet enim nobis! Provident cumque, fugit optio expedita repellendus quaerat cum quasi voluptates numquam consequatur?</p>
<p class="my-class">Ducimus illo placeat nobis ea quas perspiciatis eligendi nulla maiores cumque, recusandae numquam deleniti hic explicabo veritatis eos deserunt nihil esse dolorum iusto facilis ab omnis quae possimus! Perspiciatis, beatae.</p>


                .my-class {
  color: var(--text-color, var(--brand, rebeccapurple));

.my-class:nth-of-type(2) {
  --text-color: dodgerblue;

.my-class:nth-of-type(3) {
  --brand: tomato;

/*  */

body {
  padding: 1rem;

p {
  max-width: 60ch;
  font-size: 1.75rem;
  font-weight: bold;