<div class="switch"> <input checked="" name="check" id="switchBox" value="" type="checkbox" /> <label class="slider" for="switchBox"></label> </div>
.switch { --w-switch: 120px; --h-switch: calc((var(--w-switch) / 3)); --inset-switch: calc(var(--w-switch) * (3.75 / 100)); --clr-on: #27ae60; --clr-off: #ff0000; --shadow-sz: calc((var(--w-switch) * (1.2 / 100))); width: var(--w-switch); height: var(--h-switch); display: flex; align-items: center; justify-content: center;