<div class="container"> <label for="switch" class="toggle"> <input type="checkbox" class="input" id="switch" /> <div class="icon icon--moon"> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor" width="32" height="32" > <path
.toggle { background-color: #fff; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; box-shadow: 0 0 50px 20px rgba(0, 0, 0, 0.1); line-height: 1; }