JSFiddle - React, Tailwind, and code Playground

by jeremyblalock

HTML

<form>
    <div class='input'>
        <input type='email' placeholder='Email' name='email'/>
    </div>
</form>

CSS

* {
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica Neue', Helvetica, sans-serif;
}

form {
    width: 300px;
    margin: 40px auto;
}

input {
    font: inherit;
    width: 100%;
    padding: 10px;
    padding-left: 40px;
    box-shadow: 0 0 0 1px #ddd;
    background: #fff;
    display: block;
    border: none;
    border-radius: 1px;
}
input:focus {
    box-shadow: none;
    outline: none;
    border-color: transparent;
}
.input {
    position: relative;
    background-image: -webkit-linear-gradient(right bottom, #f00, #07F);
    padding: 1px;
    border-radius: 2px;
}
.input:before {
    content: '◊';
    position: absolute;
    top: 0;
    left: 15px;
    line-height: 43px;
    color: #ccc;
}