cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

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

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

Code Indentation

     

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.

            
              %article.content  
  %h1 Vertical rhythm
  
  %p Lorem ipsum isn't a great choice to use for demonstrating good typography. Ideally you would use real content. However for the demonstration in the post, I think it's acceptable. I could use my content, it would be strange and cause some duplication I imagine.
  
  %h2 A heading that is quite long to show the line height
  %p Lorem ipsum dolor sit amet, consectetur adipiscing elit. Restinguet citius, si ardentem acceperit. Sed tu istuc dixti bene Latine, parum plane. Quid enim tanto opus est instrumento in optimis artibus.
  
  %h3 A heading related to the one above
  %p Lorem ipsum dolor sit amet, consectetur adipiscing elit. Esse enim quam vellet iniquus iustus poterat inpune.
  
  %h4 A heading related to the one above
  %p Lorem ipsum dolor sit amet, consectetur adipiscing elit. Esse enim quam vellet iniquus iustus poterat inpune.
  
  %h5 A level 5 heading
  %p Lorem ipsum dolor sit amet, consectetur adipiscing elit. Esse enim quam vellet iniquus iustus poterat inpune.
  
  %h6 A level 6 heading
  %p Lorem ipsum dolor sit amet, consectetur adipiscing elit. Esse enim quam vellet iniquus iustus poterat inpune.
  
            
          
!
            
              body {
  font-size: 16px;
  line-height: 1.5;

  // Demonstrate the vertical rhythm at 12px
  background-image: linear-gradient(#eee 1px, transparent 1px);
  background-size: 100% 12px; }

/* Aligns to 72px */
h1 {
  font-size: 36px;
  line-height: 1.16666666666;
  margin-bottom: 30px; }

/* Aligns to 72px */
h2 {
  font-size: 30px;
  line-height: 1.2;
  padding-top: 24px;
  margin-bottom: 12px; }

/* Aligns to 48px */
h3 {
  font-size: 24px;
  line-height: 1.25;
  padding-top: 12px;
  margin-bottom: 6px; }

/* Aligns to 36px */
h4 {
  font-size: 21px;
  line-height: 1.3333333;
  padding-top: 12px;
  margin-bottom: 8px; }

/* Aligns to 36px */
h5 {
  font-size: 18px;
  line-height: 1.5;
  padding-top: 12px;
  margin-bottom: 9px; }

/* Aligns to 36px */
h6 {
  font-size: 16px;
  line-height: 1.5;
  padding-top: 9px;
  margin-bottom: 3px; }

p {
  margin-bottom: 12px; }

h1, h2, h3,
h4, h5, h6,
p {
  margin-top: 0; }

// Misc set up stuff
h1, h2, h3,
h4, h5, h6 {
  font-family: Helvetica Neue, sans-serif; }

body {
  font-family: Georgia, serif; }

.content {
  max-width: 27.5em; /* 440/16 */
  margin: auto;
  padding: 3em 0; }
            
          
!
999px
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.
Loading ..................

Console