JSFiddle - React, Tailwind, and code Playground

HTML

<input type="checkbox">

CSS

input[type='checkbox'] {
    margin-top: -30px;
}
input[type='checkbox'] {
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeSpeed;
    width: 13px;
    height: 13px;
    margin: 0;
    margin-right: 1px;
    display: block;
    float: left;
    position: relative;
    cursor:pointer;
}
input[type='checkbox']:after {
    content:"";
    vertical-align: middle;
    text-align: center;
    line-height: 13px;
    position: absolute;
    cursor: pointer;
    height: 13px;
    width: 13px;
    left:0px;
    top:0px;
    font-size:10px;
    -webkit-box-shadow: inset 0px 1px 1px #000, 0px 1px 0px #444;
    -moz-box-shadow: inset 0px 1px 1px #000, 0px 1px 0px #444;
    box-shadow: inset 0px 1px 1px #000, 0px 1px 0px #444;
    background: #45484d;
}
input[type='checkbox']:hover:after, input[type='checkbox']:checked:hover:after {
    background: #2d2d2d;
    content:'\2714';
    color: #888;
}
input[type='checkbox']:checked:after {
    background: #202020;
    content:'\2714';
    color: #fff;
}