Pen Settings

HTML

CSS

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

JavaScript

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

Packages

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.

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

              
                <div class="container">  
  <div class="item pair-1">
    <h1>Catamaran & Roboto</h1>
    <p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.</p>
  </div>
    <div class="item pair-2">
    <h1>Archivo Black & Frank Ruhl Libre</h1>
    <p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.</p>
  </div>
    <div class="item pair-3">
    <h1>Abril Fatface & <br>Lato</h1>
    <p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.</p>
  </div>
    <div class="item pair-4">
    <h1>Playfair Display & Montserrat</h1>
    <p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.</p>
  </div>
    <div class="item pair-5">
    <h1>Karla & Source Sans Pro Light</h1>
    <p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.</p>
  </div>
    <div class="item pair-6">
    <h1>Lora & <br>PT Sans</h1>
    <p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.</p>
  </div>
    <div class="item pair-7">
    <h1>Abril Fatface & Playfair Display</h1>
    <p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.</p>
  </div>
    <div class="item pair-8">
    <h1>Nunito Sans & <br>PT Serif</h1>
    <p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.</p>
  </div>
    <div class="item pair-9">
    <h1>Frank Ruhl Libre & Roboto</h1>
    <p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.</p>
  </div>
</div>
              
            
!

CSS

              
                @import url('https://fonts.googleapis.com/css?family=Abril+Fatface|Archivo+Black|Catamaran:900|Frank+Ruhl+Libre|Karla:300+ 900|Lato|Lora|Merriweather|Montserrat|Nunito+Sans|PT+Sans:300+700|PT+Serif|Playfair+Display|Roboto:300|Source+Sans+Pro:100+300|Source+Serif+Pro');

$abril: 'Abril Fatface', serif;
$archivo: 'Archivo Black', sans-serif;
$catamaran:'Catamaran', sans-serif;
$frank: 'Frank Ruhl Libre', serif;
$karla: 'Karla', sans-serif;
$lato: 'Lato', sans-serif;
$lora: 'Lora', serif;
$merriweather: 'Merriweather', serif;
$montserrat: 'Montserrat', sans-serif;
$nunito: 'Nunito Sans', sans-serif;
$ptsans: 'PT Sans', sans-serif;
$ptserif: 'PT Serif', serif;
$playfair: 'Playfair Display', serif;
$roboto: 'Roboto', sans-serif;
$sourcesans: 'Source Sans Pro', sans-serif;
$sourceserif: 'Source Serif Pro', serif;

/*colors */ 
$skyblue: #80CED7;
$tearose: #F6CAC9;
$ceil: #91A7D0;
$taupe: #C0B7AF;
$yellow: #FFEE93;
$lavender: #D5C9DF;
$peach: #F2D3C6;
$green: #C1E2A5;
$mist: #DEE2FF;

.container {
  margin: 5px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 15px;
}
.item {
  border: 1px solid black;
  padding: 1em;
}

h1 {
  line-height: 1em;
  margin: 0;
}
p {
  margin-top: 15px;
}

.pair-1 {
  background: $skyblue;
  h1 {
    font-family: $catamaran;
    letter-spacing: -0.5px;
    font-size: 2.2em;
    font-weight: 900;
  }
  p {
    font-family: $roboto;
    font-weight: 300;
  }
}

.pair-2 {
  background: $yellow;
  h1 {
    font-family: $archivo;
  }
  p {
    font-family: $frank;
  }
}

.pair-3 {
  background: $tearose;
  h1 {
    font-family: $abril;
  }
  p {
    font-family: $lato;
  }
}

.pair-4 {
  background: $taupe;
  h1 {
    font-family: $playfair;
  }
  p {
    font-family: $montserrat;
    letter-spacing: -0.5px;
  }
}

.pair-5 {
  background: $ceil;
  h1 {
    font-family: $karla;
    font-weight: 900;
    letter-spacing: -1px;
  }
  p {
    font-family: $sourcesans;
    font-weight: 100;
    letter-spacing: 0.5px;
  }
}

.pair-6 {
  background: $lavender;
  h1 {
    font-family: $lora;
    font-weight: 100;
    font-size: 2.3em;
  }
  p {
    font-family: $ptsans;
    letter-spacing: 2px;
    text-transform: uppercase;
    line-height: 1.5em;
    font-weight: 100;
    font-size: .8em;
  }
}

.pair-7 {
  background: $peach;
  h1 {
    font-family: $abril;
  }
  p {
    font-family: $playfair;
  }
}

.pair-8 {
  background: $mist;
  h1 {
    font-family: $nunito;
  }
  p {
    font-family: $ptserif;
  }
}

.pair-9 {
  background: $green;
  h1 {
    font-family: $frank;
  }
  p {
    font-family: $roboto;
  }
}
              
            
!

JS

              
                
              
            
!
999px

Console