dark mode
Tailwind Form
#Login Form

Please choose a password.

©2020 Acme Corp. All rights reserved.


<form class="bg-white shadow-md rounded px-8 pt-6 pb-8 mb-4 dark:bg-gray-800">
<div class="mb-4">
     <label class="block text-gray-700 text-sm font-bold mb-2 dark:text-gray-300" for="username-two">Username</label>
     <input class="shadow appearance-none border rounded w-full py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:shadow-outline dark:bg-gray-700 dark:text-white dark:border-gray-600" id="username-two" type="text" placeholder="Username">
</div>

<div class="mb-6">
     <label class="block text-gray-700 text-sm font-bold mb-2 dark:text-gray-300" for="password-one">Password</label>
     <input class="shadow appearance-none border border-red-500 rounded w-full py-2 px-3 text-gray-700 mb-3 leading-tight focus:outline-none focus:shadow-outline dark:bg-gray-700 dark:text-white dark:border-red-600" id="password-one" type="password" placeholder="******************">
     <p class="text-red-500 text-xs italic dark:text-red-400">Please choose a password.</p>
</div>

<div class="flex items-center justify-between">
     <button class="bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded focus:outline-none focus:shadow-outline dark:bg-blue-600 dark:hover:bg-blue-700 dark:text-white" type="button">Sign In</button>
     <a class="inline-block align-baseline font-bold text-sm text-blue-500 hover:text-blue-800 dark:text-blue-400 dark:hover:text-blue-600" href="#">Forgot Password?</a>
</div>
</form>                                         
     
#Form Grid

Please fill out this field.

Make it as long and as crazy as you'd like


<form class="bg-white shadow-md rounded px-8 pt-6 pb-8 mb-4 dark:bg-gray-800">
<div class="flex flex-wrap -mx-3 mb-6">
     <div class="w-full md:w-1/2 px-3 mb-6 md:mb-0">
          <label class="block uppercase tracking-wide text-gray-700 dark:text-gray-300 text-xs font-bold mb-2" for="grid-first-name-one">First Name</label>
          <input class="appearance-none block w-full bg-gray-200 dark:bg-gray-800 text-gray-700 dark:text-gray-300 border border-red-500 dark:border-red-700 rounded py-3 px-4 mb-3 leading-tight focus:outline-none focus:bg-white dark:focus:bg-gray-700" id="grid-first-name-one" type="text" placeholder="Jane">
          <p class="text-red-500 dark:text-red-400 text-xs italic">Please fill out this field.</p>
     </div>
     <div class="w-full md:w-1/2 px-3">
          <label class="block uppercase tracking-wide text-gray-700 dark:text-gray-300 text-xs font-bold mb-2" for="grid-last-name-two">Last Name</label>
          <input class="appearance-none block w-full bg-gray-200 dark:bg-gray-800 text-gray-700 dark:text-gray-300 border border-gray-200 dark:border-gray-700 rounded py-3 px-4 leading-tight focus:outline-none focus:bg-white dark:focus:bg-gray-700 focus:border-gray-500 dark:focus:border-gray-400" id="grid-last-name-two" type="text" placeholder="Doe">
     </div>
</div>
<div class="flex flex-wrap -mx-3 mb-6">
     <div class="w-full px-3">
          <label class="block uppercase tracking-wide text-gray-700 dark:text-gray-300 text-xs font-bold mb-2" for="grid-password-one">Password</label>
          <input class="appearance-none block w-full bg-gray-200 dark:bg-gray-800 text-gray-700 dark:text-gray-300 border border-gray-200 dark:border-gray-700 rounded py-3 px-4 mb-3 leading-tight focus:outline-none focus:bg-white dark:focus:bg-gray-700 focus:border-gray-500 dark:focus:border-gray-400" id="grid-password-one" type="password" placeholder="******************">
          <p class="text-gray-600 dark:text-gray-400 text-xs italic">Make it as long and as crazy as you'd like</p>
     </div>
</div>
<div class="flex flex-wrap -mx-3 mb-2">
     <div class="w-full md:w-1/3 px-3 mb-6 md:mb-0">
          <label class="block uppercase tracking-wide text-gray-700 dark:text-gray-300 text-xs font-bold mb-2" for="grid-city-one">City</label>
          <input class="appearance-none block w-full bg-gray-200 dark:bg-gray-800 text-gray-700 dark:text-gray-300 border border-gray-200 dark:border-gray-700 rounded py-3 px-4 leading-tight focus:outline-none focus:bg-white dark:focus:bg-gray-700 focus:border-gray-500 dark:focus:border-gray-400" id="grid-city-one" type="text" placeholder="Albuquerque">
     </div>
     <div class="w-full md:w-1/3 px-3 mb-6 md:mb-0">
          <label class="block uppercase tracking-wide text-gray-700 dark:text-gray-300 text-xs font-bold mb-2" for="grid-state-one">State</label>
          <div class="relative">
               <select class="block appearance-none w-full bg-gray-200 dark:bg-gray-800 border border-gray-200 dark:border-gray-700 text-gray-700 dark:text-gray-300 py-3 px-4 pr-8 rounded leading-tight focus:outline-none focus:bg-white dark:focus:bg-gray-700 focus:border-gray-500 dark:focus:border-gray-400" id="grid-state-one">
                    <option>New Mexico</option>
                    <option>Missouri</option>
                    <option>Texas</option>
               </select>
               <div class="pointer-events-none absolute inset-y-0 right-0 flex items-center px-2 text-gray-700 dark:text-gray-300">
                    <svg class="fill-current h-4 w-4" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20">
                    <path d="M9.293 12.95l.707.707L15.657 8l-1.414-1.414L10 10.828 5.757 6.586 4.343 8z"></path>
                    </svg>
               </div>
          </div>
     </div>
     <div class="w-full md:w-1/3 px-3 mb-6 md:mb-0">
          <label class="block uppercase tracking-wide text-gray-700 dark:text-gray-300 text-xs font-bold mb-2" for="grid-zip-two">Zip</label>
          <input class="appearance-none block w-full bg-gray-200 dark:bg-gray-800 text-gray-700 dark:text-gray-300 border border-gray-200 dark:border-gray-700 rounded py-3 px-4 leading-tight focus:outline-none focus:bg-white dark:focus:bg-gray-700 focus:border-gray-500 dark:focus:border-gray-400" id="grid-zip-two" type="text" placeholder="90210">
     </div>
