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

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

Code Indentation


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.

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.

              <section class="ui">
  <div class="panel">
    <ul class="labels">
      <li><span class="label blue" contenteditable="true">product</span></li>
      <li><span class="label green" contenteditable="true">marketing</span></li>
      <li><span class="label red" contenteditable="true">bug</span></li>
      <li><span class="label yellow" contenteditable="true"></span></li>
      <li><span class="label orange" contenteditable="true"></span></li>
      <li><span class="label black" contenteditable="true"></span></li>
  <div class="panel">
    <ul class="conversions">
      <li class="conversion">
        <span class="country">USA</span>
        <span class="conversion-rate">1.64%</span>
      <li class="conversion">
        <span class="country">Canada</span>
        <span class="conversion-rate">0.53%</span>
      <li class="conversion">
        <span class="country">Mexico</span>
        <span class="conversion-rate"></span>
              $background-1: #77727C
$background-2: #5C5863

$base-size: 16px
$base-font: "Roboto", sans-serif

html, body
  width: 100%
  height: 100%

  background-image: radial-gradient(circle, $background-1, $background-2)
  display: flex
  justify-content: center
  align-items: center
  font-size: $base-size
  font-family: $base-font
  color: hsl(262, 6%, 27%)

  min-width: 12rem
  display: inline-block
  vertical-align: middle
  background-color: hsl(0, 0%, 93%)
  padding: 1rem
  border-radius: 2px
  box-shadow: 1px 1px 3px hsla(270, 8%, 10%, 0.5)
  margin: 1rem
    font-weight: 300
    font-size: 2rem
    padding-bottom: 1rem
    margin-bottom: 1rem
    position: relative
      height: 0
      content: ""
      border-bottom: 1px solid hsla(0, 0%, 100%, 0.9)
      border-top: 1px solid hsla(0, 0%, 0%, 0.1)
      display: block
      position: absolute
      right: 0
      bottom: 0
      left: 0

  text-align: center
    height: 1rem
    line-height: 1rem
    margin-bottom: 1rem
      color: hsla(0, 0%, 100%, 0.9)
      padding: 0.31640625rem
      display: inline-block
      border-radius: 2px
      border: 1px solid hsla(0, 0%, 0%, 0.15)
      background-image: linear-gradient(right bottom, hsla(0, 0%, 100%, 0.1), transparent)
        width: 1rem
        background-color: hsl(197, 79%, 43%)
        background-color: hsl(146, 64%, 43%)
        background-color: hsl(0, 72%, 48%)
        background-color: hsl(41, 98%, 64%)
        background-color: hsl(18, 91%, 57%)
        background-color: hsl(198, 87%, 12%)

    height: 4rem
    margin-bottom: 1rem
      display: block
      display: inline-block
      font-size: 2rem
      line-height: 2rem
      margin-top: 0.31640625rem
        background-color: hsla(0, 0%, 100%, 0.75)
        padding: 0.31640625rem
        border-radius: 2px
        color: hsl(207, 37%, 34%)
        content: "No data"
        opacity: 0.25

🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.