<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 { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; line-height: 1; } .input { display: none;