GitHub repository: summercms/dark-mode-toggle
Description: A custom element that allows you to easily put a Dark Mode 🌒 toggle or switch on your site: