Pen Settings

HTML

CSS

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

JavaScript

Babel is required to process package imports. If you need a different preprocessor remove all packages first.

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

Behavior

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.

HTML

              
                %p.headline
  This is a headline
%p.headline-alt
  This is a headline

%p.body
  This is some body text
%p.body-alt
  This is some body text

%p.caption1
  This is a caption1
%p.caption1-alt
  This is a caption1

%p.caption2
  This is a caption2
%p.caption2-alt
  This is a caption2

%p.footnote
  This is a footnote
%p.footnote-alt
  This is a footnote

%p.short-body
  This is some short body text
%p.short-body-alt
  This is some short body text

%p.short-caption1
  This is a short caption1
%p.short-caption1-alt
  This is a short caption1

%p.short-footnote
  This is a short footnote
%p.short-footnote-alt
  This is a short footnote

%p.short-headline
  This is a short headline
%p.short-headline-alt
  This is a short headline

%p.short-subheadline
  This is a short subheadline
%p.short-subheadline-alt
  This is a short subheadline
              
            
!

CSS

              
                .headline {
  font: -apple-system-headline;
}
.body {
  font: -apple-system-body;
}
.caption1 {
  font: -apple-system-caption1;
}
.caption2 {
  font: -apple-system-caption2;
}
.footnote {
  font: -apple-system-footnote;
}
.short-body {
  font: -apple-system-short-body;
}
.short-caption1 {
  font: -apple-system-short-caption1;
}
.short-footnote {
  font: -apple-system-short-footnote;
}
.short-headline {
  font: -apple-system-short-headline;
}
.short-subheadline {
  font: -apple-system-short-subheadline;
}

.headline-alt {
  font-family: -apple-system-font, HelveticaNeue-Medium, Helvetica, sans-serif;
  font-size: 17px;
  font-weight: bold;
  line-height: 24px;
}
.body-alt {
  font-family: -apple-system-font, HelveticaNeue, Helvetica, sans-serif;
  font-size: 17px;
}
.caption1-alt {
  font-family: -apple-system-font, HelveticaNeue, Helvetica, sans-serif;
  font-size: 12px;
}
.caption2-alt {
  font-family: -apple-system-font, HelveticaNeue, Helvetica, sans-serif;
  font-size: 11px;
}
.footnote-alt {
  font-family: -apple-system-font, HelveticaNeue, Helvetica, sans-serif;
  font-size: 13px
}
.short-body-alt {
  font-family: -apple-system-font, HelveticaNeue, Helvetica, sans-serif;
  font-size: 17px;
}
.short-caption1-alt {
  font-family: -apple-system-font, HelveticaNeue, Helvetica, sans-serif;
  font-size: 12px;
}
.short-footnote-alt {
  font-family: -apple-system-font, HelveticaNeue, Helvetica, sans-serif;
  font-size: 13px;
}
.short-headline-alt {
  font-family: -apple-system-font, HelveticaNeue-Medium, Helvetica, sans-serif;
  font-weight: bold;
  font-size: 17px;
}
.short-subheadline-alt {
  font-family: -apple-system-font, HelveticaNeue-Medium, Helvetica, sans-serif;
  font-weight: bold;
  font-size: 15px;
}
              
            
!

JS

              
                
              
            
!
999px

Console