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


Babel is required to process package imports. If you need a different preprocessor remove all packages first.

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


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.


<h1>H1 Heading</h1>
<p>Paragraph text praesent commodo cursus magna, vel scelerisque nisl consectetur et. Cras mattis consectetur purus sit amet fermentum. Donec id elit non mi porta gravida at eget metus. Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p>


                /* Breakpoints */

$mama-bear: 1100px;
$baby-bear: 650px;

/* Media Queries */

@mixin bp($point) {
    @if $point == mama-bear {
        @media (max-width: $mama-bear) { @content; }
    @else if $point == baby-bear {
        @media (max-width: $baby-bear)  { @content; }

body { 
  font-family: helvetica, arial, sans-serif;
  background-color: #ecedf3; 
  color: #64697a; 

/* Master Fader */

html {
    font-size: 100%;

    @include bp(mama-bear) { font-size: 87.5%; }

    @include bp(baby-bear) { font-size: 75%; }

/* Stuff I'll Wire to My Master Fader */

header { 
    height: 5rem; 
    margin-bottom: 3.75rem; 
    background-color: #46d2ca;

h1 { 
    margin: 0 auto;
    width: 60%;
    text-align: center;
    font-size: 1.75rem; 
    margin-bottom: 1.25rem; 

p { 
    margin: 0 auto;
    width: 60%;
    text-align: center;
    font-size: 0.875rem;
    line-height: 1.57;