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>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Dolores enim tenetur quae praesentium voluptatibus reprehenderit reiciendis dolorum perspiciatis corporis molestias distinctio nobis quasi cum id facere. Rerum tempora dignissimos aspernatur.Lorem ipsum dolor sit amet, consectetur adipisicing elit. Velit optio id dolor voluptatibus cupiditate omnis pariatur rem laborum vitae est perspiciatis accusamus ipsam autem magni facere a ratione ullam illum.Lorem ipsum dolor sit amet, consectetur adipisicing elit. Rem natus id voluptatibus ex exercitationem libero minima voluptate repellendus illo odit et hic iure laudantium qui dolorem doloribus nobis dolore inventore.</p>


                @import url(;
  background-color: #3498db;
  font-family: 'Open Sans', sans-serif;
  padding:50px 30px;
  font-size: 18px;
  line-height: 1.4;



* If you create a derivative, please leave this text intact:
* FlowType.JS 1.0
* Copyright (c) 2013, Simple Focus
* FlowType.JS by Simple Focus (
* is licensed under the MIT License. Read a copy of the
* license in the LICENSE.txt file or at
* Thanks to Giovanni Difeterici (

(function($) {
   $.fn.flowtype = function(options) {

// Establish default settings/variables
// ====================================
      var settings = $.extend({
         maximum   : 9999,
         minimum   : 1,
         maxFont   : 9999,
         minFont   : 1,
         fontRatio : 35,
         lineRatio : 1.45
      }, options),

// Do the magic math
// =================
      changes = function(el) {
         var $el = $(el),
            elw = $el.width(),
            width = elw > settings.maximum ? settings.maximum : elw < settings.minimum ? settings.minimum : elw,
            fontBase = width / settings.fontRatio,
            fontSize = fontBase > settings.maxFont ? settings.maxFont : fontBase < settings.minFont ? settings.minFont : fontBase;

            'font-size'   : fontSize + 'px',
            'line-height' : fontSize * settings.lineRatio + 'px'

// Make the magic visible
// ======================
      return this.each(function() {
      // Context for resize callback
         var that = this;
      // Set changes on load
      // Make changes upon resize
//call the plugin
 minFont : 16,
 maxFont : 28,
 fontRatio : 30