Pen Settings

HTML

CSS

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

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

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.

HTML

              
                <main class="bg-primary-300 font-sans flex flex-col align-items-center w-100p border-box">

  <!-- shop now component -->
<div class=" bg-white m-32 flex justify-content-between align-items-center h-512 p-32 shadow-lg radius-2xl">
  <div class="mr-32">
    <h1 class="ultrabold text-7xl">Autumn sale</h1>
    <p class="color-gray-200 py-24 leading-160 text-lg">25% off now through Sunday<br> for all in-store purchases.</p>
    <button class="py-20 px-56 bg-primary-700 color-white radius-2xl">Shop Now</button> 
  </div>
  
  <div class="ml-32 py-32 px-56 radius-2xl  bg-yellow-200">
      <img src="https://firebasestorage.googleapis.com/v0/b/example-650d8.appspot.com/o/Chair.png?alt=media&token=9efda774-03aa-48e1-b02c-5eab2e2570c0" alt="a blue chair">
  </div>
</div>
  
<!--   mailing list component -->
  <div class="bg-white m-32 shadow-lg radius-2xl py-56 px-160 text-center">
    <h1 class="text-6xl ultrabold">Join our mailing list</h1>
    <p class="color-gray-200 py-24 text-lg">Receive 15% off your order at checkout and save today!</p>
    <div class="flex justify-content-between -w-100p">
      <input type="text" placeholder="Email Address" class="border-x-1 border-y-1 border-gray-200 w-9-12 py-12 px-32 radius-lg"/>
      <button class="bg-yellow-200 py-12 px-40 radius-lg">
        <svg width="20" height="16" viewBox="0 0 20 16" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M11.9023 3.33337L17.4999 8.00004L11.9023 12.6667" stroke="#5956E9" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
<line x1="16.2773" y1="8.35449" x2="3.49979" y2="8.35449" stroke="#5956E9" stroke-width="2" stroke-linecap="round"/>
</svg>

      </button>
    </div>
  </div>
  
<!--   friend request component -->
  <div class="flex m-32 align-items-center ">
    <div class="h-80 w-80 radius-2xl relative left-32 z-3">
      <img src="https://images.unsplash.com/photo-1593990965215-075c1f918806?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=634&q=80" alt="A black man with dark shades on" class="radius-2xl w-100p h-100p object-cover object-center">
    </div>
    
    <div class="flex w-320 p-32 bg-white align-items center justify-content-between radius-2xl relative">
      <svg class="absolute top-0 right-0 animate-ping" width="14" height="14" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M10 20C15.5228 20 20 15.5228 20 10C20 4.47715 15.5228 0 10 0C4.47715 0 0 4.47715 0 10C0 15.5228 4.47715 20 10 20Z" fill="#E6C400"/>
</svg>


      <div class="relative left-12">
        <h2 class="ultrabold leading-120">Nelson Michael</h2>
        <p class="text-sm color-gray-200">Friend request</p>
      </div>
      
      <div class="flex justify-content-between w-96">
        <div class="hover.cursor-pointer">
          <svg width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg">
<rect width="40" height="40" rx="12" fill="#CE0000" fill-opacity="0.1"/>
<path d="M25 15L15 25" stroke="#CE0000" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M15 15L25 25" stroke="#CE0000" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
</svg>

        </div>
        <div  class="hover.cursor-pointer" >
          <svg width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg">
<rect width="40" height="40" rx="12" fill="#00A006" fill-opacity="0.1"/>
<path d="M26 16L17.75 24L14 20.3636" stroke="#00A006" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
</svg>

        </div>
      </div>
    </div>
  </div>
</main>

              
            
!

CSS

              
                :root{
  --font-sans : 'Poppins', sans-serif;
  --yellow-200: 255, 224, 249;
  --gray-200 : 174, 174, 173;
  --primary-300 : 234, 242, 255;
  --primary-400 : 206, 0, 0;
  --primary-500 : 0, 160, 6;


}
              
            
!

JS

              
                
              
            
!
999px

Console