JSFiddle - React, Tailwind, and code Playground
HTML
<form>
<div>
<label for="nombre">Nombre*:</label>
<input type="text" name="nombre" id="nombre" placeholder="escribe tu nombre completo" required/>
</div>
<div>
<label for="email">Mail*:</label>
<input type="email" name="email" id="email" required/>
</div>
<div>
<label for="mensaje">Mensaje:</label>
<textarea name="nombre" id="nombre"></textarea>
</div>
<div class="buttons">
<button type="submit">Enviar</button>
<button type="reset">Borrar</button>
</div>
</form>
CSS
*{
margin:0; padding:0;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
form{
width:500px;
margin-left:20px;
margin-top:10px;
background:#A3F5FB;
border:1px solid #069;
padding:23px 23px 0;
border-radius:8px;
}
form > div{
padding-bottom:10px;
}
form label{
color:#069;
width:130px;
font-family:Arial;
font-size:17px;
font-weight:500;
display:inline-block;
}
input {
width:300px;
background-color:#E4FBFC;
border: 1px solid #999;
margin-left:10px;
padding:6px 8px;
border-radius:3px;
}
textarea {
width:300px;
height:130px;
background:#E4FBFC;
border: 1px solid #999;
margin-left:10px;
vertical-align:middle;
resize:none;
border-radius:3px;
}
input:hover, input:focus,
textarea:hover, textarea:focus{
background:#fff;
border-color:#000;
outline-color:#fff;
}
.buttons{
margin:10px 0;
}
button{
width:120px;
height:29px;
font-family:Arial;
font-size:17px;
font-weight:300;
color:#E4FBFC;
background:#006699;
border-right: 2px solid #000;
border-top: 2px solid #000;
-webkit-border-radius:10px 0 10px 0;
-moz-border-radius:10px 0 10px 0;
border-radius:10px 0 10px 0;
}
button[type="submit"]{
margin-left:150px;
margin-right:10px;
}