Extension:DarkMode

The DarkMode extension adds a link to the top toolbar to toggle a dark mode theme.

Installation

 * Download and place the file(s) in a directory called  in your   folder.
 * Add the following code at the bottom of your LocalSettings.php:
 * ✅ – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.

Configuration
Dark Modes works by adding the CSS  to the HTML element, and then applies some refinements to MediaWiki UI elements.

Excluding elements from dark mode
On your wiki, you can add the  CSS class to any element that you don't want inverted. Or you could use the same  CSS above again, which will invert and rotate the elements back to normal.

Styling elements in dark mode
Dark Mode adds the  CSS class to the HTML element. If you want to change the way some elements look in dark mode, just prefix the selector with.