תיעוד
שפה22
רכיבים / Theme toggles / magnet-toggle
A dark mode button whose sun leans toward your pointer like it is magnetic; click and it snaps to the pointer's side and is pulled away as the moon swings in from the other side.
index.html
The markup to copy, between the copy-from-here comments, on a demo page.