Dark mode for the fedoraproject-org-wiki page | as a logged in User exists a wokaround

There is no official dark mode for the wiki page. On the Wikimedia page they mention something about a browser extension.
Firefox has a dark mode but this will not work on the wiki page.

Is there a dark-mode for the wiki in the pipeline ?

1 Like

The workaround so far is to copy and paste a dark-mode css from:

into:

Skin > (Fedora (default) custom.css)

There are still some pages not displayed in dark-mode, like the preferences. I also tested the custom.css for shared CSS, no change.

FYI - I use the Dark Reader extension for Firefox to handle web sites that are not dark-mode friendly. The website is Help – Dark Reader

3 Likes

With the extension it looks good. However a extension independent solution would be great/prefered.

I do have several systems with access to the wiki.

Going to dig a bit and look if I can find the CSS we do use. Probably there is a Podman container with it, to play around.
On the fedoraproject.org website we do have a nice solution to siwtch.

I will give feedback.

Agreed a supported dark mode is the best option.
It can be designed to look good in dark mode.

I found it:
Ryan Lerch / Forks / Fedora Mediawiki Theme · GitLab

I try to go thru, and have a look if it is possible to adapt for a dark-theme switch. The fedora container is still on F39. Maybe it is possible to fix this also :wink: . I check with the maintainer.

Errors and workarounds
Bringing machine 'wiki' up with 'libvirt' provider...
There are errors in the configuration of this machine. Please fix
the following errors and try again:

Vagrant:
* Unknown configuration section 'hostmanager'.

Solved with installing vagrant-hostmanager package # I might add this to the instructions?

Looks like a altert ?!

wiki: Downloading: https://download.fedoraproject.org/pub/fedora/linux/releases/39/Cloud/x86_64/images/Fedora-Cloud-Base-Vagrant-39-1.5.x86_64.vagrant-libvirt.box
==> wiki: Successfully added box 'f39-cloud-libvirt' (v0) for 'libvirt'!
==> wiki: No version detected for f39-cloud-libvirt, using timestamp to watch for modifications. Consider
==> wiki: generating a local metadata for the box with a version to allow better handling.
==> wiki: See https://www.vagrantup.com/docs/boxes/format#box-metadata for further details.
==> wiki: Running provisioner: shell...
    wiki: Running: inline script
    wiki: Fedora 39 - x86_64                              4.2 MB/s |  89 MB     00:21
    wiki: Fedora 39 openh264 (From Cisco) - x86_64        574  B/s | 2.6 kB     00:04
    wiki: Fedora 39 - x86_64 - Updates                    2.6 MB/s |  42 MB     00:16
    wiki: Last metadata expiration check: 0:00:03 ago on Thu 20 Mar 2025 01:55:24 PM UTC.
    wiki: Package python3-libselinux-3.5-5.fc39.x86_64 is already installed.
    wiki: Package python3-libsemanage-3.5-4.fc39.x86_64 is already installed.
    wiki: Dependencies resolved.
    wiki: Nothing to do.
    wiki: Complete!
==> wiki: Running provisioner: ansible...
    wiki: Running ansible-playbook...
ERROR! couldn't resolve module/action 'postgresql_user'. This often indicates a misspelling, missing collection, or incorrect module path.

The error appears to be in '/home/ilikelinux/www/gitlab/fedora-mediawiki-theme/ansible/roles/db/tasks/main.yml': line 31, column 7, but may
be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:

- block:
    - name: Create the database user
      ^ here
Ansible failed to complete successfully. Any error output should be
visible above. Please fix these errors and try again.

Main main.yml (fedora-mediawiki-theme/ansible/roles/db/tasks)

- block:
    - name: Create the database user
      postgresql_user:
        name: "mediawikiuser"

  become: yes
  become_user: postgres
  become_method: sudo

It interrupted on the db user creations (see errors)

Incorporating Wikipedia’s Vector skin should provide this, if it doesn’t already come with newer versions of upstream MediaWiki: [1]

this isn’t a MediaWiki thing to implement, it’s a skin thing. Some skins do have dark mode support (Category:Skins with dark mode - MediaWiki), and there are various ways to implement it on existing setups, like Extension:DarkMode - MediaWiki. BTW, there are several efforts to make this happen: ⚓ T26070 [GOAL] Provide a dark / night mode skin or theme.


  1. reddit.com/r/mediawiki/comments/pn46sy/comment/hcn8zv5 ↩︎

1 Like