Add a Switch block to your Website to toggle a 'darkmode' CSS class.
It won't make your site Dark out of the box, but you will need to customise your CSS around the dark mode selector.
Installation
- Enable Dark Mode Switch module like any other contrib module.
- Configure settings here: /admin/config/user-interface/dark_mode_switch
Usage
- Place the Dark Mode Switch block in the region desired.
- Customize the markup using the template 'dark-mode-switch--block.html.twig'.
- Add the css selector '.darkmode' in your theme CSS.
Project information
- Ecosystem: Dark Mode
241 sites report using this module
- Created by rudam on , updated
Stable releases for this project are covered by the security advisory policy.
There are currently no supported stable releases.


