Pen Settings



CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs 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 its URL and the proper URL extension.

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


Auto Save

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.


      a.item-link(onclick="select(this)" href="#")
        | 🙋‍ Get Started
      a.item-link(onclick="select(this)" href="#")
        | 📖 Docs
      a.item-link(onclick="select(this)" href="#")
        | 📰 Blog
      a.item-link(onclick="select(this)" href="#")
        | 👨‍💻 Community
      a.item-link(onclick="select(this)" href="#")
        | 💖 Contribute



  max-width: 100%
  padding: 0 2em
  background-color: #FFF
  border-radius: .3rem
  box-shadow: 0 2px 2px #CCC
  line-height: 4em
  font-weight: bold
  white-space: nowrap
  overflow: auto

  --indicator: 1
  margin: 0
  padding: 0
  list-style: none
  display: inline-grid
  grid-auto-flow: column
  grid-gap: 1em
  @for $i from 1 through 6
    > :nth-child(#{$i})
      grid-column: #{$i} / #{$i + 1}

  display: inline
  grid-row: 1 / 2

  &.active .item-link
    color: #2DA

  padding: 0 .75em
  color: #456
  text-decoration: none
  display: inline-block
  transition: color 256ms
    color: #297
    text-decoration: undelrine
  width: 1px
  height: 60%
  margin: 10% 0
  background-color: #CCC
  align-self: center

  height: 3px
  background-color: #2DA
  border-radius: 3px 3px 0 0
  grid-column: var(--index) / span 1 !important
  grid-row: 1 / 2
  align-self: end
  transition: all 300ms
// Page Layout 🚩

  min-height: 100vh
  background: #EEE
  font-family: 'Roboto', sans-serif
  display: grid
  place-items: center

*, *:before, *:after
  box-sizing: border-box


                function select (link) {
  const item = link.parentNode
  const tabs = item.parentNode
  const index =, item)
  const items = tabs.querySelectorAll('.tab-item')'--index', index + 1)
  items.forEach(item => item.classList.remove('active'))

const items = document.querySelectorAll('.item-link')
const randomItem = items[Math.round(Math.random() * (items.length - 1))]