JSFiddle - React, Tailwind, and code Playground
by jeremyblalock
HTML
<div class='wrapper'>
<div class='input'>
<input type='text' placeholder='email' />
</div>
<div class='input'>
<input type='password' placeholder='password' />
</div>
<div class='input'>
<button class='btn'>Login</button>
</div>
</div>
CSS
* {
box-sizing: border-box;
}
body {
font-family: 'Helvetica Neue';
font-size: 18px;
}
input {
font: inherit;
display: block;
outline: none !important;
width: 100%;
border: 1px solid #d9d9d9;
height: 58px;
padding: 18px;
border-radius: 2px;
}
::-webkit-input-placeholder {
color: #999;
font-size: 11px;
line-height: 24px;
text-transform: uppercase;
letter-spacing: 0.3px;
font-weight: 600;
}
.btn {
border: 1px solid #08f;
font: inherit;
font-size: 11px;
font-weight: bold;
text-transform: uppercase;
letter-spacing: 0.3px;
height: 58px;
text-align: center;
border-radius: 2px;
background: transparent;
width: 100%;
color: #08f;
display: block;
cursor: pointer;
transition: all 0.2s;
}
.btn:hover {
color: #fff;
background-color: #08f;
}
.wrapper {
margin: 40px;
padding: 20px 40px;
border-radius: 3px;
box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15);
}
.input {
margin: 20px 0;
}