{"id":319,"date":"2025-02-27T11:37:16","date_gmt":"2025-02-27T11:37:16","guid":{"rendered":"https:\/\/web-designs-by-niya.uk\/journalpublications\/?p=319"},"modified":"2025-03-26T15:20:22","modified_gmt":"2025-03-26T15:20:22","slug":"how-can-we-design-our-webpages-to-honour-the-users-preference-for-light-or-dark-mode","status":"publish","type":"post","link":"https:\/\/web-designs-by-niya.uk\/journalpublications\/2025\/02\/27\/how-can-we-design-our-webpages-to-honour-the-users-preference-for-light-or-dark-mode\/","title":{"rendered":"How can we design our webpages to honour the user&#8217;s preference for light or dark mode?\u00a0"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Light\/dark mode has been around for a while now, but surprisingly, it\u2019s not implemented much, even though it has become much easier with the introduction of new CSS functions. Having both light and dark modes available on a website is beneficial and important for many reasons. In this article, you will read more about why we should offer our users the choice of either mode and how we can do it.<\/p>\n\n\n\n<div class=\"wp-block-group has-secondary-background-color has-text-color has-background has-link-color wp-elements-3e4a8fb113d02ebb56a73f9b5ccfb761\" style=\"color:#ffffff\"><div class=\"wp-block-group__inner-container is-layout-constrained wp-block-group-is-layout-constrained\">\n<h2 class=\"wp-block-heading has-background-color has-text-color has-link-color wp-elements-be3182004cef1beb1a02921bb1758235\">Table of contents<\/h2>\n\n\n\n<ol class=\"wp-block-list has-black-color has-text-color has-link-color has-medium-font-size wp-elements-de9c7c2c4a3b11c7c5c4fd8ad4282c10\">\n<li><a href=\"#Accessibility\">Accessibility<\/a><\/li>\n\n\n\n<li><a href=\"#Sustainability\">Sustainability<\/a><\/li>\n\n\n\n<li><a href=\"#Benefits-of-light-and-dark-modes\">Benefits of light and dark modes<\/a><\/li>\n\n\n\n<li class=\"has-black-color has-text-color has-link-color wp-elements-15a8a0e1b34c74e48cd0a1064f539b83\"><a href=\"#making-available\">How can we make light and dark modes available to the user?<\/a><\/li>\n\n\n\n<li><a href=\"#conclusion\">Conclusion<\/a><\/li>\n\n\n\n<li><a href=\"#additional-resources\">Additional materials<\/a><\/li>\n\n\n\n<li><a href=\"#slides\">Presentation slides<\/a><\/li>\n<\/ol>\n<\/div><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"Accessibility\" style=\"font-style:normal;font-weight:400\">Accessibility<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">In terms of accessibility, <a href=\"https:\/\/www.boia.org\/blog\/dark-mode-can-improve-text-readability-but-not-for-everyone\">people with astigmatism, dyslexia or lower vision<\/a> often find dark text on a lighter background <a href=\"https:\/\/website-designer-reading.co.uk\/web-designer-blog\/dark-mode-vs-light-mode-in-web-design\/\">(light mode) easier to read<\/a>, especially if it is a longer piece of text like a news page or a government site. It is important to also note that using a full black and white colour can be problematic for some of those people, because of the total contrast between both colours, especially if we offer only dark mode. <a href=\"https:\/\/medium.com\/@h_locke\/why-dark-mode-causes-more-accessibility-issues-than-it-solves-d2f8359bb46a\">For people with astigmatism, it is called the \u201chalation effect\u201d<\/a>.<\/p>\n\n\n\n<figure class=\"wp-block-gallery has-nested-images columns-default wp-block-gallery-1 is-layout-flex wp-block-gallery-is-layout-flex\">\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"404\" height=\"108\" data-id=\"482\" src=\"https:\/\/web-designs-by-niya.uk\/journalpublications\/wp-content\/uploads\/2025\/02\/Picture1.png\" alt=\"\" class=\"wp-image-482\" srcset=\"https:\/\/web-designs-by-niya.uk\/journalpublications\/wp-content\/uploads\/2025\/02\/Picture1.png 404w, https:\/\/web-designs-by-niya.uk\/journalpublications\/wp-content\/uploads\/2025\/02\/Picture1-300x80.png 300w\" sizes=\"auto, (max-width: 404px) 100vw, 404px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"450\" height=\"166\" data-id=\"491\" src=\"https:\/\/web-designs-by-niya.uk\/journalpublications\/wp-content\/uploads\/2025\/02\/blurred-text-lm-1.png\" alt=\"\" class=\"wp-image-491\" srcset=\"https:\/\/web-designs-by-niya.uk\/journalpublications\/wp-content\/uploads\/2025\/02\/blurred-text-lm-1.png 450w, https:\/\/web-designs-by-niya.uk\/journalpublications\/wp-content\/uploads\/2025\/02\/blurred-text-lm-1-300x111.png 300w\" sizes=\"auto, (max-width: 450px) 100vw, 450px\" \/><\/figure>\n<\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">On the other side, people struggling with migraines or <a href=\"https:\/\/www.boia.org\/blog\/dark-mode-can-improve-text-readability-but-not-for-everyone\">photophobia<\/a> (sensitivity to light) are more likely to find it easier to consume content that is in lighter text on a darker background (dark mode). <a href=\"https:\/\/www.nngroup.com\/articles\/dark-mode\/\">For some people with lower vision<\/a>, when there is too much light, their eyes struggle to create a clear and focused image and they might prefer using dark mode where lower levels of light reach the eye making it easier for them to focus on the content they see.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Switching from one website that supports light and dark mode to another that offers only light or only dark mode can often <a href=\"https:\/\/medium.com\/dev-channel\/let-there-be-darkness-maybe-9facd9c3023d\">cause eye strain<\/a>, even to people without accessibility needs. And as web designers and developers, it is our job to ensure that the work we produce not only satisfies the client\u2019s needs but the users&#8217; too. We are designing for the client\u2019s users, so we need to make sure we are considerate of their experience on our site and the other sites they visit &#8211; their experience on the web as a whole!<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"Sustainability\" style=\"font-style:normal;font-weight:400\">Sustainability<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Offering dark mode can have a positive impact on the environment too. That applies to devices with <a href=\"https:\/\/www.androidauthority.com\/poled-vs-amoled-792869\/\">OLED screens<\/a> (AMOLED and POLED) because of the way that power is sourced to the light emitters. Websites and applications with dark mode have been known to use less power on those screens. It means that implementing dark mode can, to some extent, <a href=\"https:\/\/website-designer-reading.co.uk\/web-designer-blog\/dark-mode-vs-light-mode-in-web-design\/\">reduce the power usage of a device and therefore save battery when using a device and extend battery life.<\/a><\/p>\n\n\n\n<h3 class=\"wp-block-heading has-text-color has-link-color wp-elements-3b1300264a3ff855dbbf13d1d243e77a\" style=\"color:#222222;font-style:normal;font-weight:400\">What devices have OLED screens?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/www.tomsguide.com\/us\/what-is-oled,news-25120.html\">OLED and AMOLED screens<\/a> are used on smartphones, laptops, tablets TVs, and wearables (e.g. smart watches), while <a href=\"https:\/\/www.makeuseof.com\/what-is-poled-display\/\">POLED screens<\/a> are used only on smartphones and wearables, at least for now. However, this does not mean that all devices have a type of OLED screen, but is good to know that more and more manufacturers are starting to use them. It also means that it is time for us to start thinking about the impact of our work and how we can improve it. <\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"Benefits-of-light-and-dark-modes\" style=\"font-style:normal;font-weight:400\">Benefits of light and dark modes<\/h2>\n\n\n\n<h3 class=\"wp-block-heading has-text-color has-link-color wp-elements-15b5e6153dd514103b5d620bce94ec9f\" style=\"color:#222222;font-style:normal;font-weight:400\">User preference<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">A little after dark mode was introduced, <a href=\"https:\/\/website-designer-reading.co.uk\/web-designer-blog\/dark-mode-vs-light-mode-in-web-design\/\">Android and Apple researched what part of their customers used dark mode.<\/a> The majority of Android (81.9%) and half of Apple\u2019s customers (50%) reported using it. This research shows that there is a large audience that likes and prefers dark mode, which also shows the importance of honouring their preference by enabling dark mode on our websites. On the other hand, it does not mean that we should design only for dark mode users. The rest of the people in that research use and prefer light mode, which leaves us with a user need that needs to be catered to. Regardless of whether we prefer our designs to be light or dark, we still need to consider our users and their needs. Having both options will cater to and satisfy more users than if we had only light or only dark mode.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Both modes have been known to <a href=\"https:\/\/medium.com\/muzli-design-inspiration\/shedding-light-on-dark-mode-design-fashion-fad-or-functional-must-have-98ce21c61b7a\">help users focus<\/a> and improve a website\u2019s readability depending on the users\u2019 needs. For example, for someone with dyslexia, readability would be increased in light mode and for someone with photophobia, readability would be higher in dark mode. Because of the use of dark colours, dark mode can also <a href=\"https:\/\/www.boia.org\/blog\/dark-mode-can-improve-text-readability-but-not-for-everyone\">help with making screen flickering less noticeable<\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading has-text-color has-link-color wp-elements-0a18f20c00a4ea8dab55eb5da4a27779\" style=\"color:#222222;font-style:normal;font-weight:400\">Branding<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">In terms of aesthetics and branding, offering light and dark modes can be seen in two ways. For some, it may be a challenge, especially if there is an already established strong brand identity. Designing for another mode might be difficult when considering brand identity and recognition but nonetheless it is the user who needs to come first in our decision making.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For others, this can be seen as a positive, because it can make a brand more adaptive. Designing a brand\u2019s colours for both modes would provide <a href=\"https:\/\/medium.com\/@h_locke\/why-dark-mode-causes-more-accessibility-issues-than-it-solves-d2f8359bb46a\">different colour combinations that are still aligned and associated with the brand<\/a>. This will maintain brand consistency and recognition across all user devices regardless of the mode they choose to use. In addition, it can also help with physical products that a brand may decide to produce. They would have several colour combinations that can be used on products of different colours and still maintain brand identity.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">From a user perspective, those who prefer dark mode have also reported that <a href=\"https:\/\/medium.com\/muzli-design-inspiration\/shedding-light-on-dark-mode-design-fashion-fad-or-functional-must-have-98ce21c61b7a\">they find the dark colours of a website more appealing<\/a>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Lastly, it simply makes <a href=\"https:\/\/website-designer-reading.co.uk\/web-designer-blog\/dark-mode-vs-light-mode-in-web-design\/\">the user experience on our website more personal<\/a>!<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"making-available\" style=\"font-style:normal;font-weight:400\">How can we make light and dark modes available to the user?<\/h2>\n\n\n\n<h3 class=\"wp-block-heading has-text-color has-link-color wp-elements-df4f48a849030a2f7717a4083de44310\" style=\"color:#222222;font-style:normal;font-weight:400\">System colours<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">To enable light\/dark mode we need to declare <a href=\"https:\/\/developer.mozilla.org\/en-US\/docs\/Web\/CSS\/color-scheme\">the <code>color-scheme<\/code> property<\/a> to indicate which colour schemes a document can be comfortably rendered in. With this property, the browser follows the operating system\u2019s settings for light or dark mode and displays the pages accordingly.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The first way to implement light and dark modes is to enable the use of <a href=\"https:\/\/developer.mozilla.org\/en-US\/docs\/Web\/CSS\/system-color\">system colours.<\/a> Each browser has its own system colours for displaying an HTML document: background, text (e.g. heading, body, link, etc.) and different functions (e.g. forms). If you are designing a simple website and you are using black and white colours the easiest way would be to include light\/dark mode using system colours, which is done by declaring <code>color-scheme: light dark;<\/code> to the <code>:root<\/code> (in CSS) or the <code>&lt;head&gt;<\/code> (in HTML) with a single line of code. Though it is unlikely that you would stick with the browser&#8217;s default styling, it is good to know that we have the option.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Using just the <code>color-scheme<\/code> property will <a href=\"https:\/\/drafts.csswg.org\/css-color\/#css-system-colors\">only change the default system colours that are set for each browser<\/a>. For us as developers, changing those colours is not possible, but <a href=\"https:\/\/drafts.csswg.org\/css-color-adjust-1\/#forced-colors-mode\">a user can customise their own browser theme<\/a>. If we declare a different colour for the headings, for example, dark green, when we switch between light and dark mode the heading colour will not change to a lighter green since it is not part of the browser\u2019s default colours. <a href=\"https:\/\/alvaromontoro.com\/blog\/67865\/the-ultimate-guide-to-css-colors-2020-edition\">There are different system colours<\/a> but in recent years many of them have been deprecated from most browsers, which means that if we decide to use the majority of them, users would likely not see them.<\/p>\n\n\n\n<details class=\"wp-block-details has-large-font-size is-layout-flow wp-block-details-is-layout-flow\"><summary>Demo 1:<\/summary>\n<p class=\"wp-block-paragraph\" style=\"font-size:20px\">In the example here I have declared the <code>color-scheme: light dark;<\/code> property to the root in CSS and am using two of the available and commonly used system colours. The <code>Canvas<\/code> corresponds to the colour of the background and the <code>CanvasText<\/code>, to the text colour. When switching between light and dark mode, we ca see that the colours change accordingly.<\/p>\n\n\n\n<figure class=\"wp-block-embed aligncenter is-type-wp-embed is-provider-codepen wp-block-embed-codepen\"><div class=\"wp-block-embed__wrapper\">\n<iframe class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" title=\"demo 1 light\/dark mode\" src=\"https:\/\/codepen.io\/niya_d\/embed\/preview\/JojYoKW?default-tabs=css%2Cresult&#038;height=300&#038;host=https%3A%2F%2Fcodepen.io&#038;slug-hash=JojYoKW#?secret=MIzoX3PoXa\" data-secret=\"MIzoX3PoXa\" scrolling=\"no\" frameborder=\"0\" height=\"300\"><\/iframe>\n<\/div><\/figure>\n<\/details>\n\n\n\n<h3 class=\"wp-block-heading has-text-color has-link-color wp-elements-c23e11943baddd02c498e70b1c1cc83d\" style=\"color:#222222;font-style:normal;font-weight:400\"><code>color-mix()<\/code><em> <\/em>(+ system colours)<\/h3>\n\n\n\n<p class=\"has-normal-font-size wp-block-paragraph\">The second option is to use <a href=\"https:\/\/developer.mozilla.org\/en-US\/docs\/Web\/CSS\/color_value\/color-mix\">the <code>color-mix()<\/code> function in CSS<\/a>. It\u2019s important to note that <strong>only<\/strong> two colours can be declared with <code>color-mix()<\/code><em>.<\/em> We can apply it to any element and in the parenthesis declare the two colours and the percentage (%) of each that we want to mix.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If we don\u2019t declare the percentage the ratio of the colours is automatically split to 50\/50. If the declared % of the two colours equals less than 100%, then we would end up with a colour that is not 100% opaque. For example, 30% green and 50% red would give us a colour with 80% opacity. This might be useful when trying to design colours for both modes. Having 20% colour transparency would make the colour adaptable to each mode. The colour would visually take from the background colour and if displayed in light mode will appear lighter than it would in dark mode.<\/p>\n\n\n\n<details class=\"wp-block-details has-large-font-size is-layout-flow wp-block-details-is-layout-flow\"><summary>Demo 2:<\/summary>\n<p class=\"wp-block-paragraph\" style=\"font-size:20px\">First, as previously mentioned, I have declared the <code>color-scheme: ligth dark;<\/code> property to tell the browser how to render the document. Then, I used <code>color-mix()<\/code> on the background colour of the first paragraph where the total opacity is 50%. When switching between light and dark mode we can see that the colour appears lighter or darker accordingly because of the change in the document&#8217;s background. For the second paragraph&#8217;s text colour I mixed 50% green with 50% <code>Canvas<\/code> colour equaling to 100% opacity. We can see the green become lighter or darker depending on the mode we are in because the system background colour (<code>Canvas<\/code>) changes automatically and mixes with the green. For the last paragraph, I only lowered the opacity of its background colour, which again changes according to the mode we are in and visually mixes with the document&#8217;s background colour.<\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-wp-embed is-provider-codepen wp-block-embed-codepen\"><div class=\"wp-block-embed__wrapper\">\n<iframe class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" title=\"demo 2 light\/dark mode\" src=\"https:\/\/codepen.io\/niya_d\/embed\/preview\/pvojvxy?default-tabs=css%2Cresult&#038;height=300&#038;host=https%3A%2F%2Fcodepen.io&#038;slug-hash=pvojvxy#?secret=z98EF72y2Y\" data-secret=\"z98EF72y2Y\" scrolling=\"no\" frameborder=\"0\" height=\"300\"><\/iframe>\n<\/div><\/figure>\n<\/details>\n\n\n\n<h3 class=\"wp-block-heading has-text-color has-link-color wp-elements-29e23b9d213823ee1cc97d8f0d2d447e\" style=\"color:#222222;font-style:normal;font-weight:400\"><code>@media(prefers-color-scheme: _){}<\/code><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.mozilla.org\/en-US\/docs\/Web\/CSS\/@media\/prefers-color-scheme\">The <code>prefers-color-scheme<\/code> media query<\/a> is the most popular way of implementing light\/dark mode. In this case, you need to declare two media queries, one for light mode and one for dark mode: <code>@media(prefers-color-scheme: light){}<\/code> and <code>@media(prefers-color-scheme: dark){}<\/code>. You then declare the colour properties that you want to change, similarly to how we declare viewport media queries for responsive web design. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Enabling light\/dark mode this way requires a lot more code and as you can see in the demo below the code can become long and hard to follow, especially if we were dealing with more than two elements, which we usually are. <\/p>\n\n\n\n<details class=\"wp-block-details has-large-font-size is-layout-flow wp-block-details-is-layout-flow\"><summary>Demo 3:<\/summary>\n<p class=\"wp-block-paragraph\" style=\"font-size:20px\">Again, I started by declaring the <code>color-scheme<\/code> property. In the first <code>@media(prefers-color-scheme: ){}<\/code> I declared the colours I want to use for dark mode and in the second the colours for light mode. Inside I declared the elements and colours I want to change. If you wish, you can combine this with the <code>color-mix()<\/code> and\/or system colours. <\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-wp-embed is-provider-codepen wp-block-embed-codepen\"><div class=\"wp-block-embed__wrapper\">\n<iframe class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" title=\"demo 3 light\/dark mode\" src=\"https:\/\/codepen.io\/niya_d\/embed\/preview\/NPWxrva?default-tabs=css%2Cresult&#038;height=300&#038;host=https%3A%2F%2Fcodepen.io&#038;slug-hash=NPWxrva#?secret=4FIbHAdeZK\" data-secret=\"4FIbHAdeZK\" scrolling=\"no\" frameborder=\"0\" height=\"300\"><\/iframe>\n<\/div><\/figure>\n<\/details>\n\n\n\n<h3 class=\"wp-block-heading has-text-color has-link-color wp-elements-40ef93d1bed00ff609fa509dd4bacf88\" style=\"color:#222222;font-style:normal;font-weight:400\"><code>light-dark()<\/code><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">The last option for enabling light\/dark mode I will discuss is also the most recent one that came out &#8211; <code><a href=\"https:\/\/developer.mozilla.org\/en-US\/docs\/Web\/CSS\/color_value\/light-dark\">light-dark()<\/a><\/code> in CSS. Like <code>color-mix()<\/code> you can declare this function to any element you would normally declare a colour value. In this case, inside the parenthesis, you declare the first colour value for light mode and the second colour value for dark mode. Depending on the user&#8217;s preferred mode the browser renders the elements in one of the two colours. <\/p>\n\n\n\n<details class=\"wp-block-details has-large-font-size is-layout-flow wp-block-details-is-layout-flow\"><summary>Demo 4:<\/summary>\n<p class=\"wp-block-paragraph\" style=\"font-size:20px\">Again, I starteed by declaring the <code>color-scheme<\/code> property. I then declared the <code>light-dark()<\/code> function for the colour and background colour of my elements. For the background colour of <code>h1<\/code>, I also lowered the opacity. And even though I am using the same yellow and purple for all colour values of the elements, you can see that those appear as different shades. That is because the colour takes from the background of the document and visually changes.<\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-wp-embed is-provider-codepen wp-block-embed-codepen\"><div class=\"wp-block-embed__wrapper\">\n<iframe class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" title=\"demo 4 light\/dark mode\" src=\"https:\/\/codepen.io\/niya_d\/embed\/preview\/MYWawmE?default-tabs=css%2Cresult&#038;height=300&#038;host=https%3A%2F%2Fcodepen.io&#038;slug-hash=MYWawmE#?secret=lFW1JAF9jc\" data-secret=\"lFW1JAF9jc\" scrolling=\"no\" frameborder=\"0\" height=\"300\"><\/iframe>\n<\/div><\/figure>\n<\/details>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"conclusion\" style=\"font-style:normal;font-weight:400\">Conclusion <\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Enabling light and dark modes on our websites has many benefits and advantages. Offering only one of the modes may satisfy a wide audience but it will not satisfy all of our users. Since we cannot know whether our users would prefer light or dark mode having both ensures we cater to everyone&#8217;s needs. Even people with the same condition (e.g. lower vision) might have different preferences, which shows there is no right or wrong when it comes to light and dark mode.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Offering both modes increases user satisfaction since we provide a choice to everyone who visits our website, and shows that we care about their preferences and needs, even if those needs are not related to accessibility.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"additional-resources\" style=\"font-style:normal;font-weight:400\">Additional materials<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">In this article, I presented you with some of the ways you can enable light\/dark mode using HTML and CSS to communicate with the browser. If you wanted to take this a step further, you could offer a toggle on your website that allows users to switch between modes themselves. This can be achieved by adding some JavaScript. Below I have provided a list of references to good resources to read more about other techniques you may prefer to use.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li style=\"font-style:normal;font-weight:400\"><a href=\"https:\/\/goodenough.us\/blog\/2023-08-04-til-system-colors-are-supported-in-css-but-they-re-unreliable\/\">System colours supported in CSS<\/a><\/li>\n\n\n\n<li style=\"font-style:normal;font-weight:400\"><a href=\"https:\/\/www.youtube.com\/watch?v=iZ4XjLeaKH4\">Light mode versus Dark mode, why not both? &#8211; Sara Joy (11ty Conf 2024)<\/a><\/li>\n\n\n\n<li style=\"font-style:normal;font-weight:400\"><a href=\"https:\/\/sarajoy.dev\/blog\/color-scheme\/\">Do you know color-scheme?<\/a><\/li>\n\n\n\n<li style=\"font-style:normal;font-weight:400\"><a href=\"https:\/\/www.youtube.com\/watch?v=Lye56NHGtLA\" data-type=\"link\" data-id=\"https:\/\/www.youtube.com\/watch?v=Lye56NHGtLA\">Sara Joy &#8211; Easy dark mode with color-scheme (HTML Meetup Hamburg September 2023)<\/a><\/li>\n\n\n\n<li style=\"font-style:normal;font-weight:400\"><a href=\"https:\/\/color-scheme-light-dark.netlify.app\/\">Light\/Dark Mode &#8211; How has this been done?<\/a><\/li>\n\n\n\n<li style=\"font-style:normal;font-weight:400\"><a href=\"https:\/\/css-tricks.com\/a-complete-guide-to-dark-mode-on-the-web\/\">Dark Mode in CSS Guide<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/sarajoy.dev\/blog\/a11y-aspects\/#contrast-levels\">A11y: Semantics, Contrast and&#8230; Anxiety?<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/css-tricks.com\/come-to-the-light-dark-side\/\">Come to the light-dark()&nbsp;Side<\/a><\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"slides\" style=\"font-style:normal;font-weight:400\">Presentation slides<\/h2>\n\n\n\n<div class=\"wp-block-columns is-layout-flex wp-container-core-columns-is-layout-8f761849 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\" style=\"flex-basis:100%\">\n<div data-wp-interactive=\"core\/file\" class=\"wp-block-file\"><object data-wp-bind--hidden=\"!state.hasPdfPreview\" hidden class=\"wp-block-file__embed\" data=\"https:\/\/web-designs-by-niya.uk\/journalpublications\/wp-content\/uploads\/2025\/02\/light-dark-mode-slides.pdf\" type=\"application\/pdf\" style=\"width:100%;height:700px\" aria-label=\"Embed of light-dark-mode-slides.\"><\/object><a id=\"wp-block-file--media-8f57b197-3156-44e1-b2d3-cd18d2f3963b\" href=\"https:\/\/web-designs-by-niya.uk\/journalpublications\/wp-content\/uploads\/2025\/02\/light-dark-mode-slides.pdf\">light-dark-mode-slides<\/a><a href=\"https:\/\/web-designs-by-niya.uk\/journalpublications\/wp-content\/uploads\/2025\/02\/light-dark-mode-slides.pdf\" class=\"wp-block-file__button wp-element-button\" download aria-describedby=\"wp-block-file--media-8f57b197-3156-44e1-b2d3-cd18d2f3963b\">Download<\/a><\/div>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Light\/dark mode has been around for a while now, but surprisingly, it\u2019s not implemented much, even though it has become much easier with the introduction of new CSS functions. Having both light and dark modes available on a website is beneficial and important for many reasons. In this article, you will read more about why [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"templates\/template-full-width.php","format":"standard","meta":{"footnotes":""},"categories":[6,24],"tags":[13,8,7],"class_list":["post-319","post","type-post","status-publish","format-standard","hentry","category-design","category-light-dark-mode","tag-css","tag-html","tag-website-design"],"_links":{"self":[{"href":"https:\/\/web-designs-by-niya.uk\/journalpublications\/wp-json\/wp\/v2\/posts\/319","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/web-designs-by-niya.uk\/journalpublications\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/web-designs-by-niya.uk\/journalpublications\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/web-designs-by-niya.uk\/journalpublications\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/web-designs-by-niya.uk\/journalpublications\/wp-json\/wp\/v2\/comments?post=319"}],"version-history":[{"count":167,"href":"https:\/\/web-designs-by-niya.uk\/journalpublications\/wp-json\/wp\/v2\/posts\/319\/revisions"}],"predecessor-version":[{"id":532,"href":"https:\/\/web-designs-by-niya.uk\/journalpublications\/wp-json\/wp\/v2\/posts\/319\/revisions\/532"}],"wp:attachment":[{"href":"https:\/\/web-designs-by-niya.uk\/journalpublications\/wp-json\/wp\/v2\/media?parent=319"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/web-designs-by-niya.uk\/journalpublications\/wp-json\/wp\/v2\/categories?post=319"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/web-designs-by-niya.uk\/journalpublications\/wp-json\/wp\/v2\/tags?post=319"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}