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.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

              <div class="container">
   <h1>Proin mollis tristique neque quis accumsan</h1>
   <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus placerat leo nulla, in viverra tortor pulvinar vitae. Ut vel diam vitae dui efficitur bibendum. Duis suscipit arcu eu purus congue, non elementum orci porttitor. Cras eget elementum diam, quis interdum tellus. Nulla semper nibh mi, sed condimentum eros dictum in. Pellentesque dignissim quam in arcu rutrum rutrum. Cras facilisis dignissim nunc vitae volutpat.</p>

   <p>Proin mollis tristique neque quis accumsan. Etiam placerat metus sit amet nulla lobortis, ac sodales leo consequat. Integer mi odio, maximus eu tincidunt ut, eleifend ut nunc. Mauris in nulla non tortor tempus egestas. Aliquam tincidunt efficitur ipsum, non vulputate diam semper at. Sed non efficitur felis. Quisque dolor sapien, rutrum in auctor sit amet, cursus eu augue. Morbi commodo vitae purus posuere hendrerit. Curabitur et semper diam. Maecenas accumsan sem metus, id consequat orci sagittis eget. Cras suscipit mollis nisi eu molestie. Nulla facilisi. Integer ac molestie sapien. Nulla venenatis augue in est hendrerit, eu tristique lacus interdum.</p>

   <p>Nulla in tellus ut lorem sagittis volutpat vitae id turpis. Donec dictum tristique elit, non pulvinar dolor suscipit id. Fusce vel arcu magna. Sed elementum imperdiet vestibulum. Fusce quis enim in mauris ullamcorper eleifend at id velit. Pellentesque vestibulum tortor nec elit laoreet blandit. Nam diam magna, viverra et consequat in, tempus sed odio. Nunc tincidunt dictum tortor. Donec sed nunc non ex dictum lacinia eget at eros. In cursus egestas dui sed interdum. Aliquam dignissim vulputate libero, ut eleifend metus consequat quis. Nam sodales dolor ut erat aliquam euismod. Nam a leo volutpat, viverra turpis in, pharetra quam. Aenean venenatis, lacus convallis facilisis elementum, neque eros efficitur magna, sit amet malesuada dui velit vel lacus. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Sed aliquam ut sapien gravida volutpat.</p>

   <p>Maecenas id dapibus elit. Aliquam nec malesuada risus. Nulla tempus elit lorem, ut mattis odio semper sed. Ut pulvinar orci sit amet diam malesuada, eget malesuada nisi porta. In vitae dolor velit. Nullam dolor est, fermentum id interdum id, scelerisque eget odio. Sed non condimentum sem, non facilisis quam. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam eget nisl a purus ultrices efficitur. Etiam consequat ante vel pretium tincidunt. Phasellus dui massa, mollis vel tellus sed, pellentesque tristique purus. Duis viverra dignissim tincidunt. Donec eget efficitur sem. Aliquam eu augue ac enim consectetur accumsan. Integer ac diam in libero suscipit pharetra at quis tortor. Mauris nisi mauris, maximus eu cursus eu, malesuada at lacus.</p>

   <p>Proin magna velit, dictum id turpis at, cursus placerat metus. Donec scelerisque id est eget dignissim. Aliquam in posuere quam, sed consequat lorem. Morbi sed accumsan dui. Sed urna leo, cursus sit amet elit ac, maximus ultrices nulla. Proin non felis placerat, lobortis nibh sed, venenatis felis. Curabitur faucibus sapien diam, quis laoreet quam scelerisque quis. Vivamus tincidunt ante sit amet nisi porta, hendrerit ultricies sapien ullamcorper. Sed elit libero, ullamcorper ac mi id, interdum lobortis nulla.</p>
              @import 'bourbon';
@import url(,700|Open+Sans:400,700,300);

body {
   @include linear-gradient(45deg, #78485F 0%, #47324C 100%);

.container {
   background: #fff;
   padding: 6vw 10vw;
   max-width: 60vw;
   margin: 50px auto;
   box-shadow: 0 0 30px rgba(0,0,0,.2);
   font-family: 'Open Sans', sans-serif;

   h1 {
      font-family: 'Playfair Display';
      font-weight: 300;
      margin-top: 0;
      @media (min-width: 992px) {
         font-size: calc(100vw / 20);

   p {
      font-wight: 300;
      font-size: 14px;
      line-height: 1.6em;
      color: #555;
      @media (min-width: 992px) {
         font-size: calc(100vw / 75);
🕑 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.