reflar/nightmode
Add a Night Mode option for your users to use on your Flarum forum
Maintainers
Package info
github.com/FriendsOfFlarum/nightmode
Type:flarum-extension
pkg:composer/reflar/nightmode
Fund package maintenance!
Requires
- php: ^7.4 || ^8.0
- flarum/core: ^1.7.0
Requires (Dev)
Suggests
None
Provides
None
Conflicts
None
Replaces
MIT b65b1b4d092502a9e3801eb8d717ddd1f0f39d7a
- Christian Lopez <Lopez.T.Christian.woop@gmail.com>
- David Sevilla Martin
This package is auto-updated.
Last update: 2026-02-15 21:31:25 UTC
README
👁 GitHub license
👁 Latest Stable Version
👁 Total Downloads
A Flarum extension. Add a Night Mode 🌙 for your users to use on your Flarum forum! (THE LIGHT 🌞, IT BUUUURNSSS!!!)
- A new "Night Mode" menu option will appear in your user options when you click on your avatar next to the notifications icon.
👁 Night Mode Option
- A "Day Mode" option has been added as well to make the light appear again! (BEGONE, DANKESS!)
👁 Day Mode Option
Installation
Install manually with composer:
composer require fof/nightmode:"*"
Updating
composer update fof/nightmode
Integrating with fof/nightmode from another extension
Each time the mode is switched from day to night (and vice versa), a fofnightmodechange event is dispatched. An extension can then listen to this event to react to this change, like so:
if (flarum.extensions['fof-nightmode']) { document.addEventListener('fofnightmodechange', (event) => { if (event.detail == 'day') { console.log('day mode'); } else { console.log('night mode'); } }); }
Links
An extension by FriendsOfFlarum.
