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.

      h1 The best app you've #[br] ever seen
      p You'll be blown away with all it does
      button.Button Sign up
              @import url('https://fonts.googleapis.com/css?family=Varela+Round');

break-large = 58rem

  --color-1: #21D4FD
  --color-2: #B721FF
  --color-3: #08AEEA
  --color-4: #2AF598
  font-family: 'Varela Round', sans-serif
  position: relative
  height: 80vh
  display: block
    position: absolute
    top: 0
    left: 0
    width: 100%
    height: 100%
    background: linear-gradient(19deg, var(--color-1), var(--color-2))
    transform-origin: 0px 0px
    transform: skewY(-10deg)
    overflow: hidden
    z-index: -1

      display: block
      position: absolute
      content: ''
      width: 80%
      height: (100%/3)
      opacity: .3
      filter: blur(15px)

      background: var(--color-1)
      right: 0

      background: var(--color-2)
      bottom: 0
    text-align: center
    padding: 4rem 4rem
    margin: 0 auto
    @media(min-width: break-large)
      text-align: left
      padding: 10rem 4rem
      max-width: 54rem
      display: flex
      justify-content: space-between
    h1, p
      color: white
      text-shadow: 0 .5rem 1rem rgba(50, 0, 100, .1)
      margin: 0
      font-size: 3rem 
      font-size: 1.5rem
      margin-bottom: 2rem
    position: relative
    margin-top: 5rem
    transform: rotate(-10deg)
    @media(min-width: break-large)
      margin: 0
      transform: translateY(-5rem) rotate(-10deg)
  padding: 1.5rem 2rem
  border: 0
  color: var(--color-3)
  font-size: 1.2rem
  font-weight: bold
  background: white
  border-radius: 3px
  transition: all .2s
  cursor: pointer
  box-shadow: 0 1.75rem 2rem -.4rem rgba(50, 0, 100, .15)
    color: var(--color-4)
    box-shadow: 0 1.75rem 3rem 0rem rgba(50, 0, 100, .1)
    transform: scale(1.05)
    box-shadow: 0 1.75rem 2.5rem -.2rem rgba(50, 0, 100, .125)
    transform: scale(1.025)
  display: inline-block
  background: white
  padding: 4rem .6rem 0
  border-radius: 2rem
  box-shadow: -1rem 1.75rem 2rem -.4rem rgba(50, 0, 100, .1), -.2rem .2rem .5rem rgba(50, 0, 100, .05), inset .5rem -.5rem .5rem -.4rem rgba(50, 0, 100, .1)
  text-align: center
    content: ''
    display: block
    background-color: var(--color-3)
    background-image: linear-gradient(0deg, var(--color-3) 0%, var(--color-4) 100%)
    width: 16rem
    padding-top: 177.5%
    display: inline-block
    margin: .6rem
    padding: 1.4rem
    border: 1px solid #f1f1f1
    border-radius: 2rem
    box-shadow:  inset -.05rem .05rem .5rem 0rem rgba(50, 0, 100, .05)
🕑 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.