Pen Settings

HTML

CSS

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

JavaScript

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

Packages

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.

Behavior

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.

HTML

              
                body.dark
  nav.top
    button.circle(onclick="theme()")
      img.responsive(src="https://www.beercss.com/classic-utility-jacket.jpg")
    button.circle(onclick="theme('#a2d669')")
      img.responsive(src="https://www.beercss.com/kids-jumpsuit.jpg")
    button.circle(onclick="theme('#5ad5f9')")
      img.responsive(src="https://www.beercss.com/dogtooth-style-jacket.jpg")
    button.circle(onclick="theme('#dcb8ff')")
      img.responsive(src="https://www.beercss.com/retro-shoe.jpg")
    button.circle(onclick="theme('https://tailwindcss.com/_next/static/media/responsive-1.fd2e9248.png')")
      img.responsive(src="https://tailwindcss.com/_next/static/media/responsive-1.fd2e9248.png")
    button.circle(onclick="mode()")
      i light_mode
  
  main.responsive
    h2.bold.page.top.active Material dynamic colors
    
    h3.bold.page.right.active Build whatever you want, seriously.
    .large-divider
  
    article.no-padding.round
      .grid.no-space
        .s12.m4.s
          img.responsive.extra.top-round(src="https://www.beercss.com/classic-utility-jacket.jpg", onclick="theme()")
        .s12.m4.m.l
          img.responsive.extra.left-round(src="https://www.beercss.com/classic-utility-jacket.jpg", onclick="theme()")
        .s12.m8.padding
          .row
            .max
              h5.no-margin Classic Utility Jacket
              span In stock
            h6 $110,00
          nav.group.connected
            button.square.active(data-ui="") XS
            button.square(data-ui="") S
            button.square(data-ui="") M
            button.square(data-ui="") L
            button.square(data-ui="") XL
            label.l Size guide
          .large-divider
          nav
            button.no-round Buy now
            button.border.no-round Add to bag
            button.border.square
              i favorite
          p Free shipping on all continental US orders.
  
    article.round.border
      .grid.no-space
        .s12.m4
          img.responsive.extra.round(src="https://www.beercss.com/kids-jumpsuit.jpg", onclick="theme('#a2d669')")
        .s12.m8.padding
          h6.no-margin.bold Kids Jumpsuit
          h5.bold.middle-align
            span $39,00
            label &nbsp;In stock
          nav.group.connected
            button.circle.active(data-ui="") XS
            button.circle(data-ui="") S
            button.circle(data-ui="") M
            button.circle(data-ui="") L
            button.circle(data-ui="") XL
            label.l Size guide
          .large-divider
          nav
            button.round Buy now
            button.round Add to bag
            button.circle
              i favorite
          p Free shipping on all continental US orders.
  
    article.small-padding
      .grid.no-space
        .s12.m4
          img.responsive.extra(src="https://www.beercss.com/dogtooth-style-jacket.jpg", onclick="theme('#5ad5f9')")
        .s12.m8.large-padding
          h5.no-margin Dogtooth Style Jacket
          h6.middle-align 
            span $39,00 
            label &nbsp;In stock
          nav.group.connected
            button.circle.border(data-ui="") XS
            button.circle.border(data-ui="") S
            button.circle.border(data-ui="") M
            button.circle.border(data-ui="") L
            button.circle.border(data-ui="") XL
            label.l Size guide
          .large-divider
          nav
            button.large Buy now
            button.large.border Add to bag
            button.large.transparent.circle
              i.primary-text favorite
          p Free shipping on all continental US orders.
  
    article.no-elevate.top-shadow.white-text
      .grid.no-space
        .s12.m4.padding
          img.responsive.large(src="https://www.beercss.com/retro-shoe.jpg", onclick="theme('#dcb8ff')")
        .s12.m8.padding
          h5.no-margin Retro Shoe
          h6.middle-align $39,00 
            label.bold &nbsp;In stock
          nav.group.connected
            button.circle.border.bottom-round.right-round(data-ui="") XS
            button.circle.border.bottom-round.right-round(data-ui="") S
            button.circle.border.bottom-round.right-round(data-ui="") M
            button.circle.border.bottom-round.right-round(data-ui="") L
            button.circle.border.bottom-round.right-round(data-ui="") XL
            label.l Size guide
          .large-divider
          nav
            button Buy now
            button.border Add to bag
            button.transparent.circle
              i.primary-text favorite
          p Free shipping on all continental US orders.
    
    .large-space
    h3.bold Responsive everything.
    .large-divider
    
    article.no-padding.fill.no-elevate.round
      .grid
        .s12.s
          img.responsive.large(src="https://tailwindcss.com/_next/static/media/responsive-1.fd2e9248.png", onclick="theme('https://tailwindcss.com/_next/static/media/responsive-1.fd2e9248.png')")
          .absolute.left.bottom.right.bottom-shadow.s.padding.white-text
            div Entire house
            h5.no-margin Beach House in Collingwood
        .s12.s
          .large-padding
            nav
              i star
              a 4.94
              a (128)
              a Collingwood, Ontario
            nav
              button.large Check availability
        .s6.m.l.large-padding.middle-align
          div
            div Entire house
            h5 Beach House in Collingwood
            div
              nav
                i star
                a 4.94
                a (128)
                a Collingwood, Ontario
              .large-divider
              nav
                button.large Check availability
        .s6.m.l.large-padding
          img.responsive.large.round(src="https://tailwindcss.com/_next/static/media/responsive-1.fd2e9248.png", onclick="theme('https://tailwindcss.com/_next/static/media/responsive-1.fd2e9248.png')")
          .space.l
          .row.l
            img.round.extra(src="https://tailwindcss.com/_next/static/media/responsive-2.8cfea49d.png", onclick="theme('https://tailwindcss.com/_next/static/media/responsive-2.8cfea49d.png')")
            img.round.extra(src="https://tailwindcss.com/_next/static/media/responsive-3.e7467feb.png", onclick="theme('https://tailwindcss.com/_next/static/media/responsive-3.e7467feb.png')")
            .max
              
            
!

CSS

              
                
              
            
!

JS

              
                function theme(color) {
  ui("theme", color || "#f9bd49");
}

const mode = () => {
  let newMode = ui("mode") == "dark" ? "light" : "dark";
  ui("mode", newMode);
}

window.addEventListener("DOMContentLoaded", () => theme());
              
            
!
999px

Console