{"id":6944,"date":"2023-05-05T17:59:09","date_gmt":"2023-05-05T14:59:09","guid":{"rendered":"https:\/\/creativethemes.com\/blocksy\/?post_type=documentation&#038;p=6944"},"modified":"2024-06-08T18:47:20","modified_gmt":"2024-06-08T15:47:20","slug":"colour-switch","status":"publish","type":"documentation","link":"https:\/\/creativethemes.com\/blocksy\/docs\/header-elements\/colour-switch\/","title":{"rendered":"Color Switch"},"content":{"rendered":"\n<figure data-wp-context=\"{&quot;imageId&quot;:&quot;69eb9ced63a59&quot;}\" data-wp-interactive=\"core\/image\" data-wp-key=\"69eb9ced63a59\" class=\"wp-block-image size-full has-lightbox wp-lightbox-container\"><img decoding=\"async\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on--click=\"actions.showLightbox\" data-wp-on--load=\"callbacks.setButtonStyles\" data-wp-on-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/creativethemes.com\/blocksy\/wp-content\/uploads\/2023\/05\/Screenshot-2023-05-05-at-17.52.26-1.png\" alt=\"\" class=\"wp-image-6953\"\/><button\n\t\t\tclass=\"lightbox-trigger\"\n\t\t\ttype=\"button\"\n\t\t\taria-haspopup=\"dialog\"\n\t\t\taria-label=\"Enlarge\"\n\t\t\tdata-wp-init=\"callbacks.initTriggerButton\"\n\t\t\tdata-wp-on--click=\"actions.showLightbox\"\n\t\t\tdata-wp-style--right=\"state.imageButtonRight\"\n\t\t\tdata-wp-style--top=\"state.imageButtonTop\"\n\t\t>\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewBox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\" \/>\n\t\t\t<\/svg>\n\t\t<\/button><figcaption class=\"wp-element-caption\">The <strong>Colour Switch<\/strong> element in action.<\/figcaption><\/figure>\n\n\n\n<p>The <strong>Color Switch <\/strong>header element lets your visitors dial down the brightness of your website and enter the world of <em>dark mode<\/em>. <strong>Color Switch <\/strong>can be added to the header by activating the <strong><a href=\"https:\/\/creativethemes.com\/blocksy\/docs\/extensions\/dark-mode\/\" data-type=\"link\" data-id=\"https:\/\/creativethemes.com\/blocksy\/docs\/extensions\/dark-mode\/\" target=\"_blank\" rel=\"noreferrer noopener\">Color Switch extension<\/a> <\/strong>from the Blocksy dashboard.<\/p>\n\n\n\n<p>This element automatically activates the dark color scheme, which can be set up using the <strong><a href=\"https:\/\/creativethemes.com\/blocksy\/docs\/general-options\/colors\/\" data-type=\"link\" data-id=\"https:\/\/creativethemes.com\/blocksy\/docs\/general-options\/colors\/\" target=\"_blank\" rel=\"noreferrer noopener\">Colors<\/a><\/strong> pane of the Customizer.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Granular Controls<\/h3>\n\n\n\n<div class=\"wp-block-columns is-layout-flex wp-container-core-columns-is-layout-28f84493 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\" style=\"flex-basis:33.33%\">\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" src=\"https:\/\/creativethemes.com\/blocksy\/wp-content\/uploads\/2023\/05\/Screenshot-2023-05-05-at-17.40.24-1.png\" alt=\"\" class=\"wp-image-6939\"\/><\/figure>\n<\/div>\n\n\n\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\" style=\"flex-basis:66.66%\">\n<h5 class=\"wp-block-heading\">Icon Controls<\/h5>\n\n\n\n<p>The first two sections of the <strong>Color Switch<\/strong> element&#8217;s pane are dedicated to controlling its appearance on the front end. You get a choice of three nicely animated icons, as well as the ability to modify the icon size.<\/p>\n\n\n\n<h5 class=\"wp-block-heading\">Label Visibility<\/h5>\n\n\n\n<p>This option lets you show the&nbsp;<strong>text label<\/strong>&nbsp;of the element on a per device basis.<\/p>\n\n\n\n<h5 class=\"wp-block-heading\">OS Aware<\/h5>\n\n\n\n<p>All operating systems have a dark color scheme available for users to choose nowadays. Wouldn&#8217;t it be nice if your website would sync its color scheme with the host operating system, instead of blasting you with pure white in a dark room at 3am?<\/p>\n\n\n\n<p>This option lets you do just that. It automatically switches your website to the visitor&#8217;s operating system settings, achieving synchronisation between the two. No more sore eyes!<\/p>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>The Color Switch header element lets your visitors dial down the brightness of your website and enter the world of dark mode. Color Switch can be added to the header by activating the Color Switch extension from the Blocksy dashboard. This element automatically activates the dark color scheme, which can be set up using the [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"_acf_changed":false,"footnotes":""},"doc_categories":[124],"class_list":["post-6944","documentation","type-documentation","status-publish","hentry","doc_categories-header-elements"],"blocksy_meta":{"docs_item_badge":"PRO"},"acf":[],"_links":{"self":[{"href":"https:\/\/creativethemes.com\/blocksy\/wp-json\/wp\/v2\/documentation\/6944","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/creativethemes.com\/blocksy\/wp-json\/wp\/v2\/documentation"}],"about":[{"href":"https:\/\/creativethemes.com\/blocksy\/wp-json\/wp\/v2\/types\/documentation"}],"author":[{"embeddable":true,"href":"https:\/\/creativethemes.com\/blocksy\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/creativethemes.com\/blocksy\/wp-json\/wp\/v2\/comments?post=6944"}],"version-history":[{"count":3,"href":"https:\/\/creativethemes.com\/blocksy\/wp-json\/wp\/v2\/documentation\/6944\/revisions"}],"predecessor-version":[{"id":10676,"href":"https:\/\/creativethemes.com\/blocksy\/wp-json\/wp\/v2\/documentation\/6944\/revisions\/10676"}],"wp:attachment":[{"href":"https:\/\/creativethemes.com\/blocksy\/wp-json\/wp\/v2\/media?parent=6944"}],"wp:term":[{"taxonomy":"doc_categories","embeddable":true,"href":"https:\/\/creativethemes.com\/blocksy\/wp-json\/wp\/v2\/doc_categories?post=6944"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}