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

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.

HTML

              
                <h1>God is in the details, they say</h1>
<h2>White space provides the silence</h2>
<h3>We love complexities but hate complications</h3>
<h4>One of the most important elements in typography is scale and size relationship</h4>

<h5>It is just like in music, where five lines and seven notes allow one to make infinite compositions. That is the magic of the grid.</h5>
<p>We like a typography that transcends subjectivity and searches for objective values, a typography that is beyond times - that doesn’t follow trends, that reflects its content in an appropriate manner. We like economy of design because it avoids wasteful exercises, it respects investment and lasts longer. We strive for a Design that is centered on the message rather than visual titillation. We like Design that is clear, simple and enduring. And that is what timelessness means in Design.</p>

<blockquote>
  “And if I can’t get excited about whatever that something else is, I really have trouble doing good work as a designer. To me, the conclusion is inescapable: the more things you’re interested in, the better your work will be.”
</blockquote>

<p>Another element is the relationship among type sizes in the same printed page. Our first rule is to stick to one or two type sizes at the most. If necessary, there are other devices such as bold, light, roman and italic to differentiate different parts of a text, but even there, stick to the minimum. Type weights can be used to great advantage when dedicated to a specific function, rather than be used for color purposes or even worse as a phonetic analogy.</p>
              
            
!

CSS

              
                *, *::before, *::after {
  box-sizing:border-box;
}

body {
  //background-color:#f5e400;
  background-color:#f4f4f4;
  padding:1.25rem;
  font-family:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  line-height:1.5;
  
  font-variant: normal;
  
  -webkit-font-kerning: normal;
  font-kerning: normal;
  
  -webkit-font-variant-ligatures: common-ligatures,contextual;
  font-variant-ligatures: common-ligatures,contextual;
  
  -ms-font-feature-settings: "kern","liga","clig","alt";
  -webkit-font-feature-settings: "kern","liga","clig","calt";
  font-feature-settings: "kern","liga","clig","calt";
  
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: "ff-good-web-pro-narrow", sans-serif;
  margin:0;
  font-weight:900;
  line-height:1.2;
  }

h1 {
  font-size:calc(3em + 3vw);
}

h2 {
  font-size:calc(2.5em + 2vw);
  margin:0.25em 0;
}

h3 {
  font-size:calc(2em + 0.5vw);
  margin:0.5em 0;
}

h4 {
  font-size:calc(1.5em);
  font-weight:700;
  margin:1em 0;
}

h5 {
  font-size:1em;
  margin:1em 0;
  font-weight:700;
}

h3, h4, h5, p, blockquote, .textcolumn {
  max-width:40em;
}

p {
  font-weight:500;
}

blockquote {
  font-family: "Baskerville",serif;
  font-style:italic;
  font-size:calc(1.5em + 2vw);
  letter-spacing:-0.02em;
}
              
            
!

JS

              
                
              
            
!
999px

Console