{"id":2733,"date":"2019-09-30T11:45:00","date_gmt":"2019-09-30T11:45:00","guid":{"rendered":"https:\/\/azoora.com\/blog\/?p=2733"},"modified":"2019-08-25T12:26:54","modified_gmt":"2019-08-25T12:26:54","slug":"darkmodejs-utility-package-for-managing-dark-mode-on-the-web","status":"publish","type":"post","link":"https:\/\/azoora.com\/blog\/code\/darkmodejs-utility-package-for-managing-dark-mode-on-the-web\/","title":{"rendered":"Darkmodejs: Utility package for managing Dark Mode on the Web"},"content":{"rendered":"\n<p>Darkmodejs is utility package for managing Dark Mode on the Web.Dark Mode is a feature in modern Operating Systems which allows you to change your default UI from a light to dark theme. On the web we can take advantage of this to control the theme of our website.<\/p>\n\n\n\n<p>Utilises the matchMedia API and its listeners, in combination with the prefers-color-scheme media query, in order to fire functions whenever you\u2019re in Dark Mode.<\/p>\n\n\n\n<blockquote class=\"wp-block-quote\"><p><strong>Demo<\/strong>: <a href=\"https:\/\/darkmodejs-demo.netlify.com\/\">Link<\/a><\/p><p><strong>Download<\/strong>: <a href=\"https:\/\/github.com\/Assortment\/darkmodejs\/archive\/master.zip\">GitHub<\/a><\/p><p><a rel=\"noreferrer noopener\" href=\"https:\/\/delicious.com\/save?v=5&amp;noui&amp;jump=close&amp;url=http:\/\/www.bestjquery.com\/2019\/07\/darkmodejs-utility-package-for-managing-dark-mode-on-the-web\/&amp;title=Darkmodejs+%3A+Utility+package+for+managing+Dark+Mode+on+the+Web\" target=\"_blank\"><\/a><\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>Darkmodejs is utility package for managing Dark Mode on the Web.Dark Mode is a feature in modern Operating Systems which allows you to change your default UI from a light to dark theme. On the web we can take advantage of this to control the theme of our website. Utilises the matchMedia API and its [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":2735,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"spay_email":"","jetpack_publicize_message":"","jetpack_is_tweetstorm":false},"categories":[4,12],"tags":[25,87],"jetpack_featured_media_url":"https:\/\/azoora.com\/blog\/wp-content\/uploads\/2019\/09\/SharedScreenshot.jpg","jetpack_publicize_connections":[],"jetpack_shortlink":"https:\/\/wp.me\/p7FQPL-I5","jetpack-related-posts":[],"jetpack_sharing_enabled":true,"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/azoora.com\/blog\/wp-json\/wp\/v2\/posts\/2733"}],"collection":[{"href":"https:\/\/azoora.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/azoora.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/azoora.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/azoora.com\/blog\/wp-json\/wp\/v2\/comments?post=2733"}],"version-history":[{"count":1,"href":"https:\/\/azoora.com\/blog\/wp-json\/wp\/v2\/posts\/2733\/revisions"}],"predecessor-version":[{"id":2734,"href":"https:\/\/azoora.com\/blog\/wp-json\/wp\/v2\/posts\/2733\/revisions\/2734"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/azoora.com\/blog\/wp-json\/wp\/v2\/media\/2735"}],"wp:attachment":[{"href":"https:\/\/azoora.com\/blog\/wp-json\/wp\/v2\/media?parent=2733"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/azoora.com\/blog\/wp-json\/wp\/v2\/categories?post=2733"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/azoora.com\/blog\/wp-json\/wp\/v2\/tags?post=2733"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}