Pen Settings

HTML

CSS

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

JavaScript

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

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.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

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.

HTML

              
                <p>Here is some text that should show up by default in Plex Sans. Here is another sentence with <strong>some text in a strong tag</strong> and some <em>other text that should be italicized</em> and even some that should be <strong><em>bold and italic</em></strong>. Whew!</p>
<p class="serif">Here is the same text, but in Plex Serif and all we did was change the font-family. Here is another sentence with <strong>some text in a strong tag</strong> and some <em>other text that should be italicized</em> and even some that should be <strong><em>bold and italic</em></strong>. Whew!</p>
<h1>A nice headline in a very thin weight</h1>
<p class="sans-alt">Here is the same text, but in Plex Sans and shifted to lighter weights, and again all we did was change the font-family. Here is another sentence with <strong>some text in a strong tag</strong> and some <em>other text that should be italicized</em> and even some that should be <strong><em>bold and italic</em></strong>. Whew!</p>
              
            
!

CSS

              
                @font-face {
    font-family: 'Plex Sans';
    src: url('https://s3-us-west-2.amazonaws.com/s.cdpn.io/57225/IBMPlexSans-Regular.eot');
    src: url('https://s3-us-west-2.amazonaws.com/s.cdpn.io/57225/IBMPlexSans-Regular.eot?#iefix') format('embedded-opentype'),
         url('https://s3-us-west-2.amazonaws.com/s.cdpn.io/57225/IBMPlexSans-Regular.woff2') format('woff2'),
         url('https://s3-us-west-2.amazonaws.com/s.cdpn.io/57225/IBMPlexSans-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'Plex Sans';
    src: url('https://s3-us-west-2.amazonaws.com/s.cdpn.io/57225/IBMPlexSans-Bold.eot');
    src: url('https://s3-us-west-2.amazonaws.com/s.cdpn.io/57225/IBMPlexSans-Bold.eot?#iefix') format('embedded-opentype'),
         url('https://s3-us-west-2.amazonaws.com/s.cdpn.io/57225/IBMPlexSans-Bold.woff2') format('woff2'),
         url('https://s3-us-west-2.amazonaws.com/s.cdpn.io/57225/IBMPlexSans-Bold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
}
@font-face {
    font-family: 'Plex Sans';
    src: url('https://s3-us-west-2.amazonaws.com/s.cdpn.io/57225/IBMPlexSans-Italic.eot');
    src: url('https://s3-us-west-2.amazonaws.com/s.cdpn.io/57225/IBMPlexSans-Italic.eot?#iefix') format('embedded-opentype'),
         url('https://s3-us-west-2.amazonaws.com/s.cdpn.io/57225/IBMPlexSans-Italic.woff2') format('woff2'),
         url('https://s3-us-west-2.amazonaws.com/s.cdpn.io/57225/IBMPlexSans-Italic.woff') format('woff');
    font-weight: normal;
    font-style: italic;
}
@font-face {
    font-family: 'Plex Sans';
    src: url('https://s3-us-west-2.amazonaws.com/s.cdpn.io/57225/IBMPlexSans-BoldItalic.eot');
    src: url('https://s3-us-west-2.amazonaws.com/s.cdpn.io/57225/IBMPlexSans-BoldItalic.eot?#iefix') format('embedded-opentype'),
         url('https://s3-us-west-2.amazonaws.com/s.cdpn.io/57225/IBMPlexSans-BoldItalic.woff2') format('woff2'),
         url('https://s3-us-west-2.amazonaws.com/s.cdpn.io/57225/IBMPlexSans-BoldItalic.woff') format('woff');
    font-weight: bold;
    font-style: italic;
}

@font-face {
    font-family: 'Plex Sans';
    src: url('https://s3-us-west-2.amazonaws.com/s.cdpn.io/57225/IBMPlexSans-Thin.eot');
    src: url('https://s3-us-west-2.amazonaws.com/s.cdpn.io/57225/IBMPlexSans-Thin.eot?#iefix') format('embedded-opentype'),
         url('https://s3-us-west-2.amazonaws.com/s.cdpn.io/57225/IBMPlexSans-Thin.woff2') format('woff2'),
         url('https://s3-us-west-2.amazonaws.com/s.cdpn.io/57225/IBMPlexSans-Thin.woff') format('woff');
    font-weight: 100;
    font-style: normal;
}

@font-face {
    font-family: 'Plex Serif';
    src: url('https://s3-us-west-2.amazonaws.com/s.cdpn.io/57225/IBMPlexSerif-Regular.eot');
    src: url('https://s3-us-west-2.amazonaws.com/s.cdpn.io/57225/IBMPlexSerif-Regular.eot?#iefix') format('embedded-opentype'),
         url('https://s3-us-west-2.amazonaws.com/s.cdpn.io/57225/IBMPlexSerif-Regular.woff2') format('woff2'),
         url('https://s3-us-west-2.amazonaws.com/s.cdpn.io/57225/IBMPlexSerif-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'Plex Serif';
    src: url('https://s3-us-west-2.amazonaws.com/s.cdpn.io/57225/IBMPlexSerif-Bold.eot');
    src: url('https://s3-us-west-2.amazonaws.com/s.cdpn.io/57225/IBMPlexSerif-Bold.eot?#iefix') format('embedded-opentype'),
         url('https://s3-us-west-2.amazonaws.com/s.cdpn.io/57225/IBMPlexSerif-Bold.woff2') format('woff2'),
         url('https://s3-us-west-2.amazonaws.com/s.cdpn.io/57225/IBMPlexSerif-Bold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
}
@font-face {
    font-family: 'Plex Serif';
    src: url('https://s3-us-west-2.amazonaws.com/s.cdpn.io/57225/IBMPlexSerif-Italic.eot');
    src: url('https://s3-us-west-2.amazonaws.com/s.cdpn.io/57225/IBMPlexSerif-Italic.eot?#iefix') format('embedded-opentype'),
         url('https://s3-us-west-2.amazonaws.com/s.cdpn.io/57225/IBMPlexSerif-Italic.woff2') format('woff2'),
         url('https://s3-us-west-2.amazonaws.com/s.cdpn.io/57225/IBMPlexSerif-Italic.woff') format('woff');
    font-weight: normal;
    font-style: italic;
}
@font-face {
    font-family: 'Plex Serif';
    src: url('https://s3-us-west-2.amazonaws.com/s.cdpn.io/57225/IBMPlexSerif-BoldItalic.eot');
    src: url('https://s3-us-west-2.amazonaws.com/s.cdpn.io/57225/IBMPlexSerif-BoldItalic.eot?#iefix') format('embedded-opentype'),
         url('https://s3-us-west-2.amazonaws.com/s.cdpn.io/57225/IBMPlexSerif-BoldItalic.woff2') format('woff2'),
         url('https://s3-us-west-2.amazonaws.com/s.cdpn.io/57225/IBMPlexSerif-BoldItalic.woff') format('woff');
    font-weight: bold;
    font-style: italic;
}

/* Here we create a different font family and shift which fonts we want to have referenced by default for normal, bold, and italic */
@font-face {
    font-family: 'Plex Sans Alt';
    src: url('https://s3-us-west-2.amazonaws.com/s.cdpn.io/57225/IBMPlexSans-Thin.eot');
    src: url('https://s3-us-west-2.amazonaws.com/s.cdpn.io/57225/IBMPlexSans-Thin.eot?#iefix') format('embedded-opentype'),
         url('https://s3-us-west-2.amazonaws.com/s.cdpn.io/57225/IBMPlexSans-Thin.woff2') format('woff2'),
         url('https://s3-us-west-2.amazonaws.com/s.cdpn.io/57225/IBMPlexSans-Thin.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'Plex Sans Alt';
    src: url('https://s3-us-west-2.amazonaws.com/s.cdpn.io/57225/IBMPlexSans-SemiBold.eot');
    src: url('https://s3-us-west-2.amazonaws.com/s.cdpn.io/57225/IBMPlexSans-SemiBold.eot?#iefix') format('embedded-opentype'),
         url('https://s3-us-west-2.amazonaws.com/s.cdpn.io/57225/IBMPlexSans-SemiBold.woff2') format('woff2'),
         url('https://s3-us-west-2.amazonaws.com/s.cdpn.io/57225/IBMPlexSans-SemiBold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
}
@font-face {
    font-family: 'Plex Sans Alt';
    src: url('https://s3-us-west-2.amazonaws.com/s.cdpn.io/57225/IBMPlexSans-ThinItalic.eot');
    src: url('https://s3-us-west-2.amazonaws.com/s.cdpn.io/57225/IBMPlexSans-ThinItalic.eot?#iefix') format('embedded-opentype'),
         url('https://s3-us-west-2.amazonaws.com/s.cdpn.io/57225/IBMPlexSans-ThinItalic.woff2') format('woff2'),
         url('https://s3-us-west-2.amazonaws.com/s.cdpn.io/57225/IBMPlexSans-ThinItalic.woff') format('woff');
    font-weight: normal;
    font-style: italic;
}
@font-face {
    font-family: 'Plex Sans Alt';
    src: url('https://s3-us-west-2.amazonaws.com/s.cdpn.io/57225/IBMPlexSans-SemiBoldItalic.eot');
    src: url('https://s3-us-west-2.amazonaws.com/s.cdpn.io/57225/IBMPlexSans-SemiBoldItalic.eot?#iefix') format('embedded-opentype'),
         url('https://s3-us-west-2.amazonaws.com/s.cdpn.io/57225/IBMPlexSans-SemiBoldItalic.woff2') format('woff2'),
         url('https://s3-us-west-2.amazonaws.com/s.cdpn.io/57225/IBMPlexSans-SemiBoldItalic.woff') format('woff');
    font-weight: bold;
    font-style: italic;
}

body {
  padding: 2rem 0;
}

p {
  font-family: "Plex Sans", Helvetica, Arial, sans-serif;
  font-size: 1.25rem;
  margin: 0 auto;
  max-width: 42rem;
}

p + p {
  margin-top: 2em;
}

strong {
  /* this stops browsers from trying to create a 'fake' bold weight */
  font-synthesis: none;
}

em {
  /* this stops browsers from trying to create a 'fake' italic style */
  font-synthesis: none;
}

.serif {
  font-family: "Plex Serif", Georgia, 'Times New Roman', serif;
}

h1 {
  font-family: "Plex Sans", Helvetica, Arial, sans-serif;
  font-size: 4em;
  font-weight: 100;
  font-synthesis: none;
  line-height: 1.05;
  margin: 2rem auto;
  max-width: 42rem;
}

.sans-alt {
  font-family: "Plex Sans Alt", Helvetica, Arial, sans-serif;
}

              
            
!

JS

              
                
              
            
!
999px

Console