<div class="theme-switch"> <input type="checkbox" id="theme-checkbox" /> <label for="theme-checkbox"> <div></div> <span> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor" class="w-6 h-6" > <path
.theme-switch { position: relative; display: flex; justify-content: center; direction: rtl; } #theme-checkbox { display: none; } #theme-checkbox + label {