Title: Media Query usage
Last modified: July 31, 2019

---

# Media Query usage

 *  Resolved [Dahnark](https://wordpress.org/support/users/dahnark/)
 * (@dahnark)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/media-query-usage/)
 * 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](https://wordpress.org/support/users/markoarula/)
 * (@markoarula)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/media-query-usage/#post-11793322)
 * 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.

 * ![](https://ps.w.org/wp-night-mode/assets/icon-128x128.png?rev=1894661)
 * [WP Night Mode](https://wordpress.org/plugins/wp-night-mode/)
 * [Support Threads](https://wordpress.org/support/plugin/wp-night-mode/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-night-mode/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-night-mode/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-night-mode/reviews/)

## Tags

 * [media query](https://wordpress.org/support/topic-tag/media-query/)

 * 1 reply
 * 2 participants
 * Last reply from: [markoarula](https://wordpress.org/support/users/markoarula/)
 * Last activity: [6 years, 10 months ago](https://wordpress.org/support/topic/media-query-usage/#post-11793322)
 * Status: resolved