A WordPress block to add a toggle between light and dark appearances, as seen on my blog. Adds a theme-dark
class to the body element, when toggled on. The user's preference is then saved in local storage. Built with @wordpress/create-block.
-
Notifications
You must be signed in to change notification settings - Fork 4
A WordPress block to add a toggle between light and dark mode on your site.
richtabor/dark-mode-toggle-block
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
A WordPress block to add a toggle between light and dark mode on your site.