• newslicer

    (@newslicer)


    Hello ??

    First of all: this is a great plugin – something i really looked after for a long time. It’s simple, small and very easy to integrate into FSE themes. Thanks a lot for your work with it! I really appreciate that.

    I have two questions:

    1. I somehow have problems understandig how i can change the custom settings for particular site elements within CSS. How can i adress the items correctly for the dark mode? Example: if i would like to change the background for the comments or the headings. What do i have to write in the code and where exacly (functions.php oder style.css)?
    2. Do you have any future plans with the plugin? Is it still being developed? I would really be happy if you keep up with this. Your great plugins deserves much more attention and installations then it seems to have.

    Thanks in advance for reading and reacting

    André

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Erik

    (@codekraft)

    Hi André,

    Thanks first of all for the appreciation for the plugin, I’m so glad you find it simple and easy to integrate, that’s what I wanted to do, I’m glad it’s appreciated! ??

    To answer your questions:

    1) The plugin has 2 “modes”.

    The first mode is the one where you use the default style. In short, it works by adding the class dark-mode to the html element, and when this class is active, the following happens:

    .dark-mode, .dark-mode .no-dark, .dark-mode img, .dark-mode svg, .dark-mode video {
        filter: invert(100%) hue-rotate(180deg);
    }

    This means that the content of the page is inverted and the “hue” is rotated 180 degrees (to fix the colors).

    If you want to prevent the dark mode from working for some part of your template, you can add the class “no-dark” (the element must have a background color, otherwise only the text color will be preserved).

    This works from the editor without any complications. However, if you want to have control over the style, you can use what I suggest in the plugin’s readme (let’s call it mode “2”), which is to remove my custom style and create your own (I explain how to do this below). With newer themes, I recommend doing this because instead of inverting everything with dark mode, you only invert the background color and the text color, which is much better.

    2) future plans

    I am open to any suggestions for improvement… Feel free to suggest any changes in an issue or with a PR. The link to the repo on Git is at the bottom of the readme! I think the count is unrealistic because I use this plugin on at least 5-6 websites (and a few more on vm’s if they count)… but in the end it doesn’t matter when I receive such appreciations ??


    And thanks again for using my plugin! It’s always rewarding to hear from users who appreciate the work that goes into it ??. And don’t hesitate if you have any further questions or need any help in the future!

      Thread Starter newslicer

      (@newslicer)

      Thanks so much for your reply Erik!

      I will try to embed the plugin into the style of my blog soon and will come back if i have questions.

      Can you maybe somehow push the plugin to be compatbile with the current WordPress version? There’s a message on the plugin site that it’s not compatible in the moment.

    Viewing 2 replies - 1 through 2 (of 2 total)
    • The topic ‘Small style issues and future of this plugin’ is closed to new replies.