JSFiddle - React, Tailwind, and code Playground

by Christian Sonne

HTML

<script src="https://cdnjs.cloudflare.com/ajax/libs/prefixfree/1.0.7/prefixfree.min.js"></script>
<form action="">
  <ul>
    <li>
      <input type="checkbox" name="website" id="website">
      <label for="website">Website</label>
    </li>
    <li>
      <input type="checkbox" name="documents" id="documents">
      <label for="documents">Documents</label>
    </li>
    <li>
      <input type="checkbox" name="social" id="social">
      <label for="social">Social Account</label>
    </li>
  </ul>
</form>

CSS

html, body {
  margin: 0;
  padding: 0;
  background: white;
}

ul {
  margin: 20px;
  padding: 0;
}

li {
  list-style: none;
  display: inline-block;
  margin: 0 13px;
}

label {
  width: 240px;
  height: 44px;
  padding: 130px 0 0 0;
  background: #F7F7FA no-repeat center 28px;
  box-shadow: inset 0 0 0 2px #EAEAF0;
  border-radius: 3px;
  display: inline-block;
  text-align: center;
  color: #979FBB;
  font-family: sans-serif;
  font-weight: bold;
  font-size: smaller;
  cursor: pointer;
  position: relative;
  user-select: none;
}

input {
  display: none;
}

input:checked+label {
  box-shadow: inset 0 0 0 4px #78A8DF;
}

input:checked+label:after {
  content: "";
  position: absolute;
  top: -8px;
  right: -8px;
  height: 28px;
  line-height: 28px;
  text-align: center;
  width: 28px;
  border-radius: 50%;
  background: #78A8DF...