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

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

              
                <body class="antialiased bg-gray-300">
  
  <div class="min-h-screen flex flex-col justify-center py-6 px-4 sm:px-6 lg:px-8">
    <div class="mt-8 sm:mx-auto sm:w-full sm:max-w-4xl">
    
        <div class="bg-white shadow rounded-lg">
          <div class="px-4 py-5 border-b border-gray-200 sm:px-6">
                <h3 class="text-lg font-bold leading-6 font-medium text-gray-900">
                    Login
                </h3>
                <p class="mt-1 max-w-2xl text-sm leading-5 text-gray-500">
                    Test this pretty cool app
                </p>
            </div>
          
           <form class="w-full" action="#">
             
             <div class="px-4 py-6 sm:px-6">

                    <div class="w-full">

                        <label for="email" class="block text-gray-700 text-sm font-bold mb-2">
                            Email:
                        </label>

                        <input wire:model="email"
                               value=""
                               placeholder="[email protected]"
                               type="email"
                               class="shadow appearance-none border rounded w-full py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:shadow-outline"
                               id="email"
                               required>

                    </div>

                </div>
             
             <div class="px-4 pb-6 sm:px-6" x-data="{pw: ''}">
                    <label for="password" class="block text-gray-700 text-sm font-bold mb-2">
                        Password:
                    </label>

                    <input x-model="pw"
                           id="password" type="password"
                           placeholder="&bull;&bull;&bull;&bull;&bull;"
                           class="shadow appearance-none border rounded w-full py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:shadow-outline"
                           required>

                    <div class="flex w-full mt-3">
                        <span class="h-1 w-1/3 rounded"
                              x-bind:class="pw.length > 5 ? 'bg-green-300' : 'bg-gray-200'"></span>
                        <span class="h-1 w-1/3 rounded mx-3"
                              x-bind:class="pw.length > 5 && pw.match(/[\w]+/) ? 'bg-green-300' : 'bg-gray-200'"></span>
                        <span class="h-1 w-1/3 rounded"
                              x-bind:class="pw.length > 5 && pw.match(/[[email protected]#$%^&*(),.?:{}|<>]/) ? 'bg-green-300' : 'bg-gray-200'"></span>
                    </div>

                   <p class="text-gray-500 text-sm mt-4">Type something into the password field with letter, special charachters etc.</p>
                </div>
             
          </form>
          
      </div>
    </div>
  </div>
  
</body>
              
            
!

CSS

              
                
              
            
!

JS

              
                
              
            
!
999px

Console