• Resolved Dahnark

    (@dahnark)


    How can I use Media Query to detect the chrome theme?

    If it is enabled, the night mode is enabled disabled based on user browsers mode, but if he wants to change the theme, it has to change every time via button?

    More info about this feature should be great.

Viewing 1 replies (of 1 total)
  • Plugin Author markoarula

    (@markoarula)

    If you want to add some custom CSS, write it inside this media query and also outside media query.

    Here is an example:

    .homepage .text {
      color: #FFFFFF;
    }
    
    @media (prefers-color-scheme: dark) {
      .homepage .text {
        color: #FFF;
      }
    }

    The plugin generally needs better documentation, we will work on that as well.

Viewing 1 replies (of 1 total)
  • The topic ‘Media Query usage’ is closed to new replies.