</div>
</form>                                         
#Inline Form

<form class="bg-white shadow-md rounded px-8 pt-6 pb-8 mb-4 dark:bg-gray-800 ">
<div class="md:flex md:items-center mb-6">
     <div class="md:w-1/3">
          <label class="block text-gray-500 dark:text-gray-300 font-bold md:text-right mb-1 md:mb-0 pr-4" for="inline-full-name-one">Full Name</label>
     </div>
     <div class="md:w-2/3">
          <input class="bg-gray-200 dark:bg-gray-800 appearance-none border-2 border-gray-200 dark:border-gray-700 rounded w-full py-2 px-4 text-gray-700 dark:text-gray-300 leading-tight focus:outline-none focus:bg-white dark:focus:bg-gray-700 focus:border-purple-500 dark:focus:border-purple-300" id="inline-full-name-one" type="text" value="Jane Doe">
     </div>
</div>
<div class="md:flex md:items-center mb-6">
     <div class="md:w-1/3">
          <label class="block text-gray-500 dark:text-gray-300 font-bold md:text-right mb-1 md:mb-0 pr-4" for="inline-password-two">Password</label>
     </div>
     <div class="md:w-2/3">
          <input class="bg-gray-200 dark:bg-gray-800 appearance-none border-2 border-gray-200 dark:border-gray-700 rounded w-full py-2 px-4 text-gray-700 dark:text-gray-300 leading-tight focus:outline-none focus:bg-white dark:focus:bg-gray-700 focus:border-purple-500 dark:focus:border-purple-300" id="inline-password-two" type="password" placeholder="******************">
     </div>
</div>
<div class="md:flex md:items-center mb-6">
     <div class="md:w-1/3"></div>
     <label class="md:w-2/3 block text-gray-500 dark:text-gray-300 font-bold">
          <input class="mr-2 leading-tight" type="checkbox">
          <span class="text-sm dark:text-gray-300">Send me your newsletter!</span>
     </label>
</div>
<div class="md:flex md:items-center">
     <div class="md:w-1/3"></div>
     <div class="md:w-2/3">
          <button class="shadow bg-purple-500 hover:bg-purple-400 focus:shadow-outline focus:outline-none text-white font-bold py-2 px-4 rounded dark:bg-purple-700 dark:hover:bg-purple-600 dark:focus:border-purple-500" type="button">Sign Up</button>
     </div>
</div>
</form>                                   
#Underline Form

<form class="bg-white shadow-md rounded px-8 pt-6 pb-8 mb-4 dark:bg-gray-800">
<div class="flex items-center border-b border-teal-500 dark:border-teal-700 py-2">
     <input class="appearance-none bg-transparent border-none w-full text-gray-700 dark:text-gray-300 mr-3 py-1 px-2 leading-tight focus:outline-none focus:ring-2 focus:ring-teal-500 dark:focus:ring-teal-300" type="text" placeholder="Jane Doe" aria-label="Full name">
     <button class="flex-shrink-0 bg-teal-500 hover:bg-teal-700 border-teal-500 hover:border-teal-700 text-sm border-4 text-white py-1 px-2 rounded dark:bg-teal-600 dark:hover:bg-teal-800 dark:border-teal-600 dark:hover:border-teal-800 dark:text-gray-200" type="button">Sign Up</button>
     <button class="flex-shrink-0 border-transparent border-4 text-teal-500 hover:text-teal-800 text-sm py-1 px-2 rounded dark:text-teal-400 dark:hover:text-teal-600" type="button">Cancel</button>
</div>
</form>                                                                                   
#Custom Select

<form class="bg-white dark:bg-gray-700  rounded shadow-sm p-4 flex justify-center">
<div class="inline-block relative w-64">
     <select class="block appearance-none w-full bg-white dark:bg-gray-800 border border-gray-400 dark:border-gray-700 hover:border-gray-500 dark:hover:border-gray-600 px-4 py-2 pr-8 rounded shadow leading-tight focus:outline-none focus:shadow-outline dark:focus:bg-gray-700 dark:focus:border-teal-500">
          <option>Really long option that will likely overlap the chevron</option>
          <option>Option 2</option>
          <option>Option 3</option>
     </select>
     <div class="pointer-events-none absolute inset-y-0 right-0 flex items-center px-2 text-gray-700 dark:text-gray-300">
          <svg class="fill-current h-4 w-4" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20">
               <path d="M9.293 12.95l.707.707L15.657 8l-1.414-1.414L10 10.828 5.757 6.586 4.343 8z"></path>
          </svg>
     </div>
</div>
</form>