Viewing 2 replies - 1 through 2 (of 2 total)
  • Theme Author presscustomizr

    (@nikeo)

    there’s no night mode option in the Customizr theme

    Thread Starter TKList

    (@tklist)

    Figured it out.
    It was pretty easy. In case this helps anyone else.
    Switch black and white if your default is dark.

    <style>
    .dark-mode {
    background-color: black;
    color: white;
    }
    </style>

    <button onclick=”myFunction()”>Light/Dark</button>

    <script>
    function myFunction() {
    var element = document.body;
    element.classList.toggle(“dark-mode”);
    }
    </script>

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Night Mode’ is closed to new replies.