JSFiddle - React, Tailwind, and code Playground

by jeremyblalock

HTML

<form>
    <div class='input'>
        <input type='text' name='email' placeholder='Email Address' />
    </div>
    <div class='input'>
        <input type='text' name='first_name' placeholder='First Name' />
    </div>
    <div class='input'>
        <input type='text' name='last_name' placeholder='Last Name' />
    </div>
    <div class='input'>
        <input type='text' name='phone' placeholder='Phone Number' />
    </div>
    <div class='input'>
        <input type='text' name='country' placeholder='Country' />
    </div>
</form>

CSS

* {
    -webkit-box-sizing: border-box;
}
body {
    background: #333;
    padding: 40px;
}

input {
    width: 100%;
    padding: 20px;
    border: 2px solid #aaa;
    background: transparent;
    font-size: 20px;
    color: #fff;
    border-radius: 4px;
    margin-bottom: 10px;
    outline: none !important;
}
input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0px 1000px #6e6655 inset;
    -webkit-text-fill-color: #fff;
}