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

              
                <div class="bg-gray-200 min-h-screen flex items-center justify-center">

  <div class="flex flex-col justify-center items-center w-full py-20">

    <nav class="bg-gray-900 px-4 py-4 rounded mt-2 w-84">
      <div class="relative flex items-center justify-between">
        <div class="flex items-center justify-center">
          <i class="bx bx-menu text-white text-2xl"></i>
        </div>

        <div class="font-bold text-white absolute inset-y-0" style="left:50%; transform: translateX(-50%);">
          Abstract UI
        </div>

        <div class="flex items-center justify-center">
          <i class="bx bxs-envelope text-white text-2xl"></i>
          <i class="bx bx-trending-up text-white text-2xl ml-6"></i>
        </div>
      </div>
    </nav>

    <nav class="bg-gray-900 px-4 py-4 rounded mt-4 w-84">
      <div class="relative flex items-center justify-between">
        <div class="flex items-center justify-center">
          <i class="bx bx-x text-white text-2xl"></i>
        </div>

        <div class="font-bold text-white absolute inset-y-0" style="left:50%; transform: translateX(-50%);">
          Abstract UI
        </div>

        <div class="flex items-center justify-center">
          <i class="bx bxs-envelope text-white text-2xl"></i>
          <i class="bx bx-trending-up text-white text-2xl ml-6"></i>
        </div>
      </div>

      <div class="mt-4">
        <input type="search" id="" name="" placeholder="Search" class="bg-white px-4 py-2 w-full rounded">
      </div>

      <div class="mt-4">
        <ul>
          <li>
            <a href="#" title="" class="block text-white text-lg font-semibold py-2 hover:text-gray-500">
              Shots
            </a>
          </li>
          <li>
            <a href="#" title="" class="block text-white text-lg font-semibold py-2 hover:text-gray-500">
              Designers
            </a>
          </li>
          <li>
            <a href="#" title="" class="block text-white text-lg font-semibold py-2 flex items-center justify-between
                  hover:text-gray-500">
              <span>Community</span>
              <i class="bx bx-chevron-down text-white"></i>
            </a>

            <ul class="pl-4 border-l border-gray-700 ml-1">
              <li><a href="#" title="" class="block text-white py-2 hover:text-gray-500">Blog: Courtside</a></li>
              <li><a href="#" title="" class="block text-white py-2 hover:text-gray-500">Weekly Warm-Up</a></li>
              <li><a href="#" title="" class="block text-white py-2 hover:text-gray-500">Featured Playoffs</a></li>
              <li><a href="#" title="" class="block text-white py-2 hover:text-gray-500">Meetups</a></li>
            </ul>
          </li>
          <li>
            <a href="#" title="" class="block text-white text-lg font-semibold py-2">
              Jobs
            </a>
          </li>
        </ul>

        <hr class="mt-4 mb-6 opacity-25">

        <div class="">
          <a href="https://dribbble.com/iamsahilvhora" target="_blank" title="" class="flex items-center">
            <div class="w-10 h-10 rounded-full overflow-hidden">
              <img src="https://randomuser.me/api/portraits/men/43.jpg" alt="" class="object-cover">
            </div>
            <span class="text-white font-semibold ml-4 hover:text-gray-500">Sahil Vhora</span>
          </a>
        </div>

        <div class="flex items-start justify-between mt-4">
          <ul>
            <li>
              <a href="" title="" class="block text-white py-2 hover:text-gray-500">Profile</a>
            </li>
            <li>
              <a href="" title="" class="block text-white py-2 hover:text-gray-500">
                <span>Invite Designers</span>
                <span class="ml-2 bg-blue-500 text-white px-2 py-1 rounded text-xs">3</span>
              </a>
            </li>
            <li>
              <a href="" title="" class="block text-white py-2 hover:text-gray-500">Work Availability</a>
            </li>
            <li>
              <a href="" title="" class="block text-white py-2 hover:text-gray-500">Go Pro</a>
            </li>
          </ul>

          <ul class="pr-10">
            <li>
              <a href="" title="" class="block text-white py-2 hover:text-gray-500">My Likes</a>
            </li>
            <li>
              <a href="" title="" class="block text-white py-2 hover:text-gray-500">My Saves</a>
            </li>
          </ul>
        </div>

        <hr class="mt-4 mb-6 opacity-25">

        <ul>
          <li>
            <a href="" title="" class="block text-white py-2 hover:text-gray-500">Account Settings</a>
          </li>
          <li>
            <a href="" title="" class="block text-white py-2 hover:text-gray-500">Sign Out</a>
          </li>
        </ul>

      </div>
    </nav>

  </div>

</div>
              
            
!

CSS

              
                .w-84 {
    width: 21rem;
}
              
            
!

JS

              
                
              
            
!
999px

Console