Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    How to keep my auto dark mode theme after a pfSense upgrade in the future?

    Scheduled Pinned Locked Moved General pfSense Questions
    5 Posts 3 Posters 670 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • G
      Gerard64
      last edited by Gerard64

      In /usr/local/www/css/ I created pfSense-auto.css
      In the css file i put:

      -----------------------------------------
      /* Assume light mode by default */
      @import "/css/pfSense.css" screen;
      
      /* Supersede dark mode when applicable */  
      @import "/css/pfSense-dark.css" screen and (prefers-color-scheme: dark);
      -----------------------------------------
      

      Then in pfSense web Gui at System > General Setup. > Theme i switched to pfSense-auto to enable auto dark mode.

      I gues after a pfSense upgrade this will go away?
      Is there a way to keep this auto dark mode theme and its setting in System > General Setup ?

      provelsP 1 Reply Last reply Reply Quote 0
      • provelsP
        provels @Gerard64
        last edited by

        @Gerard64 said in How to keep my auto dark mode theme after a pfSense upgrade in the future?:

        I guess after a pfSense upgrade this will go away?

        I would just copy that edited file off before upgrade and restore it manually. I do that now with some of my personal custom files.

        Peder

        MAIN - pfSense+ 24.11-RELEASE - Adlink MXE-5401, i7, 16 GB RAM, 64 GB SSD. 500 GB HDD for SyslogNG
        BACKUP - pfSense+ 23.01-RELEASE - Hyper-V Virtual Machine, Gen 1, 2 v-CPUs, 3 GB RAM, 8GB VHDX (Dynamic)

        G 1 Reply Last reply Reply Quote 0
        • G
          Gerard64 @provels
          last edited by

          @provels
          I have a pfSense dir on my NAS with custom pfSense files, also a copy of this auto dark theme css file i saved on there.
          I was just wondering if there is a way this could survive a system upgrade.
          Because this adding up on all the custom things i "need" to do after a system upgrade.

          1 Reply Last reply Reply Quote 0
          • stephenw10S
            stephenw10 Netgate Administrator
            last edited by

            You can add custom files into the config using the filer package. Within reason.

            G 1 Reply Last reply Reply Quote 1
            • G
              Gerard64 @stephenw10
              last edited by

              Thank you @stephenw10
              You guys thought of that, fantastic 👍

              1 Reply Last reply Reply Quote 0
              • First post
                Last post
              Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.