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.


                <h1>Hello World</h1>

<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Velit <i>asperiores</i> cupiditate dolor quo iste animi, eveniet in inventore <i>obcaecati</i> quisquam architecto pariatur et perspiciatis, deleniti voluptatum consequuntur <i>voluptas</i> voluptatibus repellat!</p>

<!-- This is where we include the worklet -->
<script src=''></script>


                // This is where we use the custom properties

@supports (background: paint(something)) {
  h1 {
      Optionally set property values. 
      This can be done at root or local scope 
    --extra-sparkleNumber: 60; /* defaults to 30 */
    --extra-sparkleHue: 180; /* Defaults to 60 (yellow) */
    --extra-sparkleHeightVariance: 12; /* Defaults to 9 */
    --extra-sparkleWidthVariance: 15; /* Defaults to 12 */
    --extra-sparkleWeightVariance: 3; /* Defaults to 2 */

    background: paint(extra-sparkles);
  i {
    --extra-sparkleNumber: 10; /* defaults to 30 */
    --extra-sparkleHue: 30; /* Defaults to 60 (yellow) */
    --extra-sparkleHeightVariance: 5; /* Defaults to 9 */
    --extra-sparkleWeightVariance: 2; /* Defaults to 2 */
    background: paint(extra-sparkles);

// Additional Styling

body {
  font-family: monospace;
  height: 100vh;
  width: 100vw;
  text-align: center;
  padding: 0;
  margin: 0;

h1 {
  font-size: 4rem;
  display: inline-block;
  font-weight: 100;
  padding: 1rem;
  margin: 1rem auto;
  position: relative;

p {
  max-width: 660px;
  margin: 0 auto;
  font-weight: 300;
  font-size: 1.2rem;
  line-height: 2;
  text-align: left;