em... I executed this:composer require fof/nightmode:^0.4.0

datitisev Are you suggesting some feature here? Users can override the forum's selected color scheme (through extension settings) by going to their settings page or clicking on the day/night mode button in the session dropdown.

No feature suggestion. I did not have the latest version installed where you now have an admin setting to turn off automatic based on device settings mode. So, I’m good now.

iwoow I will not be adding the .dark class back, and we won't give support if you're using an earlier version (I see you installed ^0.4.0, so this is why I'm saying this).

You can customize the styles for light mode & dark mode separately by either using the Flarum CSS variables @ https://github.com/flarum/core/blob/v0.1.0-beta.13/less/common/variables.less like background-color: @body-bg or following the code shown by me (datitisev) and Operator (Operator)

17 days later

Is it possible to use a different forum logo with dark mode toggled on? I have black in my logo and it is understandably very difficult to see/read with dark mode enabled. I saw this in another thread but automatic day/night mode based on time of day would be a cool feature! Great work here btw!

    ctml i would also really like a way to change forum logo for light and dark if possible please...

      ctml MartinJD What you could do is use a background image through CSS instead of the actual logo. through the Flarum admin. Then you can check the @config-dark-mode variable and change the value of either a variable with the URL or the CSS itself for the logo.

      2 months later

      TeddHUN Are you on beta 14? This extension is not yet compatible with beta 14.

      @datitisev I don't know, i followed the Install document.
      composer create-project flarum/flarum . --stability=beta
      Maybe

      Yeah so if you installed recently means after 20th you have to wait for the extension to be updated.

      That command usually installs the latest version.

      I'm not sure about it. You gotta wait for someone who knows better.

      TeddHUN if that's your core the easiest way to use beta 14 is to probably set up everything again, making sure you choose beta 13 this time

      5 days later

      karaok When I see a post from karaok I'm super happy, crying of joy in my mind xD.
      But lately he delivers so frequently that I only "like" the post & don't reply because I'm scared to get warned or banned for "flooding" ( 😆 😅 ❤️ ) / or at least i try to reply less 🤣

      Instructions to install Night Mode by FriendsOfFlarum for Beta 14:

      composer require fof/nightmode
      php flarum cache:clear

      9 days later

      [root@server bin]# composer require fof/nightmode
      Do not run Composer as root/super user! See https://getcomposer.org/root for details
      Continue as root/super user [yes]? yes
      Using version 0.6.0 for fof/nightmode
      ./composer.json has been updated
      Running composer update fof/nightmode
      Loading composer repositories with package information
      Updating dependencies
      Your requirements could not be resolved to an installable set of packages.

      Problem 1
      - Root composer.json requires fof/nightmode 0.6.0 -> satisfiable by fof/nightmode[0.6.0].
      - fof/nightmode 0.6.0 requires flarum/core 0.1.0-beta.14 -> found flarum/core[dev-master, v0.1.0-beta.14, v0.1.0-beta.14.1, 0.1.x-dev (alias of dev-master)] but it does not match your minimum-stability.

      Installation failed, reverting ./composer.json and ./composer.lock to their original content.
      [root@server bin]#

      how to solve this problem

        csboy0 [root@server bin]#

        You are not inside your flarum installation directory.

        12 days later

        Hello! is it possible to change the primary color (theme color) of flarum when switching between dark and light modes via css?