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


                <header class="header">
  <a href="/" class="header__brand">
    <svg class="header__brand-icon" aria-hidden="true" xmlns="" width="64" height="64"><path fill="none" stroke="#000" stroke-miterlimit="10" d="M1.029 32l30.97-30.971L62.972 32 32 62.971z" stroke-width=".99999"/><path fill="none" stroke="#000" stroke-miterlimit="10" stroke-dasharray="2,2" d="M4.988 32L32 4.989 59.01 32 32 59.011z" stroke-width=".99999"/><path class="header__c-glyph" d="M36.6 24c. 0 .5-.4.6-1.4h.6c-.1 1.2-.1 2.7-.1 5.5h-.6c-.3-2-.5-2.7-1.2-3.6-1-1.3-2.6-1.9-4.3-1.9-3.1 0-5.2 3.3-5.2 8.5 0 5.4 2.3 8.3 5.4 8.3 1.4 0 3.2-.5 4.1-1.8.7-.9.9-1.9 1.1-3.8h.6c0 2.9 0 4.6.1 5.8h-.6c-.1-1-.2-1.4-.6-1.4-.1 0-.3.1-.5.2-1.2.8-2.4 1.6-4.5 1.6-4.6 0-7.6-3.2-7.6-8.7 0-5.4 3.2-9 7.7-9 2.2 0 3.4.7 4.5 1.5z"/><circle fill="none" stroke="#000" stroke-miterlimit="10" cx="32" cy="32" r="15"/></svg>
    <span>Contoso Closet</span>


                .header__brand:link, .header__brand:visited {
  color: #426680;

.header__brand-icon * {
  stroke: currentColor;

.header__c-glyph {
  fill: currentColor;

@media (prefers-color-scheme: dark) {
  body {
    background-color: #293742;
  .header__brand:link, .header__brand:visited {
    color: #cedbe3;

 *	---------------------------------------------

header {
  padding: 2em;
  text-align: center;

.header__brand:link, .header__brand:visited {
  border-bottom: 0;
  text-decoration: none;
  font: 400 1.5em/1 "Playfair Display", Georgia, serif;

.header__brand-icon {
  display: inline-block;
  vertical-align: middle;
  margin-right: .25em;

.header__brand span {
  border-bottom-width: 1px;

.header__brand:hover span {
  border-bottom-style: dashed;
  border-bottom-color: currentColor;