<input id="toggle_checkbox" type="checkbox">
  <label for="toggle_checkbox"></label>
<style>
/* From Uiverse.io by guilhermeyohan - Tags: switch */
#toggle_checkbox {
  display: none;
}

label {
  position: absolute;
  top: 50%;
  right: 0;
  left: 0;
  display: block;
  width: 70px;
  height: 30px;
  margin: 0 auto;
  transform: translateY(-50%);
  cursor: pointer;
}

label:before {
  top: 2px;
  left: 3px;
  width: 26px;
  height: 26px;
  border: 3px solid rgb(2, 169, 38);
}

label:after {
  top: 0;
  rig