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. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ 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.


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.


                <div class="color-bg-canvas-inset pb-6">
  <header class="container-lg mx-auto p-responsive d-flex flex-items-center flex-wrap flex-md-nowrap pt-3 pb-6">
      <a class="text-white mr-3" href="">Docs</a>
      <a class="text-white mr-3" href="">Changelog</a>
      <a class="text-white mr-3" href="">Storybook</a>
    <div class="container-lg mx-auto text-white py-6 p-responsive">
    <h1 class="f00-light">Primer CSS CodePen template</h1>
    <p class="f3 mb-4">Create pens with GitHub's design system</p>
    <a class="btn btn-transparent link-hover-blue text-normal py-2 mb-6 f4" href="">Install Primer via npm</a>

<div class="container-lg mx-auto py-6 p-responsive">
  <div class="markdown-body">
    <ul class="f3 py-4">
      <li>This template includes built CSS from Primer Core, Product, and Marketing packages.</li>
      <li>The Preprocessor is set to SCSS so that you can write new Sass on top of Primer.</li>
      <li>The prefixer is set to Autoprefixer to match's prefixer.</li